#416 修改删除群发接口的消息ID参数类型为Long

This commit is contained in:
Binary Wang
2017-12-29 19:36:24 +08:00
parent 0a21fe2934
commit e9e9a622cf
3 changed files with 3 additions and 3 deletions

View File

@@ -114,6 +114,6 @@ public interface WxMpMassMessageService {
* @param msgId 发送出去的消息ID
* @param articleIndex 要删除的文章在图文消息中的位置第一篇编号为1该字段不填或填0会删除全部文章
*/
void delete(Integer msgId, Integer articleIndex) throws WxErrorException;
void delete(Long msgId, Integer articleIndex) throws WxErrorException;
}

View File

@@ -57,7 +57,7 @@ public class WxMpMassMessageServiceImpl implements WxMpMassMessageService {
}
@Override
public void delete(Integer msgId, Integer articleIndex) throws WxErrorException {
public void delete(Long msgId, Integer articleIndex) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("msg_id", msgId);
jsonObject.addProperty("article_idx", articleIndex);

View File

@@ -183,7 +183,7 @@ public class WxMpMassMessageServiceImplTest {
@Test
public void testMassDelete() throws Exception {
this.wxService.getMassMessageService().delete(1,2);
this.wxService.getMassMessageService().delete(1L,2);
}
}