package cn.reghao.tnb.user.app.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * @author reghao
 * @date 2022-04-18 10:59:35
 */
@NoArgsConstructor
@Getter
@Setter
public class UserContact extends BaseObject<Integer> {
    @NotNull
    private Long friendId;
    @NotNull
    @Size(max = 255, message = "remarkName 不能超过 255 个字符")
    private String remarkName;
    @NotNull
    private Integer status;
    @NotNull
    private Long owner;

    public UserContact(Long friendId, long owner) {
        this.friendId = friendId;
        this.remarkName = "";
        this.status = 1;
        this.owner = owner;
    }
}
