Documentation ¶
Index ¶
- Constants
- func MapEntityToData(alias string, from interface{}) (data interface{}, err error)
- func ResponseFailed(message string) map[string]interface{}
- func ResponseFailedWithData(message string, data interface{}) map[string]interface{}
- func ResponseSuccessWithoutData(message string) map[string]interface{}
- type AuthModel
- type CreateUserPayload
- type DeleteUserPayload
- type GetUserPayload
- type JWTClaimResult
- type JWTCustomClaims
- type LoginPayload
- type LogoutModel
- type LogoutPayload
- type ProjectCreatePayload
- type ProjectDeletePayload
- type ProjectDetailModel
- type ProjectGetAllPayload
- type ProjectGetPayload
- type ProjectModel
- type ProjectUpdatePayload
- type RegisterPayload
- type ResponseFailedBody
- type ResponseSuccessBody
- type ResponseSuccessWithoutDataBody
- type TagCreatePayload
- type TagDeletePayload
- type TagGetPayload
- type TagUpdatePayload
- type TaskCreatePayload
- type TaskDeletePayload
- type TaskGetPayload
- type TaskModel
- type TaskQueryPayload
- type TaskStatePayload
- type TaskUpdatePayload
- type UpdateUserPayload
- type UserModel
Constants ¶
View Source
const ( USER_MAPPER_ALIAS = "user" PROJECT_MAPPER_ALIAS = "project" TASK_MAPPER_ALIAS = "task" TAG_MAPPER_ALIAS = "tag" PROJECT_DETAIL_MAPPER_ALIAS = "project_detail" )
Variables ¶
This section is empty.
Functions ¶
func MapEntityToData ¶
func ResponseFailed ¶
func ResponseFailedWithData ¶
Types ¶
type CreateUserPayload ¶
type DeleteUserPayload ¶
type DeleteUserPayload struct { UserID uint `json:"user_id" example:"1" form:"user_id"` } //@name DeleteUserPayload
type GetUserPayload ¶
type GetUserPayload struct { UserID uint `json:"user_id" example:"1" form:"user_id"` } //@name GetUserPayload
type JWTClaimResult ¶
type JWTCustomClaims ¶
type JWTCustomClaims struct { Email string `json:"email"` Admin bool `json:"admin"` jwt.StandardClaims }
type LoginPayload ¶
type LogoutModel ¶
type LogoutModel struct { IsLogout bool `json:"is_logout" example:"true"` } //@name LogoutModel
type LogoutPayload ¶
type LogoutPayload struct { AccessToken string `json:"access_token" example:"aa3f97cec3f342bc9b11e0592bbce319" form:"access_token"` } //@name LogoutPayload
type ProjectCreatePayload ¶
type ProjectDeletePayload ¶
type ProjectDetailModel ¶
type ProjectGetAllPayload ¶
type ProjectGetAllPayload struct { OwnerID uint `json:"owner_id" example:"1" form:"owner_id"` } //@name ProjectPayload
type ProjectGetPayload ¶
type ProjectModel ¶
type ProjectUpdatePayload ¶
type RegisterPayload ¶
type ResponseFailedBody ¶
type ResponseSuccessBody ¶
type ResponseSuccessBody struct { Status string `json:"status" example:"success"` Message string `json:"message" example:"success"` Data interface{} `json:"data"` } //@name ResponseSuccess
func ResponseSuccess ¶
func ResponseSuccess(message string, data interface{}) ResponseSuccessBody
type TagCreatePayload ¶
type TagDeletePayload ¶
type TagGetPayload ¶
type TagUpdatePayload ¶
type TaskCreatePayload ¶
type TaskCreatePayload struct { Name string `json:"name" example:"Lorem ipsum dolor sit amet" form:"title"` Priority int `json:"priority" example:"1" form:"priority"` ProjectID uint `json:"project_id" example:"1" form:"project_id"` OwnerID uint `json:"owner_id" example:"1" form:"owner_id"` } //@name TaskPayload
type TaskDeletePayload ¶
type TaskGetPayload ¶
type TaskQueryPayload ¶
type TaskStatePayload ¶
type TaskUpdatePayload ¶
type TaskUpdatePayload struct { TaskID uint `json:"task_id" example:"1" form:"task_id"` Name string `json:"name" example:"Lorem ipsum dolor sit amet" form:"title"` Priority int `json:"priority" example:"1" form:"priority"` ProjectID uint `json:"project_id" example:"1" form:"project_id"` OwnerID uint `json:"owner_id" example:"1" form:"owner_id"` ClosedAt time.Time `json:"closed_at" example:"2020-01-01T00:00:00Z" form:"closed_at"` } //@name TaskPayload
type UpdateUserPayload ¶
Click to show internal directories.
Click to hide internal directories.