package houses import ( "zhiyuan/pkg/db" "github.com/gin-gonic/gin" ) type HousesBuilding struct { ID int64 `json:"id" prop:"add:false"` HouseId int64 `json:"house_id" type:"int" prop:"add" search:"="` AreaId int64 `json:"area_id" type:"int" prop:"edit" search:"="` Name string `json:"name" label:"楼栋名称" type:"string" prop:"add 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"` Elevation string `json:"elevation" label:"立面图" type:"string" 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 (HousesBuilding) TableName() string { return "zy_houses_building" } func (model HousesBuilding) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool { return true } func (HousesBuilding) OnePrivilege(c *gin.Context, id int64) bool { return true } func (HousesBuilding) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error { return nil } func (HousesBuilding) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error { return nil } func (HousesBuilding) DelPrivilege(c *gin.Context, id int64) error { return nil } func (HousesBuilding) Page() bool { return false } func (HousesBuilding) Count() bool { return true }