package final import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type FinalType struct { ID int64 `json:"id" prop:"add:false"` Name string `json:"name" label:"类别名称" type:"string" prop:"add edit" search:"like"` WorkTypeId int64 `json:"work_type_id" label:"工种" type:"int" prop:"edit" search:"="` WorkTypeIds string `json:"work_type_ids" label:"工种" type:"string" prop:"edit"` LivingProportion int64 `json:"living_proportion" type:"int" prop:"edit" default:"0"` LivingCount int64 `json:"living_count" type:"int" prop:"edit" default:"0"` LivingSettlement int64 `json:"living_settlement" type:"int" prop:"edit" default:"0" search:"="` Settlement int64 `json:"settlement" type:"int" prop:"edit" default:"0" search:"="` SettleChange int64 `json:"settle_change" type:"int" prop:"edit" default:"0" search:"="` CalcValue string `json:"calc_value" type:"string" prop:"edit" default:"" search:"="` AuxiliaryId int64 `json:"auxiliary_id" type:"int" prop:"edit" default:"0" search:"="` Deduct int64 `json:"deduct" type:"int" prop:"edit" default:"0" search:"="` Remark int64 `json:"remark" type:"int" prop:"edit" default:"0" search:"="` State int64 `json:"state" type:"int" prop:"edit" default:"0" search:"="` 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 (FinalType) TableName() string { return "zy_final_type" } func (FinalType) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (FinalType) OnePrivilege(c *gin.Context, id int64) bool { return true } func (FinalType) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (FinalType) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (FinalType) DelPrivilege(c *gin.Context, id int64) error { return nil } func (FinalType) Page() bool { return false } func (FinalType) Count() bool { return true } func (model FinalType) LeftJoin(data map[string]interface{}, s *db.Select) []db.JoinModel { return []db.JoinModel{} }