presenter

package
v0.0.0-...-a7a091c Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddColumnToProjectSuccessResponse

func AddColumnToProjectSuccessResponse(c *entities.Column) map[string]interface{}

func AddTaskToProjectSuccessResponse

func AddTaskToProjectSuccessResponse(t *entities.Task) map[string]interface{}

func CreateProjectSuccessResponse

func CreateProjectSuccessResponse(p *entities.Project) map[string]interface{}

func SignInSuccessResponse

func SignInSuccessResponse(
	u *entities.User,
	access string,
	refresh string,
	accessExp int64,
	refreshExp int64,
) map[string]interface{}

func SignUpSuccessResponse

func SignUpSuccessResponse(u *entities.User) map[string]interface{}

func UpdateColumnSuccessResponse

func UpdateColumnSuccessResponse(c *entities.Column) map[string]interface{}

Types

type AddColumnToProjectRequest

type AddColumnToProjectRequest struct {
	Name     string `json:"name"     validate:"required,min=1,max=50"`
	Position int    `json:"position" validate:"required"`
}

func (*AddColumnToProjectRequest) Bind

func (r *AddColumnToProjectRequest) Bind(
	c *fiber.Ctx,
	p *entities.Column,
	v *validator.Validate,
) error

type AddTaskToProjectRequest

type AddTaskToProjectRequest struct {
	ColumnID    uuid.UUID `json:"columnId"    validate:"required"`
	AssigneeID  uuid.UUID `json:"assigneeId"`
	Title       string    `json:"title"       validate:"required,min=1,max=50"`
	Description string    `json:"description" validate:"max=2000"`
	Priority    int       `json:"priority"    validate:"required"`
	DueDate     int64     `json:"dueDate"     validate:"required"`
	Position    int       `json:"position"    validate:"required"`
}

func (*AddTaskToProjectRequest) Bind

func (r *AddTaskToProjectRequest) Bind(
	c *fiber.Ctx,
	t *entities.Task,
	v *validator.Validate,
) error

type CreateProjectRequest

type CreateProjectRequest struct {
	Name        string `json:"name"        validate:"required,min=3,max=50"`
	Description string `json:"description" validate:"required,min=3,max=50"`
}

func (*CreateProjectRequest) Bind

func (r *CreateProjectRequest) Bind(
	c *fiber.Ctx,
	p *entities.Project,
	v *validator.Validate,
) error

type DeleteTaskRequest

type DeleteTaskRequest struct {
	ColumnID uuid.UUID `json:"columnId" validate:"required"`
}

func (*DeleteTaskRequest) Bind

func (r *DeleteTaskRequest) Bind(
	c *fiber.Ctx,
	v *validator.Validate,
) error

type SignInRequest

type SignInRequest struct {
	Identity string `json:"identity" validate:"required"`
	Password string `json:"password" validate:"required,min=6,max=50"`
}

func (*SignInRequest) Bind

func (r *SignInRequest) Bind(c *fiber.Ctx, v *validator.Validate) error

type SignUpRequest

type SignUpRequest struct {
	Username string `json:"username" validate:"required,min=3,max=50"`
	Email    string `json:"email"    validate:"required,email"`
	Password string `json:"password" validate:"required,min=6,max=50"`
	Names    string `json:"names"`
}

func (*SignUpRequest) Bind

func (r *SignUpRequest) Bind(c *fiber.Ctx, u *entities.User, v *validator.Validate) error

type UpdateColumnRequest

type UpdateColumnRequest struct {
	Name     string `json:"name"     validate:"required,min=1,max=50"`
	Position int    `json:"position" validate:"required"`
}

func (*UpdateColumnRequest) Bind

func (r *UpdateColumnRequest) Bind(
	c *fiber.Ctx,
	v *validator.Validate,
) error

Jump to

Keyboard shortcuts

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