user.go 681 B

12345678910111213141516171819202122232425262728
  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. }
  19. type GetUserListRequest struct {
  20. OpenIdOne string `json:"openIdOne"`
  21. PageSize int `json:"pageSize"`
  22. PageIndex int `json:"pageIndex"`
  23. }