初始化项目框架,完成部分接口开发
This commit is contained in:
35
internal/service/feedback.go
Normal file
35
internal/service/feedback.go
Normal file
@ -0,0 +1,35 @@
|
||||
// ================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IFeedback interface {
|
||||
// List retrieves a paginated list of feedbacks
|
||||
List(ctx context.Context, in *model.FeedbackListIn) (out *model.FeedbackListOut, err error)
|
||||
// Create adds a new feedback
|
||||
Create(ctx context.Context, in *model.FeedbackAddIn) (out *model.FeedbackCRUDOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localFeedback IFeedback
|
||||
)
|
||||
|
||||
func Feedback() IFeedback {
|
||||
if localFeedback == nil {
|
||||
panic("implement not found for interface IFeedback, forgot register?")
|
||||
}
|
||||
return localFeedback
|
||||
}
|
||||
|
||||
func RegisterFeedback(i IFeedback) {
|
||||
localFeedback = i
|
||||
}
|
||||
Reference in New Issue
Block a user