package org.dromara.im.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.im.domain.ImFriend;

/**
 * 好友业务对象 im_friend
 *
 * @author Luo.J
 * @date 2025-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ImFriend.class, reverseConvertGenerate = false)
public class ImFriendBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 好友id
     */
    @NotNull(message = "好友id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long friendId;

    /**
     * 好友昵称
     */
    @NotBlank(message = "好友昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String friendNickName;

    /**
     * 好友头像
     */
    @NotBlank(message = "好友头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String friendHeadImage;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createdTime;

    /**
     * 删除标识  0：否   1：是
     */
    @NotBlank(message = "删除标识  0：否   1：是不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deleted;


}
