package models import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type WorkProblem struct { ID int64 `json:"id" prop:"add:false"` TypeId int64 `json:"type_id" type:"int" prop:"add" search:"="` Content string `json:"content" label:"问题名称" type:"string" prop:"add edit" search:"like"` Standard string `json:"standard" label:"整改标准" type:"string" prop:"edit"` Days int64 `json:"days" label:"整改时间" type:"int" prop:"edit" default:"0"` State int64 `json:"state" label:"状态" type:"int" prop:"edit" default:"0"` OrderAt int64 `json:"order_at" prop:"add:false select:false"` DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"` CreatedAt int64 `json:"created_at" prop:"add:false select:false"` UpdatedAt int64 `json:"updated_at" prop:"add:false select:false"` db.BaseModel } func (WorkProblem) TableName() string { return "zy_work_problem" } func (WorkProblem) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (WorkProblem) OnePrivilege(c *gin.Context, id int64) bool { return true } func (WorkProblem) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (WorkProblem) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (WorkProblem) DelPrivilege(c *gin.Context, id int64) error { return nil } func (WorkProblem) OrderField() string { return "order_at" } func (WorkProblem) Page() bool { return false } func (WorkProblem) Count() bool { return true }