playmate.ts 801 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import type { NextDTO } from './skill'
  2. /**
  3. * Playmate search request - POST /playmate/search
  4. */
  5. export interface PlaymateSearchDTO {
  6. /** Search keyword (ID or nickname) */
  7. keyword?: string
  8. page?: NextDTO
  9. }
  10. /**
  11. * Playmate search result item - from /playmate/search list
  12. */
  13. export interface PlaymateSearchVo {
  14. /** User ID (skill/user id) */
  15. id: string
  16. avatar: string
  17. nickname: string
  18. age: number
  19. /** Whether current user follows this playmate */
  20. follow: boolean
  21. /** User number / 用户编号 */
  22. userNo: string
  23. fansCount: number
  24. online: boolean
  25. birthdayAt: number
  26. /** 0=unknown, 1=male, 2=female */
  27. gender: 0 | 1 | 2
  28. }
  29. /**
  30. * Playmate search response - cursor pagination
  31. */
  32. export interface NextVOPlaymateSearchVo {
  33. list: PlaymateSearchVo[]
  34. next: unknown
  35. }