user.go 260 B

12345678910111213141516
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func userInfo(c *bm.Context) {
  6. arg := new(struct {
  7. MID int64 `form:"mid" validate:"required"`
  8. })
  9. if err := c.Bind(arg); err != nil {
  10. return
  11. }
  12. c.JSON(tvSrv.UserInfo(c, arg.MID))
  13. }