package org.dromara.work.domain.bo;

import org.dromara.work.domain.TpFollow;
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.*;

/**
 * 关注业务对象 tp_follow
 *
 * @author Maosw
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpFollow.class, reverseConvertGenerate = false)
public class TpFollowBo 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 toUserId;


}
