1
0
mirror of synced 2025-12-20 07:38:27 +08:00

🆕 #2198 【小程序】增加根据提交信息数据获取用户安全等级的接口

This commit is contained in:
徐凯旋
2022-01-26 14:27:14 +08:00
committed by GitHub
parent a79b05cd45
commit 1af394cdd9
10 changed files with 244 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.safety.request.WxMaUserSafetyRiskRankRequest;
import cn.binarywang.wx.miniapp.bean.safety.response.WxMaUserSafetyRiskRankResponse;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import static org.testng.AssertJUnit.assertNotNull;
@Test
@Guice(modules = ApiTestModule.class)
public class WxMaSafetyRiskControlServiceImplTest {
@Inject
protected WxMaService wxService;
@Test
public void testGetUserRiskRank() throws WxErrorException {
WxMaUserSafetyRiskRankRequest wxMaUserSafetyRiskRankRequest = WxMaUserSafetyRiskRankRequest.builder()
.appid("")
.openid("")
.scene(1)
.isTest(true)
.build();
WxMaUserSafetyRiskRankResponse wxMaUserSafetyRiskRankResponse = this.wxService.getSafetyRiskControlService().getUserRiskRank(wxMaUserSafetyRiskRankRequest);
assertNotNull(wxMaUserSafetyRiskRankResponse);
}
}