package com.jeesharp.business.modules.member.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员统一收藏实体，映射表 {@code app_member_favorite}，承载跨业务收藏快照与跳转信息。
 *
 * @author jeesharp
 * @since 2026-05-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_member_favorite")
@Schema(description = "会员收藏")
public class MemberFavorite extends BaseEntity<MemberFavorite> {

    @Schema(description = "会员ID")
    private String memberId;

    /**
     * @see com.jeesharp.business.modules.member.enums.MemberFavoriteBizTypeEnum
     */
    @Schema(description = "业务类型：route/poi/topic/product")
    private String bizType;

    @Schema(description = "业务对象ID")
    private String bizId;

    @Schema(description = "标题快照")
    private String title;

    @Schema(description = "副标题快照")
    private String subtitle;

    @Schema(description = "封面快照")
    private String cover;

    @Schema(description = "小程序跳转路径")
    private String jumpPath;
}
