package com.jeesharp.business.modules.setting.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;

import java.time.LocalDateTime;

/**
 * 活动营销主配置。
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cfg_marketing_activity")
@Schema(description = "活动营销主配置")
public class MarketingActivity extends BaseEntity<MarketingActivity> {

    @Schema(description = "活动编码")
    private String activityCode;

    @Schema(description = "活动名称")
    private String activityName;

    @Schema(description = "活动类型")
    private String activityType;

    @Schema(description = "活动场景")
    private String activityScene;

    @Schema(description = "分享标题")
    private String shareTitle;

    @Schema(description = "分享副标题")
    private String shareSubtitle;

    @Schema(description = "分享封面图")
    private String shareImageUrl;

    @Schema(description = "分享路径")
    private String sharePath;

    @Schema(description = "海报模板ID")
    private String posterTemplateId;

    @Schema(description = "排序号")
    private Integer sortNo;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "状态：draft/enabled/disabled/expired")
    private String status;

    @Schema(description = "扩展JSON")
    private String extJson;
}
