From 336bd22b721af9ff7fcaa23eb54c307b9047ffaa Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 19 九月 2024 08:54:54 +0800 Subject: [PATCH] http tag --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpApiController.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpApiController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpApiController.java index 1d8dac9..2cbf40a 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpApiController.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpApiController.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 HttpApiEntity httpApiEntity){ - String id = UUID.randomUUID().toString(); - httpApiEntity.setId(id); + httpApiEntity.setId(UUID.randomUUID().toString()); + httpApiEntity.setCreateTime(new Date()); httpApiService.add(httpApiEntity); return success(true); } @@ -63,6 +64,7 @@ @PutMapping("/update") public CommonResult<Boolean> update(@RequestBody HttpApiEntity httpApiEntity) { httpApiService.update(httpApiEntity); + httpApiEntity.setUpdateTime(new Date()); return success(true); } -- Gitblit v1.9.3