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