时间戳服务
This commit is contained in:
@ -26,6 +26,7 @@ public class TimeServiceController {
|
||||
* @param data 待申请时间戳的原文
|
||||
* @return 时间戳加密原文
|
||||
*/
|
||||
@ApiOperation("申请时间戳")
|
||||
@GetMapping(value = "/signTimeStamp")
|
||||
public BaseResponse<String> 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<TSAVerifyResult> 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<TtsAgent.TtsParseResult> 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<String> 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<SystemTime> getServiceSystemTime(@ApiParam(value = "待申请时间戳的原文", required = false) @RequestParam(name = "data",required = false) String data) {
|
||||
TimeServiceConstant constant = new TimeServiceConstant();
|
||||
|
Reference in New Issue
Block a user