Spring Boot2 (5) – Design api interface and data structure
This commit is contained in:
20
src/main/java/com/rest/api/model/response/CommonResult.java
Normal file
20
src/main/java/com/rest/api/model/response/CommonResult.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.rest.api.model.response;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class CommonResult {
|
||||
|
||||
@ApiModelProperty(value = "응답 성공여부 : true/false")
|
||||
private boolean success;
|
||||
|
||||
@ApiModelProperty(value = "응답 코드 번호 : > 0 정상, < 0 비정상")
|
||||
private int code;
|
||||
|
||||
@ApiModelProperty(value = "응답 메시지")
|
||||
private String msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user