// 自动生成模板DataCategory package model import ( "time" ) // 如果含有time.Time 请自行import time包 type DataCategory struct { Id int `json:"id" form:"id" gorm:"column:id;comment:;type:int;size:10;"` // 主键ID CreateTime time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;comment:;type:timestamp;"` UpdateTime time.Time `json:"updateTime" form:"updateTime" gorm:"column:update_time;comment:;type:timestamp;"` PId int `json:"pId" form:"pId" gorm:"column:p_id;comment:父级id;type:int;size:10;"` Name string `json:"name" form:"name" gorm:"column:name;comment:分类名称;type:varchar(100);"` Level int `json:"level" form:"level" gorm:"column:level;comment:层级;type:int;size:10;"` Status int `json:"status" form:"status" gorm:"column:status;comment:启用状态 1是 2否;type:int;size:10;"` Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序 小到大;type:int;size:10;"` SysUserId int `json:"sysUserId" form:"sysUserId" gorm:"column:sys_user_id;comment:添加人;type:int;size:10;"` }