feat:完善信息

This commit is contained in:
henry
2021-10-12 17:27:41 +08:00
parent eccd71809d
commit 17fb77e84a
10 changed files with 54 additions and 36 deletions

View File

@ -30,6 +30,13 @@ func GetSession() ApiHandle {
}
}
func GetLocal() ApiHandle {
return func(c *gin.Context) interface{} {
value, _ := c.Get(config.ContentForLocal)
return value
}
}
func Bind(req interface{}) ApiHandle {
return func(c *gin.Context) interface{} {
var err error