invite.go 400 B

12345678910111213141516171819
  1. package v1
  2. // InvitationRequest .
  3. type InvitationRequest struct {
  4. MID int64 `json:"mid" form:"mid" validate:"required"`
  5. }
  6. // Download .
  7. type Download struct {
  8. URL string `json:"url"`
  9. PWD string `json:"pwd"`
  10. Type int8 `json:"type"`
  11. }
  12. // InvitationResponse .
  13. type InvitationResponse struct {
  14. Data []*Download `json:"download,omitempty"`
  15. InviteCode int32 `json:"invite_code"`
  16. }