优化 获取关注、粉丝列表
This commit is contained in:
19
src/main/java/com/ai/da/model/dto/GetFollowListDTO.java
Normal file
19
src/main/java/com/ai/da/model/dto/GetFollowListDTO.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import com.ai.da.model.vo.PageQueryBaseVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel("按条件分页查询关注列表")
|
||||
public class GetFollowListDTO extends PageQueryBaseVo {
|
||||
|
||||
@ApiModelProperty("查找指定用户名")
|
||||
private String searchByName;
|
||||
|
||||
@ApiModelProperty("按关注时间排序 DESC 降序 || ASC 升序")
|
||||
private String order;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.ai.da.model.vo;
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import com.ai.da.model.vo.PageQueryBaseVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -8,7 +9,7 @@ import lombok.EqualsAndHashCode;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel
|
||||
@Data
|
||||
public class GetNotificationVO extends PageQueryBaseVo{
|
||||
public class GetNotificationDTO extends PageQueryBaseVo {
|
||||
|
||||
@ApiModelProperty("system/like/comment/follow")
|
||||
private String type;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.ai.da.model.vo;
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@@ -6,7 +6,7 @@ import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("发布系统消息")
|
||||
public class PublishSysNotificationVO {
|
||||
public class PublishSysNotificationDTO {
|
||||
|
||||
@ApiModelProperty("系统消息标题")
|
||||
private String title;
|
||||
@@ -14,4 +14,6 @@ public class QueryPortfolioPageDTO extends PageQueryBaseVo {
|
||||
private Integer getMyPortfolio;
|
||||
|
||||
private Integer getLikePortfolio;
|
||||
|
||||
private Long accountId;
|
||||
}
|
||||
|
||||
24
src/main/java/com/ai/da/model/vo/AccountFollowVO.java
Normal file
24
src/main/java/com/ai/da/model/vo/AccountFollowVO.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AccountFollowVO {
|
||||
private Long userId;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String avatar;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private LocalDateTime followTime;
|
||||
|
||||
private Integer mutualFollowing;
|
||||
}
|
||||
@@ -16,4 +16,6 @@ public class NotificationVO extends Notification {
|
||||
|
||||
private String senderAvatar;
|
||||
|
||||
private Integer isFollow;
|
||||
|
||||
}
|
||||
|
||||
31
src/main/java/com/ai/da/model/vo/PersonalHomepageVO.java
Normal file
31
src/main/java/com/ai/da/model/vo/PersonalHomepageVO.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("个人主页返回信息")
|
||||
public class PersonalHomepageVO {
|
||||
|
||||
@ApiModelProperty("用户名")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty("用户头像")
|
||||
private String avatar;
|
||||
|
||||
@ApiModelProperty("用户作品总数")
|
||||
private Long portfolioCount;
|
||||
|
||||
@ApiModelProperty("粉丝总数")
|
||||
private Long followerCount;
|
||||
|
||||
@ApiModelProperty("关注者总数")
|
||||
private Long followeeCount;
|
||||
|
||||
@ApiModelProperty("个人主页总浏览量")
|
||||
private Long homepageViewCount;
|
||||
|
||||
@ApiModelProperty("是否关注了主页用户")
|
||||
private Integer isFollow;
|
||||
}
|
||||
Reference in New Issue
Block a user