初始
This commit is contained in:
37
internal/app/system/service/master_schedule.go
Normal file
37
internal/app/system/service/master_schedule.go
Normal file
@ -0,0 +1,37 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成service操作代码。
|
||||
// 生成日期:2023-10-08 09:38:35
|
||||
// 生成路径: internal/app/system/service/master_schedule.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 IMasterSchedule interface {
|
||||
List(ctx context.Context, req *system.MasterScheduleSearchReq) (res *system.MasterScheduleSearchRes, err error)
|
||||
GetById(ctx context.Context, Id int) (res *model.MasterScheduleInfoRes, err error)
|
||||
Add(ctx context.Context, req *system.MasterScheduleAddReq) (err error)
|
||||
Edit(ctx context.Context, req *system.MasterScheduleEditReq) (err error)
|
||||
Delete(ctx context.Context, Id []int) (err error)
|
||||
}
|
||||
|
||||
var localMasterSchedule IMasterSchedule
|
||||
|
||||
func MasterSchedule() IMasterSchedule {
|
||||
if localMasterSchedule == nil {
|
||||
panic("implement not found for interface IMasterSchedule, forgot register?")
|
||||
}
|
||||
return localMasterSchedule
|
||||
}
|
||||
|
||||
func RegisterMasterSchedule(i IMasterSchedule) {
|
||||
localMasterSchedule = i
|
||||
}
|
Reference in New Issue
Block a user