package cn.bunny.entity.system.article;

import cn.bunny.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 点赞记录
 * </p>
 *
 * @author Bunny
 * @since 2024-05-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("like_record")
@ApiModel(value = "LikeRecord对象", description = "点赞记录")
public class LikeRecord extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("操作类型0:文章点赞 1:评论点赞")
    private Byte opType;

    @ApiModelProperty("主体ID")
    private String objectId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("主体作者ID")
    private Long authorUserId;
}
