package models import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type DailyStatistPost struct { ID int64 `json:"id" prop:"add:false"` TypeId int64 `json:"typeId" label:"类型ID" type:"int" prop:"add edit" search:"="` Posts string `json:"posts" label:"岗位" type:"string" prop:"add edit" search:"like"` StartHour int64 `json:"starthour" label:"开始小时" type:"int" prop:"edit"` EndHour int64 `json:"endhour" label:"结束小时" type:"int" prop:"edit"` 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 (DailyStatistPost) TableName() string { return "zy_daily_statist_post" } func (DailyStatistPost) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (DailyStatistPost) OnePrivilege(c *gin.Context, id int64) bool { return true } func (DailyStatistPost) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (DailyStatistPost) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (DailyStatistPost) DelPrivilege(c *gin.Context, id int64) error { return nil } func (DailyStatistPost) Page() bool { return false } func (DailyStatistPost) Count() bool { return true }