package budget import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type File struct { ID int64 `json:"id" prop:"add:false"` QuoteId int64 `json:"quoteId" type:"int" prop:"add" search:"="` Name string `json:"name" label:"文件名称" type:"string" prop:"add edit" search:"like"` Path string `json:"path" label:"路径" type:"string" prop:"add" search:"like"` 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 (File) TableName() string { return "zy_budget_file" } func (File) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (File) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (File) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (File) DelPrivilege(c *gin.Context, id int64) error { return nil } func (File) OrderField() string { return "order_at" } func (File) Page() bool { return false } func (File) Count() bool { return false }