Documentation ¶
Index ¶
- Constants
- func GetBoolValueFromParam(context *gin.Context, key string) bool
- func GetCallerID(context *gin.Context) uint
- func GetDepartment(context *gin.Context) string
- func GetProblemID(context *gin.Context) uint
- func GetProvince(context *gin.Context) string
- func GetSearchText(context *gin.Context) string
- func GetStringValueFromParam(context *gin.Context, key string) string
- func GetUintValueFromParam(context *gin.Context, key string) uint
- func GetUserID(context *gin.Context) uint
Constants ¶
View Source
const IdentityKeyID = "ID"
Variables ¶
This section is empty.
Functions ¶
func GetCallerID ¶
Returns the caller id, extracted from the token
func GetDepartment ¶
Returns the department for schools from the params
func GetProblemID ¶
func GetProvince ¶
Returns the province for schools from the params
func GetSearchText ¶
Returns the search string for schools from the params
func GetStringValueFromParam ¶
func GetUintValueFromParam ¶
Generic function to retrieve a param
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.