package top.sdrkyj.custom.dto; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL) public class CkMsg { /** * null is permitted。 the filename for the uploaded file */ private String fileName; /** * 0 or null for failure, 1 for success. */ private Integer uploaded; /** * thr URL to access the uploaded file */ private String url; /** * Message returned when upload fails。 Optional on success. */ private ErrorMsg error; @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL) public static class ErrorMsg { /** * Message text */ private String message; public ErrorMsg() { } public ErrorMsg(String message) { this.message = message; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public Integer getUploaded() { return uploaded; } public void setUploaded(Integer uploaded) { this.uploaded = uploaded; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public ErrorMsg getError() { return error; } public void setError(ErrorMsg error) { this.error = error; } }