13 lines
283 B
Go
13 lines
283 B
Go
|
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"
|
||
|
}
|