handler

package
v0.0.0-...-0259ebf Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminLoginRsp

type AdminLoginRsp struct {
	ID    int    `json:"id"`
	Name  string `json:"name" `
	Token string `json:"token"`
}

type AdminRsp

type AdminRsp struct {
	ID    int    `json:"id" `
	Name  string `json:"name" `
	Email string `json:"email"`
}

type HandlerStruct

type HandlerStruct struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(s service.Service) *HandlerStruct

func (*HandlerStruct) AdminLoginHandler

func (h *HandlerStruct) AdminLoginHandler(c *gin.Context)

func (*HandlerStruct) CancelResvHandler

func (h *HandlerStruct) CancelResvHandler(c *gin.Context)

func (*HandlerStruct) CreateAdminHandler

func (h *HandlerStruct) CreateAdminHandler(c *gin.Context)

func (*HandlerStruct) CreateResvHandler

func (h *HandlerStruct) CreateResvHandler(c *gin.Context)

func (*HandlerStruct) CreateRoomHandler

func (h *HandlerStruct) CreateRoomHandler(c *gin.Context)

func (*HandlerStruct) CreateSeatHandler

func (h *HandlerStruct) CreateSeatHandler(c *gin.Context)

func (*HandlerStruct) DeleteAdminHandler

func (h *HandlerStruct) DeleteAdminHandler(c *gin.Context)

func (*HandlerStruct) DeleteRoomHandler

func (h *HandlerStruct) DeleteRoomHandler(c *gin.Context)

func (*HandlerStruct) DeleteSeatHandler

func (h *HandlerStruct) DeleteSeatHandler(c *gin.Context)

func (*HandlerStruct) DeleteUserHandler

func (h *HandlerStruct) DeleteUserHandler(c *gin.Context)

func (*HandlerStruct) GetAdminHandler

func (h *HandlerStruct) GetAdminHandler(c *gin.Context)

func (*HandlerStruct) GetAllAdminsHandler

func (h *HandlerStruct) GetAllAdminsHandler(c *gin.Context)

func (*HandlerStruct) GetAllResvsByUserHandler

func (h *HandlerStruct) GetAllResvsByUserHandler(c *gin.Context)

func (*HandlerStruct) GetAllRoomsHandler

func (h *HandlerStruct) GetAllRoomsHandler(c *gin.Context)

func (*HandlerStruct) GetAllSeatsHandler

func (h *HandlerStruct) GetAllSeatsHandler(c *gin.Context)

func (*HandlerStruct) GetAllUsersHandler

func (h *HandlerStruct) GetAllUsersHandler(c *gin.Context)

func (*HandlerStruct) GetResvHandler

func (h *HandlerStruct) GetResvHandler(c *gin.Context)

func (*HandlerStruct) GetRoomHandler

func (h *HandlerStruct) GetRoomHandler(c *gin.Context)

func (*HandlerStruct) GetSeatHandler

func (h *HandlerStruct) GetSeatHandler(c *gin.Context)

func (*HandlerStruct) GetUserHandler

func (h *HandlerStruct) GetUserHandler(c *gin.Context)

func (*HandlerStruct) LoginHandler

func (h *HandlerStruct) LoginHandler(c *gin.Context)

func (*HandlerStruct) RegisterHandler

func (h *HandlerStruct) RegisterHandler(c *gin.Context)

func (*HandlerStruct) SigninHandler

func (h *HandlerStruct) SigninHandler(c *gin.Context)

func (*HandlerStruct) SignoutHandler

func (h *HandlerStruct) SignoutHandler(c *gin.Context)

func (*HandlerStruct) UpdateRoomHandler

func (h *HandlerStruct) UpdateRoomHandler(c *gin.Context)

func (*HandlerStruct) UpdateSeatHandler

func (h *HandlerStruct) UpdateSeatHandler(c *gin.Context)

func (*HandlerStruct) UpdateUserHandler

func (h *HandlerStruct) UpdateUserHandler(c *gin.Context)

type UserLoginRsp

type UserLoginRsp struct {
	ID       int    `json:"id"`
	Username string `json:"username" `
	Token    string `json:"token"`
}

type UserRsp

type UserRsp struct {
	ID       int    `json:"id" `
	Username string `json:"username" `
	Email    string `json:"email"`
}

Jump to

Keyboard shortcuts

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