37 lines
1.2 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 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
}