初始
This commit is contained in:
37
internal/app/system/service/qianqi_moxing.go
Normal file
37
internal/app/system/service/qianqi_moxing.go
Normal file
@ -0,0 +1,37 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成service操作代码。
|
||||
// 生成日期:2023-07-31 11:09:26
|
||||
// 生成路径: internal/app/system/service/qianqi_moxing.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 IQianqiMoxing interface {
|
||||
List(ctx context.Context, req *system.QianqiMoxingSearchReq) (res *system.QianqiMoxingSearchRes, err error)
|
||||
GetById(ctx context.Context, Id int) (res *model.QianqiMoxingInfoRes, err error)
|
||||
Add(ctx context.Context, req *system.QianqiMoxingAddReq) (err error)
|
||||
Edit(ctx context.Context, req *system.QianqiMoxingEditReq) (err error)
|
||||
Delete(ctx context.Context, Id []int) (err error)
|
||||
}
|
||||
|
||||
var localQianqiMoxing IQianqiMoxing
|
||||
|
||||
func QianqiMoxing() IQianqiMoxing {
|
||||
if localQianqiMoxing == nil {
|
||||
panic("implement not found for interface IQianqiMoxing, forgot register?")
|
||||
}
|
||||
return localQianqiMoxing
|
||||
}
|
||||
|
||||
func RegisterQianqiMoxing(i IQianqiMoxing) {
|
||||
localQianqiMoxing = i
|
||||
}
|
Reference in New Issue
Block a user