location

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package location 房间

Index

Constants

This section is empty.

Variables

View Source
var LocationDefaultChosen = [...]string{
	"客厅",
	"餐厅",
	"主人房",
	"书房",
	"卫生间",
}

房间默认勾选列表中默认已勾选的房间

View Source
var LocationDefaultNotChosen = [...]string{
	"行政部",
	"市场部",
	"研发部",
	"总裁办",
}

房间默认勾选列表中默认未勾选的房间

Functions

func AddLocation

func AddLocation(c *gin.Context)

AddLocation 用于处理添加房间接口的请求

func DelLocation

func DelLocation(c *gin.Context)

DelLocation 用于处理删除房间接口的请求

func InfoLocation

func InfoLocation(c *gin.Context)

InfoLocation 用于处理房间详情接口的请求

func ListDefaultLocation

func ListDefaultLocation(c *gin.Context)

ListDefaultLocation 用于处理房间默认勾选列表接口的请求

func ListLocation

func ListLocation(c *gin.Context)

ListLocation 用于处理房间列表接口的请求

func LocationOrder

func LocationOrder(c *gin.Context)

LocationOrder 用于处理调整房间列表顺序的请求

func RegisterLocationRouter

func RegisterLocationRouter(r gin.IRouter)

RegisterLocationRouter 注册与房间相关的路由及其处理函数

func UpdateLocation

func UpdateLocation(c *gin.Context)

UpdateLocation 用于处理修改房间接口的请求

Types

type InfoDevice added in v1.9.1

type InfoDevice struct {
	ID        int    `json:"id"`
	LogoURL   string `json:"logo_url"`
	Name      string `json:"name"`
	IsSa      bool   `json:"is_sa"`
	PluginURL string `json:"plugin_url"`
	PluginID  string `json:"plugin_id"`
}

InfoDevice 设备信息

func GetDeviceByLocationID added in v1.9.1

func GetDeviceByLocationID(LocationId int, c *gin.Context) (infoDevices []InfoDevice, err error)

type Location

type Location struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Sort int    `json:"sort"`
}

Location 房间信息

func WrapLocations

func WrapLocations(locations []entity.Location) (result []Location)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL