38 lines
1.2 KiB
Go
38 lines
1.2 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2025-08-08 15:18:02
|
||
// 生成路径: internal/app/businesses/service/characteristic.go
|
||
// 生成人:gfast
|
||
// desc:识别特征
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
|
||
)
|
||
|
||
type ICharacteristic interface {
|
||
List(ctx context.Context, req *model.CharacteristicSearchReq) (res *model.CharacteristicSearchRes, err error)
|
||
GetById(ctx context.Context, Id int) (res *model.CharacteristicInfoRes, err error)
|
||
Add(ctx context.Context, req *model.CharacteristicAddReq) (err error)
|
||
Edit(ctx context.Context, req *model.CharacteristicEditReq) (err error)
|
||
Delete(ctx context.Context, Id []int) (err error)
|
||
}
|
||
|
||
var localCharacteristic ICharacteristic
|
||
|
||
func Characteristic() ICharacteristic {
|
||
if localCharacteristic == nil {
|
||
panic("implement not found for interface ICharacteristic, forgot register?")
|
||
}
|
||
return localCharacteristic
|
||
}
|
||
|
||
func RegisterCharacteristic(i ICharacteristic) {
|
||
localCharacteristic = i
|
||
}
|