apiv1

package
v0.0.0-...-2ed13ab Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApp

func AddApp(c *fiber.Ctx) error

func AddHome

func AddHome(c *fiber.Ctx) error

func AddHomeConnection

func AddHomeConnection(c *fiber.Ctx) error

func AddRoom

func AddRoom(c *fiber.Ctx) error

func AddRoomConnection

func AddRoomConnection(c *fiber.Ctx) error

func AddThing

func AddThing(c *fiber.Ctx) error

func AddThingConnection

func AddThingConnection(c *fiber.Ctx) error

func AddUser

func AddUser(c *fiber.Ctx) error

func ChangeUserPassword

func ChangeUserPassword(c *fiber.Ctx) error

func DeleteApp

func DeleteApp(c *fiber.Ctx) error

func DeleteHome

func DeleteHome(c *fiber.Ctx) error

func DeleteHomeConnection

func DeleteHomeConnection(c *fiber.Ctx) error

func DeleteRoom

func DeleteRoom(c *fiber.Ctx) error

func DeleteRoomConnection

func DeleteRoomConnection(c *fiber.Ctx) error

func DeleteThing

func DeleteThing(c *fiber.Ctx) error

func DeleteThingConnection

func DeleteThingConnection(c *fiber.Ctx) error

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

func ErrorJSON

func ErrorJSON(c *fiber.Ctx, err error) error

func GetApp

func GetApp(c *fiber.Ctx) error

func GetApps

func GetApps(c *fiber.Ctx) (err error)

func GetHomeConnections

func GetHomeConnections(c *fiber.Ctx) (err error)

func GetHomes

func GetHomes(c *fiber.Ctx) error

func GetRoomConnections

func GetRoomConnections(c *fiber.Ctx) (err error)

func GetRooms

func GetRooms(c *fiber.Ctx) (err error)

func GetThing

func GetThing(c *fiber.Ctx) error

func GetThingConnections

func GetThingConnections(c *fiber.Ctx) (err error)

func GetThings

func GetThings(c *fiber.Ctx) (err error)

func GetUsers

