package score import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type Score struct { ID int64 `json:"id" prop:"add:false"` Name string `json:"name" label:"名称" type:"string" prop:"add edit" search:"like"` JuryIds string `json:"jury_ids" label:"评审团" type:"string" prop:"edit"` JuryProportion int64 `json:"jury_proportion" label:"评审占比" type:"int" prop:"edit" default:"0" search:"="` Content string `json:"content" type:"string" prop:"edit"` StartTime int64 `json:"starttime" type:"int" prop:"edit" default:"0"` EndTime int64 `json:"endtime" type:"int" prop:"edit" default:"0"` DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"` CreatedAt int64 `json:"created_at" prop:"add:false"` UpdatedAt int64 `json:"updated_at" prop:"add:false"` db.BaseModel } func (Score) TableName() string { return "zy_score" } func (model Score) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (Score) OnePrivilege(c *gin.Context, id int64) bool { return true } func (Score) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (Score) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (Score) DelPrivilege(c *gin.Context, id int64) error { return nil } func (Score) Page() bool { return false } func (Score) Count() bool { return true } func (model Score) LeftJoin(data map[string]interface{}, s *db.Select) []db.JoinModel { return []db.JoinModel{} }