附近小店
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.
 
 
 

28 lines
632 B

  1. package hdl
  2. import (
  3. "applet/app/e"
  4. "applet/app/svc"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // User 用户信息
  8. // @Summary 用户信息
  9. // @Tags 用户信息
  10. // @Description 用户信息
  11. // @Accept json
  12. // @Produce json
  13. // @Success 200 {string} ""
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/v1/communityTeam/agent/user [GET]
  16. func User(c *gin.Context) {
  17. user := svc.GetUser(c)
  18. res := map[string]string{
  19. "head_img": user.Profile.AvatarUrl,
  20. "nickname": user.Info.Nickname,
  21. "phone": user.Info.Phone,
  22. }
  23. e.OutSuc(c, res, nil)
  24. return
  25. }