41 lines
1.6 KiB
Go
41 lines
1.6 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2023-07-29 14:02:01
|
||
// 生成路径: internal/app/system/service/bus_machinery.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 IBusMachinery interface {
|
||
List(ctx context.Context, req *system.BusMachinerySearchReq) (res *system.BusMachinerySearchRes, err error)
|
||
GetById(ctx context.Context, Id uint64) (res *model.BusMachineryInfoRes, err error)
|
||
Add(ctx context.Context, req *system.BusMachineryAddReq) (err error)
|
||
Edit(ctx context.Context, req *system.BusMachineryEditReq) (err error)
|
||
Delete(ctx context.Context, Id []uint64) (err error)
|
||
MachineNumberFunc(ctx context.Context, req *system.MachineNumberReq) (res *system.MachineNumberRes, err error)
|
||
MechanicalConditionFunc(ctx context.Context, req *system.MechanicalConditionReq) (res *system.MechanicalConditionRes, err error)
|
||
AppList(ctx context.Context, req *system.BusMachineryAppSearchReq) (listRes *system.BusMachineryAppSearchRes, err error)
|
||
}
|
||
|
||
var localBusMachinery IBusMachinery
|
||
|
||
func BusMachinery() IBusMachinery {
|
||
if localBusMachinery == nil {
|
||
panic("implement not found for interface IBusMachinery, forgot register?")
|
||
}
|
||
return localBusMachinery
|
||
}
|
||
|
||
func RegisterBusMachinery(i IBusMachinery) {
|
||
localBusMachinery = i
|
||
}
|