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