|
@@ -4,6 +4,8 @@ import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.entity.ImGroupNotice;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
public class ImGroupNoticeDto extends ImGroupNotice {
|
|
|
|
|
|
private SysUser user = new SysUser();
|
|
@@ -18,6 +20,9 @@ public class ImGroupNoticeDto extends ImGroupNotice {
|
|
|
@ApiModelProperty(value = "是否发送给新人")
|
|
|
private Boolean sentToNewMemberFlag;
|
|
|
|
|
|
+ @ApiModelProperty("用户名称")
|
|
|
+ private String username;
|
|
|
+
|
|
|
public SysUser getUser() {
|
|
|
return user;
|
|
|
}
|
|
@@ -38,4 +43,14 @@ public class ImGroupNoticeDto extends ImGroupNotice {
|
|
|
return isIsSentToNewMember();
|
|
|
}
|
|
|
|
|
|
+ public String getUsername() {
|
|
|
+ if (Objects.nonNull(getUser())) {
|
|
|
+ return getUser().getRealName();
|
|
|
+ }
|
|
|
+ return username;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUsername(String username) {
|
|
|
+ this.username = username;
|
|
|
+ }
|
|
|
}
|