实现商户注册、管理员审核商户申请接口
This commit is contained in:
34
internal/service/merchant.go
Normal file
34
internal/service/merchant.go
Normal 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
|
||||
}
|
||||
@ -5,4 +5,32 @@
|
||||
|
||||
package service
|
||||
|
||||
type ()
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IMerchantAdmin interface {
|
||||
Login(ctx context.Context, in *model.MerchantLoginIn) (out *model.MerchantLoginOut, err error)
|
||||
Info(ctx context.Context, in *model.MerchantAdminInfoIn) (out *model.MerchantAdminInfoOut, err error)
|
||||
Code(ctx context.Context, in *model.MerchantAdminCodeIn) (out *model.MerchantAdminCodeOut, err error)
|
||||
VertifyPhone(ctx context.Context, in *model.MerchantAdminVertifyPhoneIn) (out *model.MerchantAdminVertifyPhoneOut, err error)
|
||||
Register(ctx context.Context, in *model.MerchantAdminRegisterIn) (out *model.MerchantAdminRegisterOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localMerchantAdmin IMerchantAdmin
|
||||
)
|
||||
|
||||
func MerchantAdmin() IMerchantAdmin {
|
||||
if localMerchantAdmin == nil {
|
||||
panic("implement not found for interface IMerchantAdmin, forgot register?")
|
||||
}
|
||||
return localMerchantAdmin
|
||||
}
|
||||
|
||||
func RegisterMerchantAdmin(i IMerchantAdmin) {
|
||||
localMerchantAdmin = i
|
||||
}
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
// ================================================================================
|
||||
// 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 (
|
||||
IRoleMenu interface {
|
||||
List(ctx context.Context, in *model.RoleMenuListInput) (out *model.MenuListOutput, err error)
|
||||
Save(ctx context.Context, in *model.RoleMenuSaveInput) (out *model.UpdateOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localRoleMenu IRoleMenu
|
||||
)
|
||||
|
||||
func RoleMenu() IRoleMenu {
|
||||
if localRoleMenu == nil {
|
||||
panic("implement not found for interface IRoleMenu, forgot register?")
|
||||
}
|
||||
return localRoleMenu
|
||||
}
|
||||
|
||||
func RegisterRoleMenu(i IRoleMenu) {
|
||||
localRoleMenu = i
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
// ================================================================================
|
||||
// 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
|
||||
|
||||
type ()
|
||||
Reference in New Issue
Block a user