实现商户注册、管理员审核商户申请接口
This commit is contained in:
@ -25,4 +25,7 @@ type MerchantAdmins struct {
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
IsPrimary interface{} // 是否主账号:0=否,1=是
|
||||
LastLoginIp interface{} // 最后登录IP
|
||||
RoleId interface{} // 角色ID
|
||||
}
|
||||
|
||||
@ -11,18 +11,26 @@ import (
|
||||
|
||||
// Merchants is the golang structure of table merchants for DAO operations like Where/Data.
|
||||
type Merchants struct {
|
||||
g.Meta `orm:"table:merchants, do:true"`
|
||||
Id interface{} // 商户ID
|
||||
Name interface{} // 商户名称
|
||||
BusinessLicense interface{} // 营业执照号
|
||||
LegalPerson interface{} // 法人姓名
|
||||
ContactName interface{} // 联系人姓名
|
||||
ContactPhone interface{} // 联系人电话
|
||||
ContactEmail interface{} // 联系人邮箱
|
||||
Address interface{} // 商户地址
|
||||
Status interface{} // 状态:1=正常,2=禁用,3=待审核
|
||||
ExpireAt *gtime.Time // 服务到期时间
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
g.Meta `orm:"table:merchants, do:true"`
|
||||
Id interface{} // 商户ID
|
||||
Name interface{} // 商户名称
|
||||
BusinessLicense interface{} // 营业执照号
|
||||
LegalPerson interface{} // 法人姓名
|
||||
ContactName interface{} // 联系人姓名
|
||||
ContactPhone interface{} // 联系人电话
|
||||
ContactEmail interface{} // 联系人邮箱
|
||||
Address interface{} // 商户地址
|
||||
Status interface{} // 状态:1=正常,2=禁用
|
||||
ExpireAt *gtime.Time // 服务到期时间
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
ApplicationReason interface{} // 申请理由
|
||||
CreatedBy interface{} // 创建人ID
|
||||
CreatedByType interface{} // 创建人类型:1=系统管理员,2=商户注册
|
||||
AuditStatus interface{} // 审核状态:0=待审核,1=审核通过,2=审核拒绝
|
||||
AuditBy interface{} // 审核人ID
|
||||
AuditAt *gtime.Time // 审核时间
|
||||
AuditRemark interface{} // 审核备注
|
||||
RejectReason interface{} // 拒绝原因
|
||||
}
|
||||
|
||||
@ -25,4 +25,5 @@ type StoreAdmins struct {
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
RoleId interface{} // 角色ID
|
||||
}
|
||||
|
||||
@ -11,17 +11,16 @@ import (
|
||||
|
||||
// Stores is the golang structure of table stores for DAO operations like Where/Data.
|
||||
type Stores struct {
|
||||
g.Meta `orm:"table:stores, do:true"`
|
||||
Id interface{} // 门店ID
|
||||
MerchantId interface{} // 所属商户ID
|
||||
Name interface{} // 门店名称
|
||||
StoreCode interface{} // 门店编号
|
||||
Address interface{} // 门店地址
|
||||
ContactName interface{} // 联系人姓名
|
||||
ContactPhone interface{} // 联系人电话
|
||||
BusinessHours interface{} // 营业时间
|
||||
Status interface{} // 状态:1=正常营业,2=暂停营业,3=已关闭
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
g.Meta `orm:"table:stores, do:true"`
|
||||
Id interface{} // 门店ID
|
||||
MerchantId interface{} // 所属商户ID
|
||||
Name interface{} // 门店名称
|
||||
StoreCode interface{} // 门店编号
|
||||
Address interface{} // 门店地址
|
||||
ContactName interface{} // 联系人姓名
|
||||
ContactPhone interface{} // 联系人电话
|
||||
Status interface{} // 状态:1=正常营业,2=暂停营业,3=已关闭
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user