func GetUsers(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func PageJSON

func PageJSON(c *fiber.Ctx, total int, data interface{}) error

func SingleJSON

func SingleJSON(c *fiber.Ctx, data interface{}) error

func SuccessJSON

func SuccessJSON(c *fiber.Ctx) error

func UpdateApp

func UpdateApp(c *fiber.Ctx) error

func UpdateHome

func UpdateHome(c *fiber.Ctx) error

func UpdateHomeConnection

func UpdateHomeConnection(c *fiber.Ctx) error

func UpdateRoom

func UpdateRoom(c *fiber.Ctx) error

func UpdateRoomConnection

func UpdateRoomConnection(c *fiber.Ctx) error

func UpdateThing

func UpdateThing(c *fiber.Ctx) error

func UpdateThingConnection

func UpdateThingConnection(c *fiber.Ctx) error

Types

type AddAppQo

type AddAppQo struct {
	Name     string `json:"name" validate:"required"`
	UserUUID string `json:"userUUID" validate:"required"`
}

type AddHomeConnectionQo

type AddHomeConnectionQo struct {
	StartTime string      `json:"start_time" validate:"required"`
	EndTime   string      `json:"end_time" validate:"required"`
	UserUUID  gguuid.UUID `json:"userUUID" validate:"required"`
	HomeUUID  gguuid.UUID `json:"homeUUID" validate:"required"`
}

type AddHomeQo

type AddHomeQo struct {
	Name string `json:"name" validate:"required"`
}

type AddRoomConnectionQo

type AddRoomConnectionQo struct {
	StartTime string      `json:"start_time" validate:"required"`
	EndTime   string      `json:"end_time" validate:"required"`
	UserUUID  gguuid.UUID `json:"userUUID" validate:"required"`
	RoomUUID  gguuid.UUID `json:"roomUUID" validate:"required"`
}

type AddRoomQo

type AddRoomQo struct {
	Name     string `json:"name" validate:"required"`
	HomeUUID string `json:"homeUUID" validate:"required"`
}

type AddThingConnectionQo

type AddThingConnectionQo struct {
	StartTime string      `json:"start_time" validate:"required"`
	EndTime   string      `json:"end_time" validate:"required"`
	UserUUID  gguuid.UUID `json:"userUUID" validate:"required"`
	ThingUUID gguuid.UUID `json:"thingUUID" validate:"required"`
}

type AddThingQo

type AddThingQo struct {
	Name     string `json:"name" validate:"required"`
	RoomUUID string `json:"roomUUID" validate:"required"`
}

type AddUserQo

type AddUserQo struct {
	Name     string `json:"name" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type ChangeUserPasswordQo

type ChangeUserPasswordQo struct {
	Password string `json:"password" validate:"required"`
}

type GetAppsQo

type GetAppsQo struct {
	PageQo
	UserUUID string `json:"userUUID"`
}

type GetHomeConnectionsQo

type GetHomeConnectionsQo struct {
	PageQo
	UserUUID string `json:"userUUID"`
	HomeUUID string `json:"homeUUID"`
}

type GetHomesQo

type GetHomesQo struct {
	PageQo
}

type GetRoomConnectionsQo

type GetRoomConnectionsQo struct {
	PageQo
	UserUUID string `json:"userUUID"`
	RoomUUID string `json:"roomUUID"`
}

type GetRoomsQo

type GetRoomsQo struct {
	PageQo
	HomeUUID string `json:"homeUUID"`
}

type GetThingConnectionsQo

type GetThingConnectionsQo struct {
	PageQo
	UserUUID  string `json:"userUUID"`
	ThingUUID string `json:"thingUUID"`
}

type GetThingsQo

type GetThingsQo struct {
	PageQo
	RoomUUID string `json:"roomUUID"`
}

type GetUsersQo

type GetUsersQo struct {
	PageQo
}

type LoginQo

type LoginQo struct {
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type PageQo

type PageQo struct {
	PageSize int `json:"pageSize"`
	Current  int `json:"current"`
}

type UpdateAppQo

type UpdateAppQo struct {
	Name     string `json:"name" validate:"required"`
	UserUUID string `json:"userUUID" validate:"required"`
}

type UpdateHomeConnectionQo

type UpdateHomeConnectionQo struct {
	StartTime string      `json:"start_time" validate:"required"`
	EndTime   string      `json:"end_time" validate:"required"`
	UserUUID  gguuid.UUID `json:"userUUID" validate:"required"`
	HomeUUID  gguuid.UUID `json:"homeUUID" validate:"required"`
}

type UpdateHomeQo

type UpdateHomeQo struct {
	Name string `json:"name" validate:"required"`
}

type UpdateRoomConnectionQo

type UpdateRoomConnectionQo struct {
	StartTime string      `json:"start_time" validate:"required"`
	EndTime   string      `json:"end_time" validate:"required"`
	UserUUID  gguuid.UUID `json:"userUUID" validate:"required"`
	RoomUUID  gguuid.UUID `json:"roomUUID" validate:"required"`
}

type UpdateRoomQo

type UpdateRoomQo struct {
	Name     string `json:"name" validate:"required"`
	HomeUUID string `json:"homeUUID" validate:"required"`
}

type UpdateThingConnectionQo

type UpdateThingConnectionQo struct {
	StartTime string      `json:"start_time" validate:"required"`
	EndTime   string      `json:"end_time" validate:"required"`
	UserUUID  gguuid.UUID `json:"userUUID" validate:"required"`
	ThingUUID gguuid.UUID `json:"thingUUID" validate:"required"`
}

type UpdateThingQo

type UpdateThingQo struct {
	Name     string `json:"name" validate:"required"`
	RoomUUID string `json:"roomUUID" validate:"required"`
}

Jump to

Keyboard shortcuts

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