11 changed files with 515 additions and 85 deletions
@ -0,0 +1,32 @@ |
|||
package org.dromara.sample.manage.config; |
|||
|
|||
import cn.hutool.core.io.IoUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import io.minio.*; |
|||
import io.minio.http.Method; |
|||
import lombok.Data; |
|||
import lombok.Getter; |
|||
import org.springframework.beans.factory.annotation.Value; |
|||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.io.InputStream; |
|||
import java.util.HashMap; |
|||
|
|||
@Data |
|||
@Component |
|||
@ConfigurationProperties(prefix="xingluoapi") |
|||
public class XingluoApiConfig { |
|||
|
|||
@Value("${xingluoapi.engineLogin:http://60.204.247.65:8100/Third/Login}") |
|||
private String engineLogin; |
|||
@Value("${xingluoapi.engineCallbackUrl:http://121.237.178.63:11100/sample/manage/api/v1/saEngineRecord/some}") |
|||
private String engineCallbackUrl; |
|||
@Value("${xingluoapi.engineStart:http://60.204.247.65:8100/Third/Engine/Start}") |
|||
private String engineStart; |
|||
@Value("${xingluoapi.engineStop:http://60.204.247.65:8100/Third/Engine/Stop}") |
|||
private String engineStop; |
|||
|
|||
|
|||
} |
@ -0,0 +1,68 @@ |
|||
package org.dromara.sample.manage.config; |
|||
|
|||
public enum XingluoApiEnum { |
|||
SAFETY_HELMET(2004, "可见光","是否佩戴安全帽","安全帽预警","2004_ext",2004, 1899717400907046939l,"SafetyHelmet","安全帽"), |
|||
SAFETY_HARNESS(2003, "可见光","是否佩戴安全绳","安全绳预警","2003_ext",2003, 1899717400907046940l,"SafetyHarness","安全带"); |
|||
|
|||
|
|||
private final Integer id; |
|||
private final String sence; |
|||
private final String type; |
|||
private final String typeStr; //类型描述
|
|||
private final String extraType; |
|||
private final Integer senceId; |
|||
|
|||
private final Long aiLabelId; //ailabel对照数据
|
|||
private final String aiType; |
|||
private final String aiName; |
|||
|
|||
XingluoApiEnum(Integer id, String sence, String type, String typeStr, String extraType, Integer senceId, Long aiLabelId,String aiType, String aiName) { |
|||
this.id = id; |
|||
this.sence = sence; |
|||
this.type = type; |
|||
this.typeStr = typeStr; |
|||
this.extraType = extraType; |
|||
this.senceId = senceId; |
|||
|
|||
this.aiLabelId = aiLabelId; |
|||
this.aiType = aiType; |
|||
this.aiName = aiName; |
|||
} |
|||
|
|||
|
|||
public Integer getId() { |
|||
return id; |
|||
} |
|||
|
|||
public String getSence() { |
|||
return sence; |
|||
} |
|||
|
|||
public String getType() { |
|||
return type; |
|||
} |
|||
|
|||
public String getTypeStr() { |
|||
return typeStr; |
|||
} |
|||
|
|||
public String getExtraType() { |
|||
return extraType; |
|||
} |
|||
|
|||
public Integer getSenceId() { |
|||
return senceId; |
|||
} |
|||
|
|||
public Long getAiLabelId() { |
|||
return aiLabelId; |
|||
} |
|||
|
|||
public String getAiType() { |
|||
return aiType; |
|||
} |
|||
|
|||
public String getAiName() { |
|||
return aiName; |
|||
} |
|||
} |
@ -0,0 +1,83 @@ |
|||
{ |
|||
"code": 200, |
|||
"message": "操作成功", |
|||
"data": [ |
|||
{ |
|||
"id": 2022, |
|||
"sence": "可见光", |
|||
"type": "秸秆焚烧(烟、火、焚后痕迹)", |
|||
"model": "01", |
|||
"difficult": 0, |
|||
"extra_type": "2010_12", |
|||
"if_open": 1, |
|||
"user": "xuzhou_ai", |
|||
"sence_id": 2022, |
|||
"conf": 0.7, |
|||
"aiConfig": 0 |
|||
}, |
|||
{ |
|||
"id": 2023, |
|||
"sence": "可见光", |
|||
"type": "烟火识别", |
|||
"model": "01", |
|||
"difficult": 0, |
|||
"extra_type": "2010_13", |
|||
"if_open": 1, |
|||
"user": "xuzhou_ai", |
|||
"sence_id": 2023, |
|||
"conf": 0.7, |
|||
"aiConfig": 0 |
|||
}, |
|||
{ |
|||
"id": 2003, |
|||
"sence": "可见光", |
|||
"type": "是否佩戴安全绳", |
|||
"model": "01", |
|||
"difficult": 0, |
|||
"extra_type": "2003_ext", |
|||
"if_open": 1, |
|||
"user": "xuzhou_ai", |
|||
"sence_id": 2003, |
|||
"conf": 0.7, |
|||
"aiConfig": 0 |
|||
}, |
|||
{ |
|||
"id": 2004, |
|||
"sence": "可见光", |
|||
"type": "是否佩戴安全帽", |
|||
"model": "01", |
|||
"difficult": 0, |
|||
"extra_type": "2004_ext", |
|||
"if_open": 1, |
|||
"user": "xuzhou_ai", |
|||
"sence_id": 2004, |
|||
"conf": 0.7, |
|||
"aiConfig": 0 |
|||
}, |
|||
{ |
|||
"id": 2034, |
|||
"sence": "可见光", |
|||
"type": "路面车辆计数", |
|||
"model": "01", |
|||
"difficult": 0, |
|||
"extra_type": "2010_24", |
|||
"if_open": 1, |
|||
"user": "xuzhou_ai", |
|||
"sence_id": 2034, |
|||
"conf": 0.7, |
|||
"aiConfig": 0 |
|||
}, |
|||
{ |
|||
"id": 2015, |
|||
"sence": "可见光", |
|||
"type": "多类型车辆计数", |
|||
"model": "01", |
|||
"difficult": 0, |
|||
"extra_type": "2010_5", |
|||
"if_open": 1, |
|||
"user": "xuzhou_ai", |
|||
"sence_id": 2015, |
|||
"conf": 0.7 |
|||
} |
|||
] |
|||
} |
Loading…
Reference in new issue