123333
This commit is contained in:
@@ -3,7 +3,7 @@ package com.ruoyi.yunxin;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.ruoyi.yunxin.client.ImMessageClient;
|
||||
import com.ruoyi.yunxin.config.YunxinProperties;
|
||||
import com.ruoyi.yunxin.enums.ImTypeEnum;
|
||||
import com.ruoyi.yunxin.enums.YxImTypeEnum;
|
||||
import com.ruoyi.yunxin.req.*;
|
||||
import com.ruoyi.yunxin.req.type.YxTextData;
|
||||
import com.ruoyi.yunxin.resp.SendMsgResp;
|
||||
@@ -57,7 +57,7 @@ public class Yunxin {
|
||||
return messageClient.sendBatchMsg(req);
|
||||
}
|
||||
|
||||
public YxDataR<YxCommonR> batchSendToNotice(List<Long> toUid, Object body, Option option, ImTypeEnum type){
|
||||
public YxDataR<YxCommonR> batchSendToNotice(List<Long> toUid, Object body, Option option, YxImTypeEnum type){
|
||||
SendBatchMsgReq req = new SendBatchMsgReq();
|
||||
req.setFromAccid(SYS_NOTICE_ID);
|
||||
req.setToAccids(toUid.stream().map(i -> String.valueOf(toUid)).collect(Collectors.toList()));
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Getter;
|
||||
* @author 77
|
||||
*/
|
||||
@Getter
|
||||
public enum ImTypeEnum {
|
||||
public enum YxImTypeEnum {
|
||||
TXT(0,"文本消息"),
|
||||
IMAGE(1,"图片消息"),
|
||||
VOICE(2,"语音消息"),
|
||||
@@ -21,7 +21,7 @@ public enum ImTypeEnum {
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
ImTypeEnum(Integer code, String text) {
|
||||
YxImTypeEnum(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
Reference in New Issue
Block a user