tjx
昨天 a53e6872c70ba7c6c870627007ece21df9bcedbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.hk.NumericalCollection.dto;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
 
import java.util.List;
 
 
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApiResponse<T> extends BaseApiResponse {
 
    private List<T> list;
 
    private int total;
 
    @JsonProperty("data") // Use this annotation if the JSON field name differs from the variable name
    private String data; // Add this field to match the response
 
}