|
@@ -4,6 +4,7 @@ import com.ym.mec.common.entity.BaseEntity;
|
|
|
import com.ym.mec.common.enums.BaseEnum;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Getter;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
|
|
/**
|
|
@@ -28,7 +29,6 @@ public class ImGroup extends BaseEntity {
|
|
|
/** 群备注 */
|
|
|
private String memo;
|
|
|
|
|
|
- @Getter
|
|
|
@ApiModelProperty(value = "禁言配置")
|
|
|
private String configJson;
|
|
|
|
|
@@ -97,6 +97,13 @@ public class ImGroup extends BaseEntity {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public String getConfigJson() {
|
|
|
+ if (StringUtils.isEmpty(configJson)){
|
|
|
+ return "{mute: false}";
|
|
|
+ }
|
|
|
+ return configJson;
|
|
|
+ }
|
|
|
+
|
|
|
//群类型
|
|
|
private GroupTypeEnum groupType;
|
|
|
|