Documentation ¶
Index ¶
- type ChangePasswordRequest
- type CreatePostRequest
- type CreatePostResponse
- type CreateUserRequest
- type GetPostResponse
- type GetUserResponse
- type ListPostRequest
- type ListPostResponse
- type ListUserRequest
- type ListUserResponse
- type LoginRequest
- type LoginResponse
- type PostInfo
- type UpdatePostRequest
- type UpdateUserRequest
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordRequest ¶
type CreatePostRequest ¶
type CreatePostResponse ¶
type CreatePostResponse struct {
PostID string `json:"postID"`
}
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `json:"username" valid:"alphanum,required,stringlength(1|255)"` Password string `json:"password" valid:"required,stringlength(6|18)"` Nickname string `json:"nickname" valid:"required,stringlength(1|255)"` Email string `json:"email" valid:"required,email"` Phone string `json:"phone" valid:"required,stringlength(11|11)"` }
type GetPostResponse ¶
type GetPostResponse PostInfo
type GetUserResponse ¶
type GetUserResponse UserInfo
type ListPostRequest ¶
type ListPostResponse ¶
type ListUserRequest ¶
type ListUserResponse ¶
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type UpdatePostRequest ¶
type UpdateUserRequest ¶
Click to show internal directories.
Click to hide internal directories.