38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2025-08-08 15:00:02
|
||
// 生成路径: internal/app/businesses/service/foreign_distribution.go
|
||
// 生成人:gfast
|
||
// desc:国外分布
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/tiger1103/gfast/v3/internal/app/businesses/model"
|
||
)
|
||
|
||
type IForeignDistribution interface {
|
||
List(ctx context.Context, req *model.ForeignDistributionSearchReq) (res *model.ForeignDistributionSearchRes, err error)
|
||
GetById(ctx context.Context, Id int) (res *model.ForeignDistributionInfoRes, err error)
|
||
Add(ctx context.Context, req *model.ForeignDistributionAddReq) (err error)
|
||
Edit(ctx context.Context, req *model.ForeignDistributionEditReq) (err error)
|
||
Delete(ctx context.Context, Id []int) (err error)
|
||
}
|
||
|
||
var localForeignDistribution IForeignDistribution
|
||
|
||
func ForeignDistribution() IForeignDistribution {
|
||
if localForeignDistribution == nil {
|
||
panic("implement not found for interface IForeignDistribution, forgot register?")
|
||
}
|
||
return localForeignDistribution
|
||
}
|
||
|
||
func RegisterForeignDistribution(i IForeignDistribution) {
|
||
localForeignDistribution = i
|
||
}
|