增加代理收益明细
This commit is contained in:
46
data/sys_user_money_details.go
Normal file
46
data/sys_user_money_details.go
Normal file
@@ -0,0 +1,46 @@
|
||||
package data
|
||||
|
||||
type (
|
||||
// SysUserMoneyDetails 钱包记录表
|
||||
SysUserMoneyDetails struct {
|
||||
ID int64 `gorm:"column:id;type:bigint;not null;autoIncrement;comment:钱包详情id" json:"id"`
|
||||
UserID int64 `gorm:"column:user_id;type:bigint;comment:用户id" json:"userId"`
|
||||
RelationID string `gorm:"column:relation_id;type:varchar(191);collate:utf8mb4_general_ci;comment:关联ID" json:"relationId"`
|
||||
SysUserID int64 `gorm:"column:sys_user_id;type:bigint;comment:渠道用户id" json:"sysUserId"`
|
||||
ByUserID int64 `gorm:"column:by_user_id;type:bigint;comment:对应用户id" json:"byUserId"`
|
||||
Title string `gorm:"column:title;type:varchar(191);collate:utf8mb4_general_ci;comment:标题" json:"title"`
|
||||
Classify int `gorm:"column:classify;type:int;comment:分类" json:"classify"` // 见常量定义
|
||||
Type int `gorm:"column:type;type:int;default:1;comment:类别(1充值2支出)" json:"type"`
|
||||
State int `gorm:"column:state;type:int;default:1;comment:状态 1待支付 2已到账 3取消" json:"state"`
|
||||
Money float64 `gorm:"column:money;type:decimal(10,4);comment:金额" json:"money"` // 高精度可用 decimal.Decimal
|
||||
Content string `gorm:"column:content;type:varchar(191);collate:utf8mb4_general_ci;comment:内容" json:"content"`
|
||||
MoneyType int `gorm:"column:money_type;type:int;default:1;comment:金额类型:1红包,2金豆" json:"moneyType"`
|
||||
CreateTime string `gorm:"column:create_time;type:varchar(64);collate:utf8mb4_bin;comment:创建时间" json:"createTime"`
|
||||
SourceID int64 `gorm:"column:source_id;type:bigint;comment:源id" json:"sourceId"`
|
||||
}
|
||||
|
||||
SysUserMoneyDetailsCopy1 struct {
|
||||
ID int64 `gorm:"column:id;type:bigint;not null;autoIncrement;comment:钱包详情id" json:"id"`
|
||||
UserID int64 `gorm:"column:user_id;type:bigint;comment:用户id" json:"userId"`
|
||||
RelationID string `gorm:"column:relation_id;type:varchar(191);collate:utf8mb4_general_ci;comment:关联ID" json:"relationId"`
|
||||
SysUserID int64 `gorm:"column:sys_user_id;type:bigint;comment:渠道用户id" json:"sysUserId"`
|
||||
ByUserID int64 `gorm:"column:by_user_id;type:bigint;comment:对应用户id" json:"byUserId"`
|
||||
Title string `gorm:"column:title;type:varchar(191);collate:utf8mb4_general_ci;comment:标题" json:"title"`
|
||||
Classify int `gorm:"column:classify;type:int;comment:分类" json:"classify"` // 见常量定义
|
||||
Type int `gorm:"column:type;type:int;default:1;comment:类别(1充值2支出)" json:"type"`
|
||||
State int `gorm:"column:state;type:int;default:1;comment:状态 1待支付 2已到账 3取消" json:"state"`
|
||||
Money float64 `gorm:"column:money;type:decimal(10,4);comment:金额" json:"money"` // 高精度可用 decimal.Decimal
|
||||
Content string `gorm:"column:content;type:varchar(191);collate:utf8mb4_general_ci;comment:内容" json:"content"`
|
||||
MoneyType int `gorm:"column:money_type;type:int;default:1;comment:金额类型:1红包,2金豆" json:"moneyType"`
|
||||
CreateTime string `gorm:"column:create_time;type:varchar(64);collate:utf8mb4_bin;comment:创建时间" json:"createTime"`
|
||||
SourceID int64 `gorm:"column:source_id;type:bigint;comment:源id" json:"sourceId"`
|
||||
}
|
||||
)
|
||||
|
||||
func (SysUserMoneyDetails) TableName() string {
|
||||
return "sys_user_money_details"
|
||||
}
|
||||
|
||||
func (SysUserMoneyDetailsCopy1) TableName() string {
|
||||
return "sys_user_money_details_copy1"
|
||||
}
|
||||
Reference in New Issue
Block a user