Documentation ¶
Index ¶
- func AssignRequestParamsToDomainObject(params Params, domainObject domain.Object) error
- func BindFormBody(c *api.Context, params Params) error
- func BindJsonBody(c *api.Context, params Params) error
- func BindMultipartForm(c *api.Context, params Params) error
- func BindPathParams(c *api.Context, params Params) error
- func BindQueryParams(c *api.Context, params Params) error
- func BindXMLBody(c *api.Context, params Params) error
- func Field[T any](params Params, fieldName string) (T, error)
- func ToConcrete[T Params](params Params) (T, error)
- type BaseQueryParams
- type BaseQueryWithIDParams
- type BindRequestParamsFunc
- type CreateUserIDJsonBody
- type DeleteUserIDQueryParams
- type IDJsonBody
- type IDPathParam
- type IDQueryParam
- type IDRequestParam
- type Params
- type QueryRequestParams
- type QueryWithIDRequestParams
- type TenantIDJsonBody
- type TenantIDPathParam
- type TenantIDQueryParam
- type TenantIDRequestParam
- type UpdateUserIDJsonBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToConcrete ¶
Types ¶
type BaseQueryParams ¶
type BaseQueryParams struct { PageNo int `form:"pageNo" assign:"-"` PageSize int `form:"pageSize" assign:"-"` }
func (*BaseQueryParams) GetPageNo ¶
func (q *BaseQueryParams) GetPageNo() int
func (*BaseQueryParams) GetPageSize ¶
func (q *BaseQueryParams) GetPageSize() int
type BaseQueryWithIDParams ¶
type BaseQueryWithIDParams struct { IDQueryParam BaseQueryParams }
type CreateUserIDJsonBody ¶
type CreateUserIDJsonBody struct {
CreateUserID string `json:"createUserId" binding:"required" assign:"toField:CreateUserID"`
}
type DeleteUserIDQueryParams ¶
type DeleteUserIDQueryParams struct {
DeleteUserID string `form:"deleteUserId" binding:"required" assign:"toField:LastUpdateUserID"`
}
type IDJsonBody ¶
type IDJsonBody struct {
ID string `json:"id" binding:"required" assign:"toField:ID"`
}
func (*IDJsonBody) GetID ¶
func (id *IDJsonBody) GetID() string
func (*IDJsonBody) GetTenantID ¶
func (id *IDJsonBody) GetTenantID() string
type IDPathParam ¶
type IDPathParam struct {
ID string `uri:"id" binding:"required" assign:"toField:ID"`
}
func (*IDPathParam) GetID ¶
func (id *IDPathParam) GetID() string
func (*IDPathParam) GetTenantID ¶
func (id *IDPathParam) GetTenantID() string
type IDQueryParam ¶
type IDQueryParam struct {
ID string `form:"id" binding:"required" assign:"toField:ID"`
}
func (*IDQueryParam) GetID ¶
func (id *IDQueryParam) GetID() string
func (*IDQueryParam) GetTenantID ¶
func (id *IDQueryParam) GetTenantID() string
type IDRequestParam ¶
type QueryRequestParams ¶
type QueryWithIDRequestParams ¶
type QueryWithIDRequestParams interface { IDRequestParam QueryRequestParams }
type TenantIDJsonBody ¶
type TenantIDJsonBody struct {
TenantID string `json:"tenantId" binding:"required" assign:"toField:TenantID"`
}
type TenantIDPathParam ¶
type TenantIDPathParam struct {
TenantID string `uri:"tenantId" binding:"required" assign:"toField:TenantID"`
}
type TenantIDQueryParam ¶
type TenantIDQueryParam struct {
TenantID string `form:"tenantId" binding:"required" assign:"toField:TenantID"`
}
type TenantIDRequestParam ¶
type UpdateUserIDJsonBody ¶
type UpdateUserIDJsonBody struct {
UpdateUserID string `json:"updateUserId" binding:"required" assign:"toField:LastUpdateUserID"`
}
Click to show internal directories.
Click to hide internal directories.