feat:增加专利模型数据
This commit is contained in:
18
app/common/model/user_consume.go
Normal file
18
app/common/model/user_consume.go
Normal 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{}
|
||||
}
|
Reference in New Issue
Block a user