You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
365 B

package http
import (
"strconv"
"go-common/library/ecode"
bm "go-common/library/net/http/blademaster"
)
func userInfo(c *bm.Context) {
var (
mid int
err error
)
midStr := c.Request.Form.Get("mid")
if mid, err = strconv.Atoi(midStr); err != nil {
c.JSON(nil, ecode.RequestErr)
return
}
res, err := svc.UserInfo(c, int64(mid))
c.JSON(res, err)
}