Commit d7013b3a by 程裕兵

feat:test

parent bb2198cd
......@@ -16,6 +16,9 @@ import com.jiejing.paycenter.api.merchant.vo.MerchantApplyVO;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Resource;
import javax.validation.Valid;
import org.apache.commons.lang3.StringUtils;
......@@ -50,10 +53,13 @@ public class TestController {
public JsonResult<SignatureVO> upload(@RequestParam String url) throws IOException {
GetAuthorityRequest request = new GetAuthorityRequest();
request.setAccessTypeEnum(AccessTypeEnum.PRIVATE);
request.setBizCode("BRAND_INFO");
request.setBizCode("FINANCE_INFO");
request.setTenantId(1L);
request.setTenantType("BRAND");
request.setResourceName(IdWorker.getIdStr() + getSuffix(url));
Map<String, String> params = new HashMap<>(1);
params.put("tenantId", "1");
request.setParamMap(params);
JsonResult<SignatureVO> result = authorityApi.getAuthoritySignatureForInner(request);
result.assertSuccess();
SignatureVO signatureVO = result.getResult();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment