提交 | 用户 | 时间
|
3205a2
|
1 |
package com.iailab.module.data.point.controller.admin; |
D |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.data.point.dto.DaPointDTO; |
|
5 |
import com.iailab.module.data.point.service.ArcPointDataService; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import org.checkerframework.checker.units.qual.A; |
|
8 |
import org.springframework.beans.factory.annotation.Autowired; |
|
9 |
import org.springframework.validation.annotation.Validated; |
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
13 |
import org.springframework.web.bind.annotation.RestController; |
|
14 |
|
|
15 |
import java.util.UUID; |
|
16 |
|
|
17 |
import static com.iailab.framework.common.pojo.CommonResult.success; |
|
18 |
|
|
19 |
@Tag(name = "数据归档,测点") |
|
20 |
@RestController |
|
21 |
@RequestMapping("/data/da/point") |
|
22 |
@Validated |
|
23 |
public class ArcPointController { |
|
24 |
|
|
25 |
@Autowired |
|
26 |
private ArcPointDataService arcPointDataService; |
|
27 |
|
|
28 |
|
|
29 |
@PostMapping("archiving") |
|
30 |
public CommonResult<Boolean> archiving(@RequestBody String type) { |
|
31 |
arcPointDataService.archiving(type); |
|
32 |
return success(true); |
|
33 |
} |
|
34 |
} |