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