实现商户注册、管理员审核商户申请接口
This commit is contained in:
@ -1,8 +1 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
UserRoleCode = "user"
|
||||
AdminRoleCode = "admin"
|
||||
MerchantRoleCode = "merchant"
|
||||
StoreRoleCode = "store"
|
||||
)
|
||||
|
||||
20
internal/consts/merchant.go
Normal file
20
internal/consts/merchant.go
Normal file
@ -0,0 +1,20 @@
|
||||
package consts
|
||||
|
||||
// 商户状态
|
||||
const (
|
||||
MerchantNormalStatus = iota + 1
|
||||
MerchantDisabledStatus
|
||||
)
|
||||
|
||||
// 商户审核状态
|
||||
const (
|
||||
MerchantPendingReview = iota
|
||||
MerchantReviewPassed
|
||||
MerchantReviewRejected
|
||||
)
|
||||
|
||||
// 商户注册类型
|
||||
const (
|
||||
MerchantRegisterByAdmin = iota + 1
|
||||
MerchantRegisterBySelf
|
||||
)
|
||||
7
internal/consts/merchant_admin.go
Normal file
7
internal/consts/merchant_admin.go
Normal file
@ -0,0 +1,7 @@
|
||||
package consts
|
||||
|
||||
// 商户管理员状态
|
||||
const (
|
||||
MerchantAdministratorEnable = iota + 1
|
||||
MerchantAdministratorDisable
|
||||
)
|
||||
14
internal/consts/role.go
Normal file
14
internal/consts/role.go
Normal file
@ -0,0 +1,14 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
GuestRoleCode = "guest"
|
||||
UserRoleCode = "user"
|
||||
AdminRoleCode = "admin"
|
||||
MerchantRoleCode = "merchant"
|
||||
StoreRoleCode = "store"
|
||||
)
|
||||
|
||||
const (
|
||||
RoleEnable = iota + 1
|
||||
RoleDisable
|
||||
)
|
||||
Reference in New Issue
Block a user