潘志宝
2024-09-19 336bd22b721af9ff7fcaa23eb54c307b9047ffaa
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpTokenController.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,8 +54,8 @@
    @PreAuthorize("@ss.hasPermission('data:channel-http:create')")
    @PostMapping("/create")
    public CommonResult<Boolean> create(@RequestBody HttpTokenEntity HttpTokenEntity){
        String id = UUID.randomUUID().toString();
        HttpTokenEntity.setId(id);
        HttpTokenEntity.setId(UUID.randomUUID().toString());
        HttpTokenEntity.setUpdateTime(new Date());
        httpTokenService.add(HttpTokenEntity);
        return success(true);
    }