优化截图获取接口
This commit is contained in:
@@ -6,7 +6,7 @@ package com.genersoft.iot.vmp.vmanager.bean;
|
||||
public enum ErrorCode {
|
||||
SUCCESS(0, "成功"),
|
||||
ERROR100(100, "失败"),
|
||||
ERROR400(400, "参数不全或者错误"),
|
||||
ERROR400(400, "参数或方法错误"),
|
||||
ERROR404(404, "资源未找到"),
|
||||
ERROR403(403, "无权限操作"),
|
||||
ERROR401(401, "请登录后重新请求"),
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.genersoft.iot.vmp.vmanager.bean;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(description = "截图地址信息")
|
||||
public class SnapPath {
|
||||
|
||||
@Schema(description = "相对地址")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "绝对地址")
|
||||
private String absoluteFilePath;
|
||||
|
||||
@Schema(description = "请求地址")
|
||||
private String url;
|
||||
|
||||
|
||||
public static SnapPath getInstance(String path, String absoluteFilePath, String url) {
|
||||
SnapPath snapPath = new SnapPath();
|
||||
snapPath.setPath(path);
|
||||
snapPath.setAbsoluteFilePath(absoluteFilePath);
|
||||
snapPath.setUrl(url);
|
||||
return snapPath;
|
||||
}
|
||||
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public String getAbsoluteFilePath() {
|
||||
return absoluteFilePath;
|
||||
}
|
||||
|
||||
public void setAbsoluteFilePath(String absoluteFilePath) {
|
||||
this.absoluteFilePath = absoluteFilePath;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user