添加关注、取消关注、获取关注列表、粉丝列表相关接口
This commit is contained in:
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user