zky_mandate/internal/app/businesses/service/naturalEnemyInsect.go

38 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// 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
}