38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2024-04-23 14:47:24
|
||
// 生成路径: internal/app/system/service/comments.go
|
||
// 生成人:gfast
|
||
// desc:App通知公告评论
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||
)
|
||
|
||
type IComments interface {
|
||
List(ctx context.Context, req *system.CommentsSearchReq) (res *system.CommentsSearchRes, err error)
|
||
GetById(ctx context.Context, Id uint) (res *model.CommentsInfoRes, err error)
|
||
Add(ctx context.Context, req *system.CommentsAddReq) (err error)
|
||
Edit(ctx context.Context, req *system.CommentsEditReq) (err error)
|
||
Delete(ctx context.Context, Id []uint) (err error)
|
||
}
|
||
|
||
var localComments IComments
|
||
|
||
func Comments() IComments {
|
||
if localComments == nil {
|
||
panic("implement not found for interface IComments, forgot register?")
|
||
}
|
||
return localComments
|
||
}
|
||
|
||
func RegisterComments(i IComments) {
|
||
localComments = i
|
||
}
|