user.go 535 B

12345678910111213141516171819202122
  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. }