38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2025-08-11 10:08:28
|
||
// 生成路径: internal/app/businesses/service/natural_enemy_insect.go
|
||
// 生成人:gfast
|
||
// desc:天敌昆虫
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
|
||
)
|
||
|
||
type INaturalEnemyInsect interface {
|
||
List(ctx context.Context, req *model.NaturalEnemyInsectSearchReq) (res *model.NaturalEnemyInsectSearchRes, err error)
|
||
GetById(ctx context.Context, Id int) (res *model.NaturalEnemyInsectInfoRes, err error)
|
||
Add(ctx context.Context, req *model.NaturalEnemyInsectAddReq) (err error)
|
||
Edit(ctx context.Context, req *model.NaturalEnemyInsectEditReq) (err error)
|
||
Delete(ctx context.Context, Id []int) (err error)
|
||
}
|
||
|
||
var localNaturalEnemyInsect INaturalEnemyInsect
|
||
|
||
func NaturalEnemyInsect() INaturalEnemyInsect {
|
||
if localNaturalEnemyInsect == nil {
|
||
panic("implement not found for interface INaturalEnemyInsect, forgot register?")
|
||
}
|
||
return localNaturalEnemyInsect
|
||
}
|
||
|
||
func RegisterNaturalEnemyInsect(i INaturalEnemyInsect) {
|
||
localNaturalEnemyInsect = i
|
||
}
|