Zeus/model/category.go

13 lines
283 B
Go
Raw Normal View History

2021-12-13 21:39:15 +08:00
package model
type Category struct {
//ID int `json:"id" gorm:"column:id"`
Key int `json:"key" gorm:"column:key"`
Value string `json:"value" gorm:"column:value"`
Gid string `json:"gid" gorm:"column:gid"`
}
func (m *Category) TableName() string {
return "category"
}