初始
This commit is contained in:
40
internal/app/system/service/qianqi_fangzhen.go
Normal file
40
internal/app/system/service/qianqi_fangzhen.go
Normal file
@ -0,0 +1,40 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成service操作代码。
|
||||
// 生成日期:2023-07-31 11:20:54
|
||||
// 生成路径: internal/app/system/service/qianqi_fangzhen.go
|
||||
// 生成人:gfast
|
||||
// desc:方阵
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
type IQianqiFangzhen interface {
|
||||
List(ctx context.Context, req *system.QianqiFangzhenSearchReq) (res *system.QianqiFangzhenSearchRes, err error)
|
||||
GetById(ctx context.Context, Id int) (res *model.QianqiFangzhenInfoRes, err error)
|
||||
Add(ctx context.Context, req *system.QianqiFangzhenAddReq) (err error)
|
||||
Edit(ctx context.Context, req *system.QianqiFangzhenEditReq) (err error)
|
||||
Delete(ctx context.Context, Id []int) (err error)
|
||||
EditDetail(ctx context.Context, req *system.QianqiFangzhenEditDetailReq) (err error)
|
||||
UpdateViewName(ctx context.Context, req *system.QianqiFangzhenUpdateViewNameReq) error
|
||||
}
|
||||
|
||||
var localQianqiFangzhen IQianqiFangzhen
|
||||
|
||||
func QianqiFangzhen() IQianqiFangzhen {
|
||||
if localQianqiFangzhen == nil {
|
||||
panic("implement not found for interface IQianqiFangzhen, forgot register?")
|
||||
}
|
||||
return localQianqiFangzhen
|
||||
}
|
||||
|
||||
func RegisterQianqiFangzhen(i IQianqiFangzhen) {
|
||||
localQianqiFangzhen = i
|
||||
}
|
Reference in New Issue
Block a user