Documentation ¶
Index ¶
- type AllInfoLocations
- type BuildingFloor
- type DeviceGpio
- type FloorRoom
- type Gpio
- type KengAddRequest
- type KengAddResponse
- type KengGetFrontHistoryRequest
- type KengGetFrontHistoryResponse
- type KengGetFrontRequest
- type KengGetFrontResponse
- type KengGetListRequest
- type KengGetListResponse
- type KengGetRequest
- type KengGetResponse
- type KengHistoryInfo
- type KengInfo
- type KengUpdateRequest
- type KengUpdateResponse
- type LocationBuilding
- type ProjectService
- func (cps *ProjectService) KengAdd(req *KengAddRequest) *KengAddResponse
- func (cps *ProjectService) KengGet(req *KengGetRequest) *KengGetResponse
- func (cps *ProjectService) KengGetFront(req *KengGetFrontRequest) *KengGetFrontResponse
- func (cps *ProjectService) KengGetFrontHistory(req *KengGetFrontHistoryRequest) *KengGetFrontHistoryResponse
- func (cps *ProjectService) KengGetList(req *KengGetListRequest) *KengGetListResponse
- func (cps *ProjectService) KengUpdate(id string, req *KengUpdateRequest) *KengUpdateResponse
- func (cps *ProjectService) UserAdd(req *UserAddRequest) *UserAddResponse
- func (cps *ProjectService) UserGet(req *UserGetRequest) *UserGetResponse
- type RoomDevice
- type UserAddRequest
- type UserAddResponse
- type UserGetRequest
- type UserGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllInfoLocations ¶
type AllInfoLocations struct {
LocationBuilding []LocationBuilding `json:"locations"`
}
type BuildingFloor ¶
type DeviceGpio ¶
type FloorRoom ¶
type FloorRoom struct { FloorId int `json:"floor_id"` FloorName string `json:"floor_name"` RoomDevice []RoomDevice `json:"rooms` }
type KengAddRequest ¶
type KengAddRequest struct { Name string `json:"name" binding:"required"` DeviceId int `json:"device_id" binding:"required"` DeviceGpioId int `json:"device_gpio_id" binding:"required"` RoomId int `json:"room_id" binding:"required"` Index int `json:"index" binding:"required"` Remark string `json:"remark"` }
type KengAddResponse ¶
type KengGetFrontHistoryRequest ¶
type KengGetFrontHistoryRequest struct {
KengId int `form:"keng_id" binding:"required"`
}
type KengGetFrontHistoryResponse ¶
type KengGetFrontHistoryResponse struct { common.Response Data []KengHistoryInfo `json:"data"` }
type KengGetFrontRequest ¶
type KengGetFrontResponse ¶
type KengGetFrontResponse struct { common.Response Data []LocationBuilding `json:"data"` }
type KengGetListRequest ¶
type KengGetListResponse ¶
type KengGetRequest ¶
type KengGetRequest struct {
KengId int `form:"keng_id" binding:"required"`
}
type KengGetResponse ¶
type KengHistoryInfo ¶
type KengUpdateRequest ¶
type KengUpdateRequest struct { Name string `json:"name" binding:"required"` DeviceId int `json:"device_id" binding:"required"` DeviceGpioId int `json:"device_gpio_id" binding:"required"` RoomId int `json:"room_id" binding:"required"` Index int `json:"index" binding:"required"` Remark string `json:"remark"` }
type KengUpdateResponse ¶
type LocationBuilding ¶
type LocationBuilding struct { LocationId int `json:"location_id"` LocationName string `json:"location_name"` BuildingFloor []BuildingFloor `json:"buildings` }
type ProjectService ¶
type ProjectService struct {
common.BaseService
}
func NewServiceMgr ¶
func NewServiceMgr(c *gin.Context) *ProjectService
func (*ProjectService) KengAdd ¶
func (cps *ProjectService) KengAdd(req *KengAddRequest) *KengAddResponse
func (*ProjectService) KengGet ¶
func (cps *ProjectService) KengGet(req *KengGetRequest) *KengGetResponse
func (*ProjectService) KengGetFront ¶
func (cps *ProjectService) KengGetFront(req *KengGetFrontRequest) *KengGetFrontResponse
func (*ProjectService) KengGetFrontHistory ¶
func (cps *ProjectService) KengGetFrontHistory(req *KengGetFrontHistoryRequest) *KengGetFrontHistoryResponse
func (*ProjectService) KengGetList ¶
func (cps *ProjectService) KengGetList(req *KengGetListRequest) *KengGetListResponse
func (*ProjectService) KengUpdate ¶
func (cps *ProjectService) KengUpdate(id string, req *KengUpdateRequest) *KengUpdateResponse
func (*ProjectService) UserAdd ¶
func (cps *ProjectService) UserAdd(req *UserAddRequest) *UserAddResponse
func (*ProjectService) UserGet ¶
func (cps *ProjectService) UserGet(req *UserGetRequest) *UserGetResponse
type RoomDevice ¶
type RoomDevice struct { RoomId int `json:"room_id"` RoomName string `json:"room_name"` DeviceGpio []DeviceGpio `json:"device"` KengInfo []KengInfo `json:"keng_info"` }
type UserAddRequest ¶
type UserAddResponse ¶
type UserGetRequest ¶
type UserGetRequest struct {
UserNickname string `form:"user_nickname" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.