Documentation ¶
Index ¶
- type ColumDTO
- type ColumRequest
- type ColumResponse
- type ErrorResponse
- type GroupDTO
- type GroupResponse
- type ProjectDTO
- type ProjectRequest
- type ProjectResponse
- type TodoCreateRequest
- type TodoCreateResponse
- type TodoDTO
- type TodoUpdateRequest
- type UserChangePasswordRequest
- type UserCoupleTokensRequest
- type UserCoupleTokensResponse
- type UserDTO
- type UserDataInToken
- type UserGetMeResponse
- type UserLoginRequest
- type UserLoginResponse
- type UserRegisterRequest
- type UserRegisterResponse
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 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 ¶
UserDataInToken : ID and IsAccess are
type UserGetMeResponse ¶
UserGetMeResponse : Creation ??? Response from server
type UserLoginRequest ¶
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 ¶
UserRegisterRequest : :Registration Request from user
func (*UserRegisterRequest) Validate ¶
func (req *UserRegisterRequest) Validate() (ok bool, err error)