feat:增加专利模型数据

This commit is contained in:
henry
2021-11-26 17:26:01 +08:00
parent 3908a05bfa
commit dabb567d41
17 changed files with 512 additions and 7 deletions

View File

@ -0,0 +1,18 @@
package model
// UserConsume 用户资产消耗
type UserConsume struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
Source int `json:"source"`
ModelDeleted
ModelAt
}
func (m *UserConsume) TableName() string {
return "user_consume"
}
func NewUserConsume() *UserConsume {
return &UserConsume{}
}