feat:完善项目信息

This commit is contained in:
henry
2021-12-29 12:03:34 +08:00
parent 40168a30b3
commit 43dd770336
9 changed files with 274 additions and 5 deletions

View File

@ -4,9 +4,10 @@ package model
type UserConsume struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
Source UserConsumeSource `gorm:"column:source;type:tinyiny(1);default:'';comment:消耗来源" json:"source"`
Consume float64 `gorm:"column:consume;type:decimal(10,2);default:'';comment:消耗数量" json:"consume"`
Surplus float64 `gorm:"column:surplus;type:decimal(10,2);default:'';comment:剩余数量" json:"surplus"`
OrderNo string `gorm:"column:order_no;type:varchar(30);default:'';comment:订单号" json:"order_no"`
Source UserConsumeSource `gorm:"column:source;type:tinyint(1);default:0;comment:消耗来源" json:"source"`
Consume float64 `gorm:"column:consume;type:decimal(10,2);default:0;comment:消耗数量" json:"consume"`
Surplus float64 `gorm:"column:surplus;type:decimal(10,2);default:0;comment:剩余数量" json:"surplus"`
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注信息" json:"remark"`
ModelDeleted
ModelAt