添加关注、取消关注、获取关注列表、粉丝列表相关接口

This commit is contained in:
2024-08-19 11:52:53 +08:00
parent ac28ba233c
commit fa86a2af45
10 changed files with 217 additions and 34 deletions

View File

@@ -0,0 +1,9 @@
package com.ai.da.mapper.primary;
import com.ai.da.common.config.mybatis.plus.CommonMapper;
import com.ai.da.mapper.primary.entity.UserFollow;
public interface UserFollowMapper extends CommonMapper<UserFollow> {
}

View File

@@ -49,6 +49,12 @@ public class Notification extends BaseEntity{
public Notification() {
}
public Notification(String type, Long senderId, Long receiverId) {
this.type = type;
this.senderId = senderId;
this.receiverId = receiverId;
}
public Notification(String type, Long senderId, Long receiverId, Long portfolioId) {
this.type = type;
this.senderId = senderId;

View File

@@ -0,0 +1,26 @@
package com.ai.da.mapper.primary.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@TableName("t_user_follow")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserFollow extends BaseEntity{
/**
* 被关注者用户id
*/
private Long followeeId;
/**
* 关注者用户id
*/
private Long followerId;
}