mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
17 lines
509 B
Go
17 lines
509 B
Go
package models
|
|
|
|
type SysCategory struct {
|
|
Model
|
|
Name string `json:"name" gorm:"type:varchar(255);comment:名称"` //
|
|
Img string `json:"img" gorm:"type:varchar(255);comment:图标"` //
|
|
Sort int `json:"sort" gorm:"type:int(4);comment:排序"` //
|
|
Status int `json:"status" gorm:"type:int(1);comment:状态"` //
|
|
Remark string `json:"remark" gorm:"type:varchar(255);comment:备注"` //
|
|
ControlBy
|
|
ModelTime
|
|
}
|
|
|
|
func (SysCategory) TableName() string {
|
|
return "sys_category"
|
|
}
|