fix: 对接朋友圈模块
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.luohuo.flex.im.domain.vo.req;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "查询通知列表")
|
||||
public class NoticeReq extends PageBaseReq{
|
||||
|
||||
@Schema(description = "通知类型", required = true)
|
||||
private String applyType = "friend";
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.luohuo.flex.im.domain.vo.req.feed;
|
||||
|
||||
import com.luohuo.flex.model.vo.query.OperParam;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 查询朋友圈的参数
|
||||
*/
|
||||
@Data
|
||||
public class FeedReq extends OperParam {
|
||||
|
||||
@NotNull(message = "请选择朋友圈")
|
||||
private Long feedId;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.luohuo.flex.im.domain.vo.response;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author 乾乾
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class GroupResp implements Serializable {
|
||||
@Schema(description ="群聊id")
|
||||
private Long groupId;
|
||||
@Schema(description ="房间id")
|
||||
private Long roomId;
|
||||
@Schema(description ="群名称")
|
||||
private String name;
|
||||
@Schema(description ="群头像")
|
||||
private String avatar;
|
||||
@Schema(description = "群号")
|
||||
private String account;
|
||||
@Schema(description = "群备注")
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.luohuo.flex.common.cache.common;
|
||||
|
||||
import com.luohuo.basic.base.entity.SuperEntity;
|
||||
import com.luohuo.basic.model.cache.CacheHashKey;
|
||||
import com.luohuo.basic.model.cache.CacheKeyBuilder;
|
||||
import com.luohuo.flex.common.cache.CacheKeyModular;
|
||||
import com.luohuo.flex.common.cache.CacheKeyTable;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
/**
|
||||
* 朋友圈权限信息缓存 朋友圈ID -> 朋友圈权限集合
|
||||
* @author 乾乾
|
||||
*/
|
||||
public class FeedTargetRelCacheKeyBuilder implements CacheKeyBuilder {
|
||||
|
||||
public static CacheHashKey build(Long id) {
|
||||
return new FeedTargetRelCacheKeyBuilder().hashKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTenant() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTable() {
|
||||
return CacheKeyTable.Chat.FEED_TARGET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPrefix() {
|
||||
return CacheKeyModular.PREFIX;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getModular() {
|
||||
return CacheKeyModular.CHAT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getField() {
|
||||
return SuperEntity.ID_FIELD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ValueType getValueType() {
|
||||
return ValueType.obj;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Duration getExpire() {
|
||||
return Duration.ofDays(30L);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user