You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
376 B
12 lines
376 B
6 months ago
|
package model
|
||
|
|
||
|
type CurrencyCode struct { // 货币编码
|
||
|
ID uint `gorm:"primaryKey" json:"id"` // 主键ID
|
||
|
Code string `gorm:"size:3" json:"code"` // 货币编码
|
||
|
Status int `gorm:"type:tinyint(1);default:1" json:"status"` // 状态 0:下架 1:上架
|
||
|
}
|
||
|
|
||
|
func (CurrencyCode) TableName() string {
|
||
|
return "currency_code"
|
||
|
}
|