附近小店
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hdl_user.go 632 B

2 달 전
123456789101112131415161718192021222324252627
  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. }