Documentation ¶
Overview ¶
Package area 公司/家庭
Index ¶
- func AreaDelSa(c *gin.Context)
- func DataSync(c *gin.Context)
- func DelArea(c *gin.Context)
- func InfoArea(c *gin.Context)
- func ListArea(c *gin.Context)
- func ProcessDelArea(c *gin.Context, areaID uint64, isDelCloudDiskFile bool) (resp clouddisk.DelAreaStatus, err error)
- func QuitArea(c *gin.Context)
- func RegisterAreaRouter(r gin.IRouter)
- func UpdateArea(c *gin.Context)
- type Area
- type AreaDelSaReq
- type AreaInfo
- type DataSyncReq
- type DelAreaReq
- type LocationInfo
- type UpdateAreaReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessDelArea ¶ added in v1.9.1
func RegisterAreaRouter ¶
RegisterAreaRouter 用于注册与家庭相关的路由及其处理函数
Types ¶
type Area ¶
type Area struct { Name string `json:"name,omitempty"` // 家庭名称 ID string `json:"id"` // 家庭ID AreaType entity.AreaType `json:"area_type,omitempty"` // 该区域类型 IsBindCloud bool `json:"is_bind_cloud,omitempty"` // 是否绑定云端sa }
Area 家庭信息
type AreaDelSaReq ¶ added in v1.9.1
type AreaInfo ¶
type AreaInfo struct { Name string `json:"name"` // 家庭名称 Locations []LocationInfo `json:"locations"` // 家庭下的房间列表 Departments []LocationInfo `json:"departments"` // 公司下的部门列表 }
AreaInfo 需要同步的家庭数据
type DataSyncReq ¶
type DataSyncReq struct { Nickname string `json:"nickname"` // 用户昵称 Area AreaInfo `json:"area"` // 家庭数据 }
DataSyncReq 数据同步接口请求参数
type DelAreaReq ¶
type DelAreaReq struct {
IsDelCloudDisk *bool `json:"is_del_cloud_disk"`
}
type LocationInfo ¶
type LocationInfo struct { Name string `json:"name"` // 房间名称 Sort int `json:"sort"` // 房间在房间列表中的索引 }
LocationInfo 需要同步的房间数据
type UpdateAreaReq ¶
type UpdateAreaReq struct {
Name string `json:"name"`
}
UpdateAreaReq 修改家庭接口请求参数
Click to show internal directories.
Click to hide internal directories.