123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package houses
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type HousesRoom struct {
- ID int64 `json:"id" prop:"add:false"`
- HouseId int64 `json:"house_id" type:"int" prop:"add" search:"="`
- BuildingId int64 `json:"building_id" type:"int" prop:"add" search:"="`
- FloorId int64 `json:"floor_id" type:"int" prop:"add" 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"`
- 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 (HousesRoom) TableName() string {
- return "zy_houses_room"
- }
- func (model HousesRoom) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (HousesRoom) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (HousesRoom) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (HousesRoom) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (HousesRoom) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (HousesRoom) Page() bool {
- return false
- }
- func (HousesRoom) Count() bool {
- return true
- }
|