BCMerchantBuyerService { public BCRestfulCommonResult addMerchantBuyer(String buyerId) { Map<String, Object> reqMap = new HashMap<>(); reqMap.put("buyer_id", buyerId); String url = BCHttpClientUtil.BEECLOUD_HOST + "/2/rest/user"; return BCHttpClientUtil.addRestObject(url, reqMap, BCRestfulCommonResult.class, true); }  BCRestfulCommonResult addMerchantBuyer(String buyerId); BCRestfulCommonResult batchAddMerchantBuyers(String merchant, List<String> buyerIdList); BCQueryMerchantBuyerResult getMerchantBuyers(String merchant, Long startTime, Long endTime);  }
@Test public void testAddMerchantUser() { String userId = UUID.randomUUID().toString().replace("-", ""); System.out.println(userId); BCRestfulCommonResult commonResult = userService.addMerchantBuyer(userId); System.out.println(commonResult.getResultMsg()); Assert.assertTrue(commonResult.getResultCode() == 0); }