实现商户注册、管理员审核商户申请接口
This commit is contained in:
16
internal/controller/auth/auth_v1_merchant_code.go
Normal file
16
internal/controller/auth/auth_v1_merchant_code.go
Normal file
@ -0,0 +1,16 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
"server/internal/service"
|
||||
|
||||
"server/api/auth/v1"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) MerchantCode(ctx context.Context, req *v1.MerchantCodeReq) (res *v1.MerchantCodeRes, err error) {
|
||||
if _, err = service.MerchantAdmin().Code(ctx, &model.MerchantAdminCodeIn{Phone: req.Phone}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &v1.MerchantCodeRes{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user