38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2025-08-11 16:49:09
|
||
// 生成路径: internal/app/businesses/service/species_imgs.go
|
||
// 生成人:gfast
|
||
// desc:
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
|
||
)
|
||
|
||
type ISpeciesImgs interface {
|
||
List(ctx context.Context, req *model.SpeciesImgsSearchReq) (res *model.SpeciesImgsSearchRes, err error)
|
||
GetByInt(ctx context.Context, Int int) (res *model.SpeciesImgsInfoRes, err error)
|
||
Add(ctx context.Context, req *model.SpeciesImgsAddReq) (err error)
|
||
Edit(ctx context.Context, req *model.SpeciesImgsEditReq) (err error)
|
||
Delete(ctx context.Context, Int []int) (err error)
|
||
}
|
||
|
||
var localSpeciesImgs ISpeciesImgs
|
||
|
||
func SpeciesImgs() ISpeciesImgs {
|
||
if localSpeciesImgs == nil {
|
||
panic("implement not found for interface ISpeciesImgs, forgot register?")
|
||
}
|
||
return localSpeciesImgs
|
||
}
|
||
|
||
func RegisterSpeciesImgs(i ISpeciesImgs) {
|
||
localSpeciesImgs = i
|
||
}
|