|
|
@@ -3,6 +3,7 @@ package com.zhongshu.card.server.core.controller.org;
|
|
|
import com.github.microservice.core.util.bytes.BytesUtil;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.server.core.service.TestService;
|
|
|
+import com.zhongshu.card.server.core.service.openAPI.OpenAPIRegisterService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -23,18 +24,21 @@ public class TestController {
|
|
|
@Autowired
|
|
|
private TestService testService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ OpenAPIRegisterService openAPIRegisterService;
|
|
|
+
|
|
|
@Operation(summary = "测试接口", description = "测试接口")
|
|
|
@RequestMapping(value = "text", method = {RequestMethod.GET})
|
|
|
public ResultContent text() {
|
|
|
|
|
|
-// openAPIRegisterService.initRegisterPAIS();
|
|
|
+ openAPIRegisterService.initRegisterPAIS();
|
|
|
|
|
|
- try{
|
|
|
+ try {
|
|
|
byte[] bins = BytesUtil.longToBin(Long.parseLong("2152525002"), 4);
|
|
|
// var ret = reverse(bins);
|
|
|
String str = BytesUtil.binToHex(bins);
|
|
|
log.info("str; {}", str.toUpperCase());
|
|
|
- }catch (Exception e){
|
|
|
+ } catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return this.testService.text();
|