|
|
@@ -1,20 +1,23 @@
|
|
|
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.client.model.test.TestUserInfoParam;
|
|
|
import com.zhongshu.card.server.core.service.TestService;
|
|
|
import com.zhongshu.card.server.core.service.devices.DeviceInfoServiceImpl;
|
|
|
import com.zhongshu.card.server.core.service.openAPI.OpenAPIRegisterService;
|
|
|
import com.zhongshu.card.server.core.service.payment.PayCallService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.util.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Collections;
|
|
|
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@@ -45,6 +48,20 @@ public class TestController {
|
|
|
return this.testService.text();
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "测试用户同步", description = "测试隐患同步")
|
|
|
+ @RequestMapping(value = "testAddUser", method = {RequestMethod.POST})
|
|
|
+ public ResultContent testAddUser(@RequestBody TestUserInfoParam param) {
|
|
|
+ log.info("testAddUser... {}", param.getId());
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "测试用户同步(From)", description = "测试隐患同步")
|
|
|
+ @RequestMapping(value = "testAddUser1", method = {RequestMethod.POST})
|
|
|
+ public ResultContent testAddUser1(@Parameter TestUserInfoParam param) {
|
|
|
+ log.info("testAddUser1... {}", param.getNickname());
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
+ }
|
|
|
+
|
|
|
public static byte[] reverse(byte[] bin) {
|
|
|
var items = new ArrayList<Byte>();
|
|
|
for (var b : bin) {
|