user.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package v1
  2. import (
  3. user "go-common/app/service/bbq/user/api"
  4. )
  5. //LoginRequest 登陆
  6. type LoginRequest struct {
  7. NewTag int8 `json:"new_tag" form:"new_tag"`
  8. }
  9. //PhoneCheckResponse ...
  10. type PhoneCheckResponse struct {
  11. TELStatus int32 `json:"tel_status"`
  12. }
  13. // SpaceUserProfileRequest ...
  14. type SpaceUserProfileRequest struct {
  15. Upmid int64 `json:"up_mid" form:"up_mid" validate:"required"`
  16. }
  17. // NumResponse 空返回值
  18. type NumResponse struct {
  19. Num int64 `json:"num"`
  20. }
  21. //UserRelationRequest .
  22. type UserRelationRequest struct {
  23. UPMID int64 `json:"up_mid" form:"up_mid" validate:"required"`
  24. // 见上述RelationAction
  25. Action int32 `json:"action" form:"action"`
  26. }
  27. // UserRelationListResponse 关注、粉丝、拉黑列表结构
  28. type UserRelationListResponse struct {
  29. HasMore bool `json:"has_more"`
  30. List []*UserInfo `json:"list,omitempty"`
  31. }
  32. //UserLikeAddRequest .
  33. type UserLikeAddRequest struct {
  34. SVID int64 `json:"svid" form:"svid" validate:"required"`
  35. }
  36. //UserLikeCancelRequest .
  37. type UserLikeCancelRequest struct {
  38. SVID int64 `json:"svid" form:"svid" validate:"required"`
  39. }
  40. //InviteCodeRequest .
  41. type InviteCodeRequest struct {
  42. Num int64 `json:"num" form:"num" validate:"required"`
  43. Type string `json:"type" form:"type" validate:"required"`
  44. Digit int64 `json:"digit" form:"digit" validate:"required"`
  45. Author int64 `json:"author" form:"author" validate:"required"`
  46. }
  47. //CheckInviteCodeRequest .
  48. type CheckInviteCodeRequest struct {
  49. Code int64 `json:"code" form:"code" validate:"required"`
  50. DeviceID string `json:"device_id" form:"device_id" validate:"required"`
  51. Uname string `json:"uname" form:"uname"`
  52. }
  53. // UserInfo 用户相关信息,统一提供对外结构
  54. type UserInfo struct {
  55. user.UserBase
  56. user.UserStat
  57. FollowState int8 `json:"follow_state"`
  58. CursorValue string `json:"cursor_value"`
  59. }
  60. // UnLikeReq 不感兴趣
  61. type UnLikeReq struct {
  62. MID int64 `json:"mid" form:"mid"`
  63. SVID int64 `json:"svid" form:"svid"`
  64. }