Documentation ¶
Index ¶
- func AssignRequestParamsToDomainObject(params Params, domainObject domain.Object) error
- func Field[T any](params Params, fieldName string) (T, error)
- func FormBody(c *api.Context, params Params) error
- func JsonBody(c *api.Context, params Params) error
- func MultipartForm(c *api.Context, params Params) error
- func PathParams(c *api.Context, params Params) error
- func QueryParams(c *api.Context, params Params) error
- func ToConcrete[T Params](params Params) (T, error)
- func XMLBody(c *api.Context, params Params) error
- type BaseQuery
- type BaseQueryWithID
- type IDJsonBody
- type IDPath
- type IDQuery
- type Params
- type Query
- type QueryWithID
- type TenantID
- type TenantIDJsonBody
- type TenantIDPath
- type TenantIDQuery
- type WithID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToConcrete ¶
Types ¶
type BaseQuery ¶
type BaseQuery struct { PageNo int `form:"pageNo" assign:"-"` PageSize int `form:"pageSize" assign:"-"` }
func (*BaseQuery) GetPageSize ¶
type BaseQueryWithID ¶
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 IDPath ¶
type IDPath struct {
ID string `uri:"id" binding:"required" assign:"toField:ID"`
}
func (*IDPath) GetTenantID ¶
type IDQuery ¶
type IDQuery struct {
ID string `form:"id" binding:"required" assign:"toField:ID"`
}
func (*IDQuery) GetTenantID ¶
type QueryWithID ¶
type TenantIDJsonBody ¶
type TenantIDJsonBody struct {
TenantID string `json:"tenant_id" binding:"required" assign:"toField:TenantID"`
}
type TenantIDPath ¶
type TenantIDPath struct {
TenantID string `uri:"tenant_id" binding:"required" assign:"toField:TenantID"`
}
type TenantIDQuery ¶
type TenantIDQuery struct {
TenantID string `form:"tenant_id" binding:"required" assign:"toField:TenantID"`
}
Click to show internal directories.
Click to hide internal directories.