Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlacklistValidation ¶
func BlacklistValidation(field string) validation.RuleFunc
func DatetimeValidation ¶
func DatetimeValidation(field string) validation.RuleFunc
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct {
Name string `json:"name"`
}
func (CreateUserRequest) Validate ¶
func (r CreateUserRequest) Validate() interface{}
type DeleteUserRequest ¶
type DeleteUserRequest struct {
ID string `param:"id" json:"id"`
}
func (DeleteUserRequest) Validate ¶
func (r DeleteUserRequest) Validate() interface{}
type EditUserRequest ¶
func (EditUserRequest) Validate ¶
func (r EditUserRequest) Validate() interface{}
type GetUserRequest ¶
type GetUserRequest struct { PaginatorRequest ID string `query:"id" json:"id"` }
func (GetUserRequest) Validate ¶
func (r GetUserRequest) Validate() interface{}
type MainResponse ¶
type PaginatorRequest ¶
type PaginatorRequest struct { Page int `query:"page" json:"page"` Limit int `query:"limit" json:"limit"` OrderBy string `query:"orderBy" json:"orderBy"` SortBy string `query:"sortBy" json:"sortBy"` Search string `query:"search" json:"search"` DisableCalculateTotal string `query:"disableCalculateTotal" json:"disableCalculateTotal"` }
type PaginatorResponse ¶
Click to show internal directories.
Click to hide internal directories.