Commit 4667b7a9 by 墨竹

fix:新增设置对外密钥

parent 9e94e252
...@@ -8,7 +8,9 @@ public enum SecretTypeEnum { ...@@ -8,7 +8,9 @@ public enum SecretTypeEnum {
CONTACT_SECRET(2, "通讯录"), CONTACT_SECRET(2, "通讯录"),
HAOBAN_HELP(3, "好办助手"), HAOBAN_HELP(3, "好办助手"),
MEMBER_WAPP(4, "会员小程序"), MEMBER_WAPP(4, "会员小程序"),
CUSTOMIZED_APP(5, "自建代开发"); CUSTOMIZED_APP(5, "自建代开发"),
WEWORK_PAY(6, "企业支付"),
;
private int val; private int val;
private String name; private String name;
......
package com.gic.haoban.manage.api.service.out;
import com.gic.haoban.manage.api.dto.SecretSettingDTO;
/**
* @author mozhu
* @date 2022/1/10 09:44
*/
public interface SecretSettingApiService {
/**
* 根据非会员小程序类型获取
* @param wxEnterpriseId
* @param secretType
* @return
*/
SecretSettingDTO getSecretSetting(String wxEnterpriseId, int secretType);
}
...@@ -54,43 +54,6 @@ public class TestController extends WebBaseController { ...@@ -54,43 +54,6 @@ public class TestController extends WebBaseController {
@Autowired @Autowired
private MemberTagImportDealService memberTagImportDealService; private MemberTagImportDealService memberTagImportDealService;
//
// @RequestMapping("/testList")
// @ResponseBody
// public HaobanResponse testList(String id, BasePageInfo info) {
// HaoBanErrCode errCode = HaoBanErrCode.ERR_1;
// Page<TestDTO> testDTOPage = testService.queryPage(info);
// return resultResponse(errCode, testDTOPage);
// }
//
// @RequestMapping("/imcallback")
// @ResponseBody
// public JSONObject imcallback(@RequestBody JSONObject msg) {
// System.out.println(msg);
// System.out.println(msg.toJSONString());
// String rest = "{\n" +
// " \"ActionStatus\": \"OK\",\n" +
// " \"ErrorInfo\": \"\",\n" +
// " \"ErrorCode\": 0 // 0 为允许发言\n" +
// "}";
// return JSONObject.parseObject(rest);
// }
//
//
// @RequestMapping("/testListVo")
// @ResponseBody
// public HaobanResponse testListVo(TestQo qo, BasePageInfo info) {
// HaoBanErrCode errCode = HaoBanErrCode.ERR_1;
// String s = CheckContainUtil.checkAttr(qo);
// if (s != null) {
// System.out.println("缺少参数");
// errCode = HaoBanErrCode.ERR_5;
// return resultResponse(errCode);
// }
// Page<TestDTO> testDTOPage = testService.queryPage(info);
// List<TestVo> res = EntityUtil.changeEntityListByJSON(TestVo.class, testDTOPage.getResult());
// return resultResponse(errCode, res);
// }
/** /**
* 创建定时器 * 创建定时器
......
package com.gic.haoban.manage.service.service.out.impl;
import com.gic.haoban.manage.api.dto.SecretSettingDTO;
import com.gic.haoban.manage.api.service.out.SecretSettingApiService;
import com.gic.haoban.manage.service.service.SecretSettingService;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @author mozhu
* @date 2022/1/10 09:45
*/
public class SecretSettingApiServiceImpl implements SecretSettingApiService {
@Autowired
private SecretSettingService secretSettingService;
@Override
public SecretSettingDTO getSecretSetting(String wxEnterpriseId, int secretType) {
return secretSettingService.getSecretSetting(wxEnterpriseId, secretType);
}
}
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