实现商户注册、管理员审核商户申请接口

This commit is contained in:
2025-06-04 15:10:56 +08:00
parent 00b889cfcc
commit caf3d42fe5
63 changed files with 1195 additions and 294 deletions

View File

@ -0,0 +1,34 @@
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"server/internal/model"
)
type (
IMerchant interface {
List(ctx context.Context, in *model.MerchantListIn) (out *model.MerchantListOut, err error)
Audit(ctx context.Context, in *model.MerchantAuditIn) (out *model.MerchantAuditOut, err error)
Create(ctx context.Context, in *model.MerchantCreateIn) (out *model.CreateOut, err error)
}
)
var (
localMerchant IMerchant
)
func Merchant() IMerchant {
if localMerchant == nil {
panic("implement not found for interface IMerchant, forgot register?")
}
return localMerchant
}
func RegisterMerchant(i IMerchant) {
localMerchant = i
}