37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2025-08-11 17:00:45
|
||
// 生成路径: internal/app/businesses/service/species_survey.go
|
||
// 生成人:gfast
|
||
// desc:物种调查
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
|
||
)
|
||
|
||
type ISpeciesSurvey interface {
|
||
List(ctx context.Context, req *model.SpeciesSurveySearchReq) (res *model.SpeciesSurveySearchRes, err error)
|
||
GetById(ctx context.Context, Id int) (res *model.SpeciesSurveyInfoRes, err error)
|
||
Add(ctx context.Context, req *model.SpeciesSurveyAddReq) (err error)
|
||
Edit(ctx context.Context, req *model.SpeciesSurveyEditReq) (err error)
|
||
Delete(ctx context.Context, Id []int) (err error)
|
||
}
|
||
|
||
var localSpeciesSurvey ISpeciesSurvey
|
||
|
||
func SpeciesSurvey() ISpeciesSurvey {
|
||
if localSpeciesSurvey == nil {
|
||
panic("implement not found for interface ISpeciesSurvey, forgot register?")
|
||
}
|
||
return localSpeciesSurvey
|
||
}
|
||
|
||
func RegisterSpeciesSurvey(i ISpeciesSurvey) {
|
||
localSpeciesSurvey = i
|
||
}
|