user.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package models
  2. type OpenIdSetRequest struct {
  3. Code string `json:"code"` //微信code
  4. OpenId string `json:"openId"` //邀请好友的openId
  5. }
  6. type OpenIdSetResponse struct {
  7. SessionKey string `json:"session_key,omitempty"`
  8. OpenId string `json:"openid,omitempty"`
  9. Errcode int `json:"errcode,omitempty"`
  10. Errmsg string `json:"errmsg,omitempty"`
  11. }
  12. type GetUserScoreRequest struct {
  13. OpenId string `json:"openId"`
  14. }
  15. type SubUserScoreRequest struct {
  16. OpenId string `json:"openId"`
  17. Score int `json:"score"` //积分
  18. Type int `json:"type"` //1-新用户 2-签到领取积分 3-看广告获取积分 4-邀请好友奖励积分 5-其他 6-下载图片
  19. Des string `json:"des"` //描述
  20. Num int `json:"num"`
  21. }
  22. type GetUserListRequest struct {
  23. OpenIdOne string `json:"openIdOne"`
  24. PageSize int `json:"pageSize"`
  25. PageIndex int `json:"pageIndex"`
  26. }
  27. type UpdateUserScoreRequest struct {
  28. AvatarUrl string `json:"avatarUrl"`
  29. NickName string `json:"nickName"`
  30. OpenId string `json:"openId"`
  31. }