FriendList.java 1.2 KB
Newer Older
7
Update  
7wc98#14 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
//IntelliJ IDEA
//campus
//FriendList
//2020/12/28
// Author:御承扬
//E-mail:2923616405@qq.com
// 私聊功能,好友列表
package com.pyc.campus.domain;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class FriendList {
    @Id
    @GeneratedValue
    long id;
    private String fromName;    //主动添加方
    private String toName;
    private Boolean status; // 标识双方是否通过好友申请
    public FriendList() {
        super();
    }
    public FriendList(String fromName, String toName){
        this.fromName=fromName;
        this.toName=toName;
        this.status=false;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public long getId() {
        return id;
    }

    public String getFromName() {
        return fromName;
    }

    public String getToName() {
        return toName;
    }

    public Boolean getStatus() {
        return status;
    }
}