From bb8a4d86ff1260a8aa11b4dc6b07d49fc6ff1082 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Fri, 2 Apr 2021 09:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=88=B3=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/timeService/controller/TimeServiceController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/controller/TimeServiceController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/controller/TimeServiceController.java index a221903..d2e8503 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/controller/TimeServiceController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/controller/TimeServiceController.java @@ -26,6 +26,7 @@ public class TimeServiceController { * @param data 待申请时间戳的原文 * @return 时间戳加密原文 */ + @ApiOperation("申请时间戳") @GetMapping(value = "/signTimeStamp") public BaseResponse signTimeStamp(@ApiParam(value = "待申请时间戳的原文", required = false) @RequestParam(name = "data",required = false) String data) { TimeServiceConstant constant = new TimeServiceConstant(); @@ -37,6 +38,7 @@ public class TimeServiceController { * @param timestamp 时间戳加密原文 * @return 时间戳对象 */ + @ApiOperation("解析时间戳加密原文") @GetMapping(value = "/verifyTimeStamp") public BaseResponse verifyTimeStamp(@ApiParam(value = "时间戳加密原文", required = true) @RequestBody String timestamp) { TimeServiceConstant constant = new TimeServiceConstant(); @@ -48,6 +50,7 @@ public class TimeServiceController { * @param data 待申请时间戳的原文 * @return 时间戳对象 */ + @ApiOperation("直接获取时间戳对象(内涵日期)") @PostMapping(value = "/getServiceTimeObj") public BaseResponse getServiceTimeObj(@ApiParam(value = "待申请时间戳的原文", required = false) @RequestParam(name = "data",required = false) String data) { TimeServiceConstant constant = new TimeServiceConstant(); @@ -58,6 +61,7 @@ public class TimeServiceController { * @param data 待申请时间戳的原文 * @return 时间戳对象 */ + @ApiOperation("直接获取日期字符串") @GetMapping(value = "/getServiceTime") public BaseResponse getServiceTime(@ApiParam(value = "待申请时间戳的原文", required = false) @RequestParam(name = "data",required = false) String data) { TimeServiceConstant constant = new TimeServiceConstant(); @@ -68,6 +72,7 @@ public class TimeServiceController { * @param data 待申请时间戳的原文 * @return SystemTime */ + @ApiOperation("获取日期对象SystemTime") @GetMapping(value = "/getServiceSystemTime") public BaseResponse getServiceSystemTime(@ApiParam(value = "待申请时间戳的原文", required = false) @RequestParam(name = "data",required = false) String data) { TimeServiceConstant constant = new TimeServiceConstant();