model

package
v0.0.0-...-c3897c1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumDTO

type ColumDTO struct {
	ProjectId uuid.UUID `json:"project_id"`
	Name      string    `json:"name"`
	Order     int       `json:"order"`
}

ColumDTO : Column data transfer object

type ColumRequest

type ColumRequest struct {
	ProjectId uuid.UUID `json:"project_id"`
	Name      string    `json:"name"`
	Order     int       `json:"order"`
}

ColumRequest :Updating ColumnType Request from user

type ColumResponse

type ColumResponse struct {
	ProjectId uuid.UUID `json:"project_id"`
	Name      string    `json:"name"`
	Order     int       `json:"order"`
}

ColumResponse : Column Response from server

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse : Creation Error Response from server

type GroupDTO

type GroupDTO struct {
	UserID    uuid.UUID `json:"user_id"`
	ProjectID uuid.UUID `json:"project_id"`
}

GroupDTO : Group data transfer object

type GroupResponse

type GroupResponse struct {
	UserID    uuid.UUID `json:"user_id"`
	ProjectID uuid.UUID `json:"project_id"`
}

GroupResponse : Group Response from server

type ProjectDTO

type ProjectDTO struct {
	ID        uuid.UUID `json:"id"`
	Name      string    `json:"name"`
	CreatedBy uuid.UUID `json:"created_by"`
}

ProjectDTO : Projects data transfer object

type ProjectRequest

type ProjectRequest struct {
	ID        uuid.UUID `json:"id"`
	Name      string    `json:"name"`
	CreatedBy uuid.UUID `json:"created_by"`
}

ProjectRequest :Updating ProjectType Request from user

type ProjectResponse

type ProjectResponse struct {
	ID        uuid.UUID `json:"id"`
	Name      string    `json:"name"`
	CreatedBy uuid.UUID `json:"created_by"`
}

ProjectResponse : Project Response from server

type TodoCreateRequest

type TodoCreateRequest struct {
	ID          uuid.UUID `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	IsCompleted bool      `json:"is_completed"`
	CreatedBy   uuid.UUID `json:"created_by"`
	ProjectID   uuid.UUID `json:"project_id"`
	Column      string    `json:"column"`
}

TodoCreateRequest :Creating TodoType Request from user

type TodoCreateResponse

type TodoCreateResponse struct {
	ID          uuid.UUID `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	IsCompleted bool      `json:"is_complete"`
	ProjectID   uuid.UUID `json:"project_id"`
	CreatedBy   uuid.UUID `json:"created_by"`
	Column      string    `json:"column"`
}

TodoCreateResponse : Todos Response

type TodoDTO

type TodoDTO struct {
	ID          uuid.UUID `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	IsCompleted bool      `json:"is_completed"`
	ProjectID   uuid.UUID `json:"project_id"`
	CreatedBy   uuid.UUID `json:"created_by"`
	Column      string    `json:"column"`
}

TodoDTO : Todos data transfer object

type TodoUpdateRequest

type TodoUpdateRequest struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	IsCompleted bool   `json:"is_completed"`
}

TodoUpdateRequest :Updating TodoType Request from user

type UserChangePasswordRequest

type UserChangePasswordRequest struct {
	OldPassword      string `json:"old_password"`
	NewPassword      string `json:"new_password"`
	NewPasswordAgain string `json:"new_password_again"`
}

UserChangePasswordRequest : Changing password Request from user

type UserCoupleTokensRequest

type UserCoupleTokensRequest struct {
	ID           uuid.UUID `json:"id"`
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
}

UserCoupleTokensRequest : Request of generation a couple of tokens

type UserCoupleTokensResponse

type UserCoupleTokensResponse struct {
	ID           uuid.UUID `json:"id"`
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
}

UserCoupleTokensResponse : Response of generation a couple of tokens

type UserDTO

type UserDTO struct {
	ID       uuid.UUID `json:"id"`
	Login    string    `json:"login"`
	Password string    `json:"password"`
}

UserDTO : User data transfer object

type UserDataInToken

type UserDataInToken struct {
	ID       uuid.UUID `json:"id"`
	IsAccess bool      `json:"is_access"`
}

UserDataInToken : ID and IsAccess are

type UserGetMeResponse

type UserGetMeResponse struct {
	ID   uuid.UUID `json:"id"`
	Name string    `json:"name"`
}

UserGetMeResponse : Creation ??? Response from server

type UserLoginRequest

type UserLoginRequest struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

UserLoginRequest : Authorization Request from user

type UserLoginResponse

type UserLoginResponse struct {
	ID           uuid.UUID `json:"id"`
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
}

UserLoginResponse : Authorization Response from server

type UserRegisterRequest

type UserRegisterRequest struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

UserRegisterRequest : :Registration Request from user

func (*UserRegisterRequest) Validate

func (req *UserRegisterRequest) Validate() (ok bool, err error)

type UserRegisterResponse

type UserRegisterResponse struct {
	ID           uuid.UUID `json:"id"`
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
}

UserRegisterResponse :Registration Response from server

Jump to

Keyboard shortcuts

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