1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package houses
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type HousesFloor 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:"="`
- 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 (HousesFloor) TableName() string {
- return "zy_houses_floor"
- }
- func (model HousesFloor) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (HousesFloor) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (HousesFloor) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (HousesFloor) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (HousesFloor) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (HousesFloor) Page() bool {
- return false
- }
- func (HousesFloor) Count() bool {
- return true
- }
|