Documentation
¶
Index ¶
- func BindChangeRequest(c *gin.Context, ctxKey string, request audit.IChangeRequest) (err error)
- func BindID(c *gin.Context) (id uint, err error)
- func BindJSON(c *gin.Context, ctxKey string, request interface{}) error
- func BindQuery(c *gin.Context, ctxKey string, request interface{}) (err error)
- func BindURI(c *gin.Context, ctxKey string, request interface{}) (err error)
- func BindURIUint(c *gin.Context, uri string) (val uint, err error)
- func ShouldBindJSON(c *gin.Context, ctxKey string, request interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindChangeRequest ¶
BindChangeRequest Bind general change request(Update/Delete)
func BindJSON ¶
BindJSON binds general JSON request. It will return error if request doesn't have body.
func BindURIUint ¶ added in v0.1.5
BindURIUint binds uint from uri
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.