全部
This commit is contained in:
@ -77,7 +77,7 @@ public class AuthGenerator {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
// 生成加密的授权字符串
|
// 生成加密的授权字符串
|
||||||
String authContent = generateAuth("标准版", 1000, 365, "3A446222D1FE537F6C9EEF5C2AB3F957");
|
String authContent = generateAuth("标准版", 1000, 7, "25F429FDA965007B72BB7A6B2C03535A");
|
||||||
|
|
||||||
// 定义授权文件路径(当前目录下的 yjearth.lic)
|
// 定义授权文件路径(当前目录下的 yjearth.lic)
|
||||||
Path licPath = Paths.get("yjearth.lic");
|
Path licPath = Paths.get("yjearth.lic");
|
||||||
|
|||||||
@ -40,8 +40,8 @@ public class TsEventController {
|
|||||||
|
|
||||||
@PostMapping("/delete")
|
@PostMapping("/delete")
|
||||||
@Operation(summary = "删除态势事件")
|
@Operation(summary = "删除态势事件")
|
||||||
public ApiResponse delete(@Parameter(description = "态势事件ID") @RequestParam(required = true) String id) {
|
public ApiResponse deletes(@Parameter(description = "态势事件ID列表") @RequestBody List<String> ids) {
|
||||||
tsEventService.removeById(id);
|
tsEventService.removeByIds(ids);
|
||||||
return ApiResponse.success(null);
|
return ApiResponse.success(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,8 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import static com.yj.earth.common.constant.GlobalConstant.SHOW;
|
import static com.yj.earth.common.constant.GlobalConstant.SHOW;
|
||||||
|
|
||||||
@Tag(name = "态势资源管理")
|
@Tag(name = "态势资源管理")
|
||||||
@ -38,8 +40,8 @@ public class TsSourceController {
|
|||||||
|
|
||||||
@Operation(summary = "删除态势资源")
|
@Operation(summary = "删除态势资源")
|
||||||
@PostMapping("/delete")
|
@PostMapping("/delete")
|
||||||
public ApiResponse delete(@Parameter(description = "态势资源ID") @RequestParam(required = true) String id) {
|
public ApiResponse deletes(@Parameter(description = "态势资源ID列表") @RequestBody List<String> ids) {
|
||||||
tsSourceService.removeById(id);
|
tsSourceService.removeByIds(ids);
|
||||||
return ApiResponse.success(null);
|
return ApiResponse.success(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,9 +32,9 @@ public class TsEvent implements Serializable {
|
|||||||
@Schema(description = "事件回调")
|
@Schema(description = "事件回调")
|
||||||
private String callback;
|
private String callback;
|
||||||
@Schema(description = "开始时间")
|
@Schema(description = "开始时间")
|
||||||
private LocalDateTime startTime;
|
private Long startTime;
|
||||||
@Schema(description = "结束时间")
|
@Schema(description = "结束时间")
|
||||||
private LocalDateTime endTime;
|
private Long endTime;
|
||||||
@Schema(description = "其他参数")
|
@Schema(description = "其他参数")
|
||||||
private String detail;
|
private String detail;
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
|
|||||||
@ -18,9 +18,9 @@ public class TsEvent {
|
|||||||
@Schema(description = "事件回调")
|
@Schema(description = "事件回调")
|
||||||
private String callback;
|
private String callback;
|
||||||
@Schema(description = "开始时间")
|
@Schema(description = "开始时间")
|
||||||
private LocalDateTime startTime;
|
private Long startTime;
|
||||||
@Schema(description = "结束时间")
|
@Schema(description = "结束时间")
|
||||||
private LocalDateTime endTime;
|
private Long endTime;
|
||||||
@Schema(description = "其他参数")
|
@Schema(description = "其他参数")
|
||||||
private String detail;
|
private String detail;
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
|
|||||||
@ -18,9 +18,9 @@ public class AddTsEventDto {
|
|||||||
@Schema(description = "事件回调")
|
@Schema(description = "事件回调")
|
||||||
private String callback;
|
private String callback;
|
||||||
@Schema(description = "开始时间")
|
@Schema(description = "开始时间")
|
||||||
private LocalDateTime startTime;
|
private Long startTime;
|
||||||
@Schema(description = "结束时间")
|
@Schema(description = "结束时间")
|
||||||
private LocalDateTime endTime;
|
private Long endTime;
|
||||||
@Schema(description = "其他参数")
|
@Schema(description = "其他参数")
|
||||||
private String detail;
|
private String detail;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,9 +18,9 @@ public class UpdateTsEventDto {
|
|||||||
@Schema(description = "事件回调")
|
@Schema(description = "事件回调")
|
||||||
private String callback;
|
private String callback;
|
||||||
@Schema(description = "开始时间")
|
@Schema(description = "开始时间")
|
||||||
private LocalDateTime startTime;
|
private Long startTime;
|
||||||
@Schema(description = "结束时间")
|
@Schema(description = "结束时间")
|
||||||
private LocalDateTime endTime;
|
private Long endTime;
|
||||||
@Schema(description = "其他参数")
|
@Schema(description = "其他参数")
|
||||||
private String detail;
|
private String detail;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
host: 192.168.110.137
|
host: 127.0.0.1
|
||||||
port: 8848
|
port: 8848
|
||||||
|
|
||||||
sdk:
|
sdk:
|
||||||
|
|||||||
Reference in New Issue
Block a user