πŸ“ μ„€λͺ…

λ§€μΉ­ λŒ€κΈ°μ—΄ μƒνƒœ 정보λ₯Ό λ‹΄λŠ” DTOμž…λ‹ˆλ‹€.

πŸ”— κ΄€λ ¨ μ—”λ“œν¬μΈνŠΈ

πŸ“‹ DTO ꡬ쑰

@Builder
public class MatchStatusDto {
    private Integer matchType;        // λ§€μΉ­ νƒ€μž… (0: 1λŒ€1, 1: 2λŒ€2)
    private Integer matchTitle;       // 주제 번호 (0~4)
    private Integer firstQueueSize;   // μ°¬μ„± μ§„μ˜ λŒ€κΈ°μž 수
    private Integer secondQueueSize;  // λ°˜λŒ€ μ§„μ˜ λŒ€κΈ°μž 수
    private Integer thirdQueueSize;   // μƒκ΄€μ—†μŒ μ§„μ˜ λŒ€κΈ°μž 수
}

πŸ“‹ 전솑 ν˜•μ‹ (ApiResponse λž˜ν•‘)

{
  "status": "success",
  "data": [
    {
      "matchType": 0,
      "matchTitle": 0,
      "firstQueueSize": 2,
      "secondQueueSize": 1,
      "thirdQueueSize": 0
    }
  ]
}

πŸ“ μ‚¬μš© μ‹œλ‚˜λ¦¬μ˜€