VIID修改
This commit is contained in:
parent
56dd08e0c6
commit
5209575c0b
@ -365,10 +365,10 @@ public class ViidController {
|
|||||||
|
|
||||||
@RequestMapping(value = "/Images", method = RequestMethod.POST)
|
@RequestMapping(value = "/Images", method = RequestMethod.POST)
|
||||||
@IgnoreLogReq
|
@IgnoreLogReq
|
||||||
public VIIDBaseResp images(@RequestBody String req) {
|
public VIIDBaseResp images(@RequestBody ImageUploadReq req) {
|
||||||
log.info("Images:{}", req);
|
log.info("Images:{}", req);
|
||||||
return new VIIDBaseResp(
|
return new VIIDBaseResp(
|
||||||
new ResponseStatusObject("1", "/VIID/Faces", "0", "OK", sdfTime.format(new Date()))
|
new ResponseStatusObject("1", "/VIID/Images", "0", "OK", sdfTime.format(new Date()))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
package com.ycwl.basic.model.viid.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ImageInfoObject {
|
||||||
|
@JsonProperty("ContentDescription")
|
||||||
|
private String contentDescription;
|
||||||
|
|
||||||
|
@JsonProperty("EventSort")
|
||||||
|
private int eventSort;
|
||||||
|
|
||||||
|
@JsonProperty("FileFormat")
|
||||||
|
private String fileFormat;
|
||||||
|
|
||||||
|
@JsonProperty("FileSize")
|
||||||
|
private long fileSize;
|
||||||
|
|
||||||
|
@JsonProperty("Height")
|
||||||
|
private int height;
|
||||||
|
|
||||||
|
@JsonProperty("ImageID")
|
||||||
|
private String imageID;
|
||||||
|
|
||||||
|
@JsonProperty("ImageSource")
|
||||||
|
private String imageSource;
|
||||||
|
|
||||||
|
@JsonProperty("InfoKind")
|
||||||
|
private int infoKind;
|
||||||
|
|
||||||
|
@JsonProperty("SecurityLevel")
|
||||||
|
private String securityLevel;
|
||||||
|
|
||||||
|
@JsonProperty("ShotPlaceFullAdress")
|
||||||
|
private String shotPlaceFullAdress;
|
||||||
|
|
||||||
|
@JsonProperty("ShotTime")
|
||||||
|
private String shotTime;
|
||||||
|
|
||||||
|
@JsonProperty("Title")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@JsonProperty("Width")
|
||||||
|
private int width;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.ycwl.basic.model.viid.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ImageListObject {
|
||||||
|
@JsonProperty("Image")
|
||||||
|
private List<ImageObject> imageObject;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.ycwl.basic.model.viid.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ImageObject {
|
||||||
|
@JsonProperty("Data")
|
||||||
|
private String data;
|
||||||
|
|
||||||
|
@JsonProperty("FaceList")
|
||||||
|
private FaceListObject faceListObject;
|
||||||
|
|
||||||
|
@JsonProperty("ImageInfo")
|
||||||
|
private ImageInfoObject imageInfoObject;
|
||||||
|
}
|
@ -1,7 +1,11 @@
|
|||||||
package com.ycwl.basic.model.viid.req;
|
package com.ycwl.basic.model.viid.req;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.ycwl.basic.model.viid.entity.ImageListObject;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ImageUploadReq {
|
public class ImageUploadReq {
|
||||||
|
@JsonProperty("ImageListObject")
|
||||||
|
private ImageListObject imageListObject;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user