You've already forked FrameTour-BE
外部设备及对接阿里云媒体处理
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.ycwl.basic.model.custom.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("custom_upload_task")
|
||||
public class CustomUploadTaskEntity {
|
||||
|
||||
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
private Long scenicId;
|
||||
|
||||
private Long deviceId;
|
||||
|
||||
private String savePath;
|
||||
|
||||
private String status;
|
||||
|
||||
private String jobId;
|
||||
|
||||
private String errorMsg;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
}
|
145
src/main/java/com/ycwl/basic/model/custom/entity/FaceData.java
Normal file
145
src/main/java/com/ycwl/basic/model/custom/entity/FaceData.java
Normal file
@@ -0,0 +1,145 @@
|
||||
package com.ycwl.basic.model.custom.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FaceData {
|
||||
private String category;
|
||||
private String name;
|
||||
private List<Occurrence> occurrences;
|
||||
private Double ratio;
|
||||
|
||||
// Getters and setters
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public List<Occurrence> getOccurrences() {
|
||||
return occurrences;
|
||||
}
|
||||
|
||||
public void setOccurrences(List<Occurrence> occurrences) {
|
||||
this.occurrences = occurrences;
|
||||
}
|
||||
|
||||
public Double getRatio() {
|
||||
return ratio;
|
||||
}
|
||||
|
||||
public void setRatio(Double ratio) {
|
||||
this.ratio = ratio;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public static class Occurrence {
|
||||
@JsonProperty("faceUrl")
|
||||
private String faceUrl;
|
||||
|
||||
private Double from;
|
||||
private Position position;
|
||||
private String scene;
|
||||
private Double score;
|
||||
private Double timestamp;
|
||||
private Double to;
|
||||
|
||||
// Getters and setters
|
||||
public String getFaceUrl() {
|
||||
return faceUrl;
|
||||
}
|
||||
|
||||
public void setFaceUrl(String faceUrl) {
|
||||
this.faceUrl = faceUrl;
|
||||
}
|
||||
|
||||
public Double getFrom() {
|
||||
return from;
|
||||
}
|
||||
|
||||
public void setFrom(Double from) {
|
||||
this.from = from;
|
||||
}
|
||||
|
||||
public Position getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(Position position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public String getScene() {
|
||||
return scene;
|
||||
}
|
||||
|
||||
public void setScene(String scene) {
|
||||
this.scene = scene;
|
||||
}
|
||||
|
||||
public Double getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(Double score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public Double getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Double timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
public Double getTo() {
|
||||
return to;
|
||||
}
|
||||
|
||||
public void setTo(Double to) {
|
||||
this.to = to;
|
||||
}
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public static class Position {
|
||||
@JsonProperty("leftTop")
|
||||
private List<Integer> leftTop;
|
||||
|
||||
@JsonProperty("rightBottom")
|
||||
private List<Integer> rightBottom;
|
||||
|
||||
// Getters and setters
|
||||
public List<Integer> getLeftTop() {
|
||||
return leftTop;
|
||||
}
|
||||
|
||||
public void setLeftTop(List<Integer> leftTop) {
|
||||
this.leftTop = leftTop;
|
||||
}
|
||||
|
||||
public List<Integer> getRightBottom() {
|
||||
return rightBottom;
|
||||
}
|
||||
|
||||
public void setRightBottom(List<Integer> rightBottom) {
|
||||
this.rightBottom = rightBottom;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package com.ycwl.basic.model.custom.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AliyunCallbackReq {
|
||||
|
||||
private String jobId;
|
||||
|
||||
private String pipelineId;
|
||||
|
||||
private String status;
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package com.ycwl.basic.model.custom.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CreateUploadTaskReq {
|
||||
|
||||
private String accessKey;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String type;
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
package com.ycwl.basic.model.custom.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UploadCompleteReq {
|
||||
|
||||
private String accessKey;
|
||||
|
||||
private Long taskId;
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package com.ycwl.basic.model.custom.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UploadFailedReq {
|
||||
|
||||
private String accessKey;
|
||||
|
||||
private Long taskId;
|
||||
|
||||
private String errorMsg;
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package com.ycwl.basic.model.custom.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CreateUploadTaskResp {
|
||||
|
||||
private Long taskId;
|
||||
|
||||
private String uploadUrl;
|
||||
|
||||
private String savePath;
|
||||
}
|
Reference in New Issue
Block a user