controllers

package
v0.0.0-...-bc99f36 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateScheduleBodyRequest

type CreateScheduleBodyRequest struct {
	IdUser      string      `json:"id_user" validate:"not-empty"`
	IdTimezone  int         `json:"id_timezone" validate:"not-empty"`
	Subject     string      `json:"subject" validate:"not-empty"`
	Description string      `json:"description"`
	TimeSlots   []time.Time `json:"time_slots"`
}

type CreateScheduleRequest

type CreateScheduleRequest struct {
	Body CreateScheduleBodyRequest `json:"body" validate:"not-empty"`
}

type CreateUserBodyRequest

type CreateUserBodyRequest struct {
	Id         string `json:"id" validate:"not-empty"`
	IdCountry  int    `json:"id_country" validate:"not-empty"`
	IdTimezone int    `json:"id_timezone" validate:"not-empty"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Body CreateUserBodyRequest `json:"body" validate:"not-empty"`
}

type DeleteScheduleRequest

type DeleteScheduleRequest struct {
	Id string `json:"id" validate:"not-empty"`
}

type DeleteUserRequest

type DeleteUserRequest struct {
	Id string `json:"id" validate:"not-empty"`
}

type GetScheduleRequest

type GetScheduleRequest struct {
	Id string `json:"id" validate:"not-empty"`
}

type GetTimezoneRequest

type GetTimezoneRequest struct {
	Id string `json:"id" validate:"not-empty"`
}

type GetUserRequest

type GetUserRequest struct {
	Id string `json:"id" validate:"not-empty"`
}

type ScheduleController

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

func NewScheduleController

func NewScheduleController(model *models.ScheduleModel) *ScheduleController

func (*ScheduleController) CreateSchedule

func (c *ScheduleController) CreateSchedule(ctx *web.Context) error

func (*ScheduleController) DeleteSchedule

func (c *ScheduleController) DeleteSchedule(ctx *web.Context) error

func (*ScheduleController) GetSchedule

func (c *ScheduleController) GetSchedule(ctx *web.Context) error

func (*ScheduleController) ListSchedule

func (c *ScheduleController) ListSchedule(ctx *web.Context) error

func (*ScheduleController) UpdateSchedule

func (c *ScheduleController) UpdateSchedule(ctx *web.Context) error

type TimezoneController

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

func NewTimezoneController

func NewTimezoneController(model *models.TimezoneModel) *TimezoneController

func (*TimezoneController) GetTimezone

func (c *TimezoneController) GetTimezone(ctx *web.Context) error

func (*TimezoneController) ListTimezone

func (c *TimezoneController) ListTimezone(ctx *web.Context) error

type UpdateScheduleBodyRequest

type UpdateScheduleBodyRequest struct {
	IdUser      int    `json:"id_user" validate:"not-empty"`
	IdTimezone  int    `json:"id_timezone" validate:"not-empty"`
	Subject     string `json:"subject" validate:"not-empty"`
	Description string `json:"description"`
}

type UpdateScheduleRequest

type UpdateScheduleRequest struct {
	Id   string                    `json:"id" validate:"not-empty"`
	Body UpdateScheduleBodyRequest `json:"body" validate:"not-empty"`
}

type UpdateUserBodyRequest

type UpdateUserBodyRequest struct {
	IdCountry  int `json:"id_country" validate:"not-empty"`
	IdTimezone int `json:"id_timezone" validate:"not-empty"`
}

type UpdateUserRequest

type UpdateUserRequest struct {
	Id   string                `json:"id" validate:"not-empty"`
	Body UpdateUserBodyRequest `json:"body" validate:"not-empty"`
}

type UserController

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

func NewUserController

func NewUserController(model *models.UserModel) *UserController

func (*UserController) CreateUser

func (c *UserController) CreateUser(ctx *web.Context) error

func (*UserController) DeleteUser

func (c *UserController) DeleteUser(ctx *web.Context) error

func (*UserController) GetUser

func (c *UserController) GetUser(ctx *web.Context) error

func (*UserController) UpdateUser

func (c *UserController) UpdateUser(ctx *web.Context) error

Jump to

Keyboard shortcuts

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