Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetListPayload ¶
func GetListPayload(rq *http.Request, payload *List_Payload) error
func ValidateQueryParams ¶
Types ¶
type GetDetailById_Payload ¶
type GetDetail_Payload ¶
type GetHealth_Result ¶
type GetHealth_Result struct { AppVersion string `json:"appVersion" example:"v0.1.0"` BuildSignature string `json:"buildSignature" example:"2b38f457-577f-423b-a7c0-16c50a86398c"` Uptime string `json:"uptime" example:"1m39.5398474s"` ServerTime time.Time `json:"serverTime" example:"2023-03-14T22:59:10.155009095+07:00"` }
type ListMetadata ¶
type ListMetadata struct { Count int64 `json:"count" example:"1"` Limit int64 `json:"limit" example:"10"` Skip int64 `json:"skip" example:"0"` SortBy string `json:"sortBy" example:"createdAt DESC"` }
func ToListMetadata ¶
func ToListMetadata(p *List_Payload, count int64) *ListMetadata
type List_Payload ¶
type Modifier ¶
type Modifier struct { ID string `json:"-"` Role constant.ModifierRole `json:"role" example:"USER"` FullName string `json:"fullName" example:"USER"` }
type Version_Payload ¶
type Version_Payload struct {
Version int64 `json:"version" example:"1"`
}
Click to show internal directories.
Click to hide internal directories.