🆕 #1895 【小程序】直播增加成员管理相关接口

This commit is contained in:
Binary Wang
2021-02-16 00:12:35 +08:00
parent 45a422f0f7
commit 13356d1cd5
8 changed files with 209 additions and 46 deletions

View File

@@ -0,0 +1,40 @@
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
import com.google.gson.JsonArray;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
/**
* 测试.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
* @date 2021-02-15
*/
@Test
@Guice(modules = ApiTestModule.class)
public class WxMaLiveMemberServiceImplTest {
@Inject
private WxMaService wxService;
@Test
public void testAddRole() throws WxErrorException {
final String result = this.wxService.getLiveMemberService().addRole("abc", 1);
System.out.println(result);
}
@Test
public void testDeleteRole() throws WxErrorException {
final String result = this.wxService.getLiveMemberService().deleteRole("abc", 1);
System.out.println(result);
}
@Test
public void testListByRole() throws WxErrorException {
final JsonArray result = this.wxService.getLiveMemberService().listByRole(null, null, null, null);
System.out.println(result);
}
}