Documentation ¶
Index ¶
- type ErrorResponse
- type NoteCreateRequest
- type NoteCreateResponse
- type NoteRequest
- type NoteRes
- type NoteUpdateRequest
- type NoteUpdateResponse
- type NotesResponse
- type ProfileRequest
- type ProfileResponse
- type RefreshToken
- type RefreshTokenClaims
- type SuccessResponse
- type TokenClaims
- type UserCreateRequest
- type UserCreateResponse
- type UserForgetRequest
- type UserLoginRequest
- type UserLoginResponse
- type UserRenewPassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type NoteCreateRequest ¶
type NoteCreateResponse ¶
type NoteCreateResponse struct {
Id string `json:"id"`
}
type NoteRequest ¶
type NoteRequest struct {
Id string `json:"id" validate:"required"`
}
type NoteRes ¶
type NoteRes struct {
Notes []NotesResponse
}
optional
func (*NoteRes) AddNote ¶
func (myNote *NoteRes) AddNote(notes NotesResponse) []NotesResponse
type NoteUpdateRequest ¶
type NoteUpdateResponse ¶
type NotesResponse ¶
type ProfileRequest ¶
type ProfileResponse ¶
type RefreshToken ¶
type RefreshTokenClaims ¶
type RefreshTokenClaims struct {
jwt.RegisteredClaims
}
type SuccessResponse ¶
type TokenClaims ¶
type TokenClaims struct { Email string `json:"email"` jwt.RegisteredClaims }
type UserCreateRequest ¶
type UserCreateResponse ¶
type UserForgetRequest ¶
type UserForgetRequest struct {
Email string `json:"email" validate:"required,email"`
}
type UserLoginRequest ¶
type UserLoginResponse ¶
type UserRenewPassword ¶
type UserRenewPassword struct {
Password string `json:"password" validate:"required,min=6"`
}
Source Files ¶
- User_forget_req.go
- error_response.go
- jwt_token_claims.go
- note_create_req.go
- note_create_res.go
- note_req.go
- note_update_req.go
- note_update_res.go
- notes_res.go
- profile_req.go
- profile_res.go
- refresh_token.go
- succes_response.go
- user_create_req.go
- user_create_res.go
- user_login_req.go
- user_login_res.go
- user_renew_pass_req.go
Click to show internal directories.
Click to hide internal directories.