houzhongjian
2024-10-30 a28ca3f36d0ace05966a8c0fac1e4b5fe921f882
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpTagController.java
@@ -12,6 +12,7 @@
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.Date;
import java.util.List;
import java.util.UUID;
@@ -53,9 +54,9 @@
    @PreAuthorize("@ss.hasPermission('data:channel-http:create')")
    @PostMapping("/create")
    public CommonResult<Boolean> add(@RequestBody HttpTagEntity httpTagEntity){
        String id = UUID.randomUUID().toString();
        httpTagEntity.setId(id);
    public CommonResult<Boolean> create(@RequestBody HttpTagEntity httpTagEntity){
        httpTagEntity.setId(UUID.randomUUID().toString());
        httpTagEntity.setCreateTime(new Date());
        tagService.add(httpTagEntity);
        return success(true);
    }
@@ -63,6 +64,7 @@
    @PreAuthorize("@ss.hasPermission('data:channel-http:update')")
    @PutMapping("/update")
    public CommonResult<Boolean> update(@RequestBody HttpTagEntity httpTagEntity) {
        httpTagEntity.setUpdateTime(new Date());
        tagService.update(httpTagEntity);
        return success(true);
    }