12345678910111213141516171819202122 |
- 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)
- }
|