Documentation ¶
Index ¶
- func GetParams(request *gin.Context) map[string]interface{}
- func GetValue(post map[string]interface{}, key string, defaultVallue ...interface{}) interface{}
- func LogerMiddleware() gin.HandlerFunc
- func RequestMiddleWare() gin.HandlerFunc
- func SetCommon(data AllBody, request *gin.Context)
- func SetParams(data AllBody, request *gin.Context)
- type AllBody
- type Common
- type LogFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogerMiddleware ¶
func LogerMiddleware() gin.HandlerFunc
Types ¶
type Common ¶
type Common struct { AppId string `json:"app_id"` VersionName string `json:"version_name"` VersionBuild string `json:"version_build"` ClientAgent string `json:"clientagent"` DistinctId string `json:"distinct_id"` MjbAppid int `json:"mjb_appid"` CityId int `json:"city_id"` Token string `json:"token"` AppVersion string `json:"version_code"` }
设置公共请求参数
Click to show internal directories.
Click to hide internal directories.