Documentation ¶
Index ¶
- func BlacklistValidation(field string) validation.RuleFunc
- func DatetimeValidation(field string) validation.RuleFunc
- type CreateEmailRequest
- type CreateUserRequest
- type DeleteUserRequest
- type EditUserRequest
- type GetUserRequest
- type HTTPResponse
- type MainResponse
- type PaginatorRequest
- type PaginatorResponse
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 CreateEmailRequest ¶ added in v1.0.2
type CreateEmailRequest struct {
Email string `json:"email"`
}
func (CreateEmailRequest) Validate ¶ added in v1.0.2
func (r CreateEmailRequest) Validate() interface{}
type CreateUserRequest ¶
type CreateUserRequest struct { Name string `json:"name"` Emails []CreateEmailRequest `json:"emails"` }
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 ¶
type EditUserRequest struct { ID string `param:"id" json:"id"` Name string `json:"name"` Emails []CreateEmailRequest `json:"emails"` }
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 HTTPResponse ¶ added in v1.0.3
type MainResponse ¶
type PaginatorRequest ¶
type PaginatorRequest struct { Page string `query:"page" json:"page"` Limit string `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.