From 03e8aca3ad6201c0d74e00d4c8d7367cdaaa54f9 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期五, 01 十一月 2024 11:49:51 +0800 Subject: [PATCH] tag新增导入导出功能 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpTokenController.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpTokenController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpTokenController.java index 7895f66..2ca79c7 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/controller/admin/HttpTokenController.java +++ b/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); } -- Gitblit v1.9.3