com.spring.boxes.webhook.starter.push.dingtalk.DingRobotAt Maven / Gradle / Ivy
The newest version!
package com.spring.boxes.webhook.starter.push.dingtalk;
import lombok.*;
import java.io.Serializable;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DingRobotAt implements Serializable {
private List atMobiles;
private List atUserIds;
private Boolean isAtAll = Boolean.FALSE;
public String getAtMobilesString() {
if (atMobiles == null) return "";
StringBuilder at = new StringBuilder();
for (String mobile : atMobiles) {
at.append("@").append(mobile);
}
return at.toString();
}
}