@Test public void testSubmitAudit() throws Exception { WxMaCodeSubmitAuditRequest auditRequest = WxMaCodeSubmitAuditRequest .builder() .itemList(Arrays.asList( WxMaCategory .builder() .address("pages/logs/logs") .tag("工具 效率") .firstClass("工具") .firstId(287L) .secondClass("效率") .secondId(616L) .title("日志") .build() )).build(); long auditId = wxService.getCodeService().submitAudit(auditRequest); assertTrue(auditId > 0); System.out.println(auditId); }
@Override public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException { String responseContent = this.wxMaService.post(SUBMIT_AUDIT_URL, auditRequest.toJson()); JsonObject jsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject(); return GsonHelper.getLong(jsonObject, "auditid"); }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException { String responseContent = this.wxMaService.post(SUBMIT_AUDIT_URL, auditRequest.toJson()); JsonObject jsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject(); return GsonHelper.getLong(jsonObject, "auditid"); } }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException { String responseContent = this.wxMaService.post(SUBMIT_AUDIT_URL, auditRequest.toJson()); JsonObject jsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject(); return GsonHelper.getLong(jsonObject, "auditid"); } WxMaCodeServiceImpl(WxMaService wxMaService); }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException { String responseContent = this.wxMaService.post(SUBMIT_AUDIT_URL, auditRequest.toJson()); JsonObject jsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject(); return GsonHelper.getLong(jsonObject, "auditid"); } WxMaCodeServiceImpl(WxMaService wxMaService); @Override void commit(WxMaCodeCommitRequest commitRequest); @Override byte[] getQrCode(); @Override List<WxMaCategory> getCategory(); @Override List<String> getPage(); @Override long submitAudit(WxMaCodeSubmitAuditRequest auditRequest); @Override WxMaCodeAuditStatus getAuditStatus(long auditId); @Override WxMaCodeAuditStatus getLatestAuditStatus(); @Override void release(); @Override void changeVisitStatus(String action); @Override void revertCodeRelease(); @Override WxMaCodeVersionDistribution getSupportVersion(); @Override void setSupportVersion(String version); @Override void undoCodeAudit(); }
WxMaCodeServiceImpl implements WxMaCodeService { @Override public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException { String responseContent = this.wxMaService.post(SUBMIT_AUDIT_URL, auditRequest.toJson()); JsonObject jsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject(); return GsonHelper.getLong(jsonObject, "auditid"); } WxMaCodeServiceImpl(WxMaService wxMaService); @Override void commit(WxMaCodeCommitRequest commitRequest); @Override byte[] getQrCode(); @Override List<WxMaCategory> getCategory(); @Override List<String> getPage(); @Override long submitAudit(WxMaCodeSubmitAuditRequest auditRequest); @Override WxMaCodeAuditStatus getAuditStatus(long auditId); @Override WxMaCodeAuditStatus getLatestAuditStatus(); @Override void release(); @Override void changeVisitStatus(String action); @Override void revertCodeRelease(); @Override WxMaCodeVersionDistribution getSupportVersion(); @Override void setSupportVersion(String version); @Override void undoCodeAudit();  }