-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
HttpResponse.java
45 lines (34 loc) · 1 KB
/
HttpResponse.java
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package io.metersphere.api.dto.definition;
import io.metersphere.api.dto.request.http.MsHeader;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* @author: LAN
* @editer: 建国
* @date: 2023/11/21 18:12
* @version: 1.0
*/
@Data
public class HttpResponse implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@Schema(description = "唯一ID")
private String id;
@Schema(description = "响应码")
private String statusCode;
@Schema(description = "默认响应标识")
private boolean defaultFlag;
@Schema(description = "响应名称")
private String name;
@Schema(description = "响应请求头")
@Valid
private List<MsHeader> headers = new ArrayList<>();
@Schema(description = "响应请求体")
@Valid
private ResponseBody body = new ResponseBody();
}