全部
This commit is contained in:
@ -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 = "创建时间")
|
||||
|
||||
Reference in New Issue
Block a user