package houses import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type Houses struct { ID int64 `json:"id" prop:"add:false"` Name string `json:"name" label:"楼盘名称" type:"string" prop:"add edit" search:"like"` Areacode string `json:"areacode" label:"区划代码" type:"string" prop:"edit" search:"rightlike"` Address string `json:"address" label:"楼盘地址" type:"string" prop:"edit" search:"like"` Shape string `json:"shape" label:"形状" type:"string" prop:"edit"` Lng string `json:"lng" label:"经度" type:"string" prop:"edit"` Lat string `json:"lat" label:"纬度" type:"string" prop:"edit"` Vertical string `json:"vertical" label:"俯视图" type:"string" prop:"edit"` Developer string `json:"developer" label:"开发商" type:"string" prop:"edit"` Property string `json:"property" label:"物业公司" type:"string" prop:"edit"` Buildings int64 `json:"buildings" label:"楼栋总数" type:"int" prop:"edit"` Rooms int64 `json:"rooms" 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 (Houses) TableName() string { return "zy_houses" } func (model Houses) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (Houses) OnePrivilege(c *gin.Context, id int64) bool { return true } func (Houses) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (Houses) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (Houses) DelPrivilege(c *gin.Context, id int64) error { return nil } func (Houses) Page() bool { return false } func (Houses) Count() bool { return true }