package org.dromara.work.domain.bo;

import org.dromara.work.domain.TpDynamicsNum;
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_dynamics_num
 *
 * @author Maosw
 * @date 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = TpDynamicsNum.class, reverseConvertGenerate = false)
public class TpDynamicsNumBo {

    /**
     * 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 pictureId;

    /**
     * 类型  1-点赞  2-收藏
     */
    @NotNull(message = "类型  1-点赞  2-收藏不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;


}
