调整微信扫码登录相关接口,拆分门店奖励:奖励类型、奖励详情
This commit is contained in:
@ -18,10 +18,7 @@ type Admins struct {
|
||||
RealName interface{} // 真实姓名
|
||||
Phone interface{} // 手机号
|
||||
Email interface{} // 邮箱
|
||||
Role interface{} // 角色:1=超级管理员,2=运营管理员,3=客服管理员,4=财务管理员
|
||||
Status interface{} // 状态:1=正常,2=禁用
|
||||
LastLoginAt *gtime.Time // 最后登录时间
|
||||
LastLoginIp interface{} // 最后登录IP
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
|
||||
23
internal/model/do/reward_types.go
Normal file
23
internal/model/do/reward_types.go
Normal file
@ -0,0 +1,23 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// RewardTypes is the golang structure of table reward_types for DAO operations like Where/Data.
|
||||
type RewardTypes struct {
|
||||
g.Meta `orm:"table:reward_types, do:true"`
|
||||
Id interface{} // 类型ID
|
||||
Name interface{} // 类型名称
|
||||
Code interface{} // 类型编码
|
||||
Description interface{} // 类型描述
|
||||
Status interface{} // 状态:1=启用,2=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间
|
||||
}
|
||||
@ -11,15 +11,15 @@ import (
|
||||
|
||||
// StoreRewards is the golang structure of table store_rewards for DAO operations like Where/Data.
|
||||
type StoreRewards struct {
|
||||
g.Meta `orm:"table:store_rewards, do:true"`
|
||||
Id interface{} // 门店奖励ID
|
||||
StoreId interface{} // 所属门店ID
|
||||
RewardType interface{} // 奖励类型:1=积分,2=优惠券,3=商品,4=抽奖券
|
||||
RewardName interface{} // 奖励名称
|
||||
Amount interface{} // 奖励数量
|
||||
Total interface{} // 该奖励总库存(NULL 表示无限)
|
||||
MerchantId interface{} // 所属商户ID
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
g.Meta `orm:"table:store_rewards, do:true"`
|
||||
Id interface{} // 门店奖励ID
|
||||
StoreId interface{} // 所属门店ID
|
||||
RewardTypeId interface{} // 奖励类型ID
|
||||
RewardName interface{} // 奖励名称
|
||||
Amount interface{} // 奖励数量
|
||||
Total interface{} // 该奖励总库存(NULL 表示无限)
|
||||
MerchantId interface{} // 所属商户ID
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
|
||||
@ -15,10 +15,8 @@ type UserLoginRecords struct {
|
||||
Id interface{} // 记录ID
|
||||
UserId interface{} // 用户ID
|
||||
StoreId interface{} // 登录门店ID
|
||||
MerchantId interface{} // 所属商户ID
|
||||
LoginIp interface{} // 登录IP地址
|
||||
LoginDevice interface{} // 登录设备信息
|
||||
LoginPlatform interface{} // 登录平台:1=Web,2=iOS,3=Android,4=微信小程序,5=支付宝小程序,6=其他
|
||||
LoginPlatform interface{} // 登录平台:1=PC
|
||||
LoginType interface{} // 登录方式:1=微信,2=手机号,3=账号密码,4=其他
|
||||
LoginStatus interface{} // 登录状态:1=成功,2=失败
|
||||
FailReason interface{} // 失败原因
|
||||
|
||||
Reference in New Issue
Block a user