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

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

@ -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
}

View File

@ -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{} // 拒绝原因
}

View File

@ -25,4 +25,5 @@ type StoreAdmins struct {
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
RoleId interface{} // 角色ID
}

View File

@ -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 // 软删除时间
}