Documentation ¶
Index ¶
- type CheckIfExistsReq
- type CheckIfExistsRes
- type CommentCreateReq
- type CommentDeleteReq
- type CommentFindReq
- type CommentFindResponse
- type CommentGetReq
- type CommentResponse
- type CommentUpdateReq
- type File
- type MediaResponse
- type Otp
- type OtpCheckResponse
- type PostCreateReq
- type PostDeleteReq
- type PostFindReq
- type PostFindResponse
- type PostGetReq
- type PostResponse
- type PostUpdateReq
- type StandardResponse
- type UpdateSingleFieldReq
- type UploadPhotoRes
- type UserApiUpdateReq
- type UserCheckRes
- type UserCheckResponse
- type UserCreateReq
- type UserDeleteReq
- type UserFindReq
- type UserFindResponse
- type UserForgotPasswordVerifyReq
- type UserGetReq
- type UserLoginRequest
- type UserRegisterReq
- type UserResponse
- type UserUpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckIfExistsReq ¶
type CheckIfExistsRes ¶
type CheckIfExistsRes struct {
Exists bool
}
type CommentCreateReq ¶
type CommentDeleteReq ¶
type CommentFindReq ¶
type CommentFindResponse ¶
type CommentFindResponse struct { Comments []*CommentResponse `json:"comments"` Count int `json:"count"` }
type CommentGetReq ¶
type CommentGetReq struct {
Id string `json:"id"`
}
type CommentResponse ¶
type CommentUpdateReq ¶
type File ¶
type File struct {
File *multipart.FileHeader `form:"file" binding:"required"`
}
type MediaResponse ¶
type MediaResponse struct { ErrorCode int `json:"error_code"` ErrorMessage string `json:"error_message"` Body UploadPhotoRes `json:"body"` }
type OtpCheckResponse ¶
type PostCreateReq ¶
type PostDeleteReq ¶
type PostFindReq ¶
type PostFindResponse ¶
type PostFindResponse struct { Posts []*PostResponse `json:"posts"` Count int `json:"count"` }
type PostGetReq ¶
type PostResponse ¶
type PostUpdateReq ¶
type StandardResponse ¶
type UpdateSingleFieldReq ¶
type UploadPhotoRes ¶
type UploadPhotoRes struct {
URL string `json:"photo_url"`
}
type UserApiUpdateReq ¶
type UserApiUpdateReq struct {
UserName string `json:"user_name"`
}
type UserCheckRes ¶
type UserCheckRes struct {
Status string `json:"status"`
}
type UserCheckResponse ¶
type UserCheckResponse struct { ErrorCode int `json:"error_code"` ErrorMessage string `json:"error_message"` Body *UserCheckRes `json:"body"` }
type UserCreateReq ¶
type UserDeleteReq ¶
type UserDeleteReq struct {
Id string `json:"id"`
}
type UserFindReq ¶
type UserFindResponse ¶
type UserFindResponse struct { Users []*UserResponse `json:"users"` Count int `json:"count"` }
type UserGetReq ¶
type UserLoginRequest ¶
type UserRegisterReq ¶
type UserResponse ¶
type UserResponse struct { Id string `json:"id"` FullName string `json:"fullname"` UserName string `json:"user_name"` Email string `json:"email"` Password string `json:"password"` AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type UserUpdateReq ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.