Documentation ¶
Index ¶
- func CheckJSON(c *gin.Context, params interface{}) (b bool)
- func GetID(c *gin.Context) (int64, bool)
- func GetIDByName(c *gin.Context, name string) (int64, bool)
- func GetIDByNameNoErr(c *gin.Context, name string) (int64, bool)
- func GetJSON(c *gin.Context, params interface{}) (b bool)
- func GetMark(c *gin.Context) (string, bool)
- type ActionIDAndUserType
- type ActionIDType
- type ParamsListType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIDByName ¶
GetIDByName 获取指定的ID数据
Types ¶
type ActionIDAndUserType ¶
func GetActionIDAndUser ¶
func GetActionIDAndUser(c *gin.Context) (ActionIDAndUserType, bool)
type ParamsListType ¶
type ParamsListType struct { Page int64 `json:"page" check:"page"` Max int64 `json:"max" check:"max"` Sort string `json:"sort" check:"sort"` Desc bool `json:"desc" check:"desc"` Search string `json:"search" check:"search" empty:"true"` }
func GetDataList ¶
func GetDataList(c *gin.Context) (ParamsListType, bool)
Click to show internal directories.
Click to hide internal directories.