37 lines
1.3 KiB
Go
37 lines
1.3 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2025-08-08 15:02:58
|
||
// 生成路径: internal/app/businesses/service/domesti_distribuion.go
|
||
// 生成人:gfast
|
||
// desc:国内分布
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
|
||
)
|
||
|
||
type IDomestiDistribuion interface {
|
||
List(ctx context.Context, req *model.DomestiDistribuionSearchReq) (res *model.DomestiDistribuionSearchRes, err error)
|
||
GetById(ctx context.Context, Id int) (res *model.DomestiDistribuionInfoRes, err error)
|
||
Add(ctx context.Context, req *model.DomestiDistribuionAddReq) (err error)
|
||
Edit(ctx context.Context, req *model.DomestiDistribuionEditReq) (err error)
|
||
Delete(ctx context.Context, Id []int) (err error)
|
||
}
|
||
|
||
var localDomestiDistribuion IDomestiDistribuion
|
||
|
||
func DomestiDistribuion() IDomestiDistribuion {
|
||
if localDomestiDistribuion == nil {
|
||
panic("implement not found for interface IDomestiDistribuion, forgot register?")
|
||
}
|
||
return localDomestiDistribuion
|
||
}
|
||
|
||
func RegisterDomestiDistribuion(i IDomestiDistribuion) {
|
||
localDomestiDistribuion = i
|
||
}
|