38 lines
1.1 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 09:34:44
// 生成路径: internal/app/businesses/service/host_botany.go
// 生成人gfast
// desc:寄主生物
// company:云南奇讯科技有限公司
// ==========================================================================
package service
import (
"context"
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
)
type IHostBotany interface {
List(ctx context.Context, req *model.HostBotanySearchReq) (res *model.HostBotanySearchRes, err error)
GetById(ctx context.Context, Id int) (res *model.HostBotanyInfoRes, err error)
Add(ctx context.Context, req *model.HostBotanyAddReq) (err error)
Edit(ctx context.Context, req *model.HostBotanyEditReq) (err error)
Delete(ctx context.Context, Id []int) (err error)
}
var localHostBotany IHostBotany
func HostBotany() IHostBotany {
if localHostBotany == nil {
panic("implement not found for interface IHostBotany, forgot register?")
}
return localHostBotany
}
func RegisterHostBotany(i IHostBotany) {
localHostBotany = i
}