package com.tzld.piaoquan.api.model.param.contentplatform;

import com.tzld.piaoquan.api.common.enums.contentplatform.IndustryTypeEnum;
import com.tzld.piaoquan.api.model.param.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class VideoContentListParam extends PageParam {

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "品类")
    private String category;

    @ApiModelProperty(value = "行业类型: 0-自动回复、1-服务号推送、2-企微-社群、3-企微-自动回复、4-公众号推送、5-小程序投流")
    private Integer type = IndustryTypeEnum.OTHER.getVal();

    /** 行业类型枚举转换 */
    public IndustryTypeEnum getIndustryType() {
        return IndustryTypeEnum.from(type == null ? 999 : type);
    }

    @ApiModelProperty(value = "排序 0-平台推荐 1-行业裂变率 2-本渠道裂变率 3-推荐指数")
    private Integer sort = 0;

    @ApiModelProperty(value = "数据来源: prior-人群需求 / posterior-优质相似 / hot-全局热门 / 空-全部穿插")
    private String source;

    @ApiModelProperty(value = "公众号名称(对应 demand.channel_level3),仅 prior/posterior 路使用,无数据时退化为渠道粒度")
    private String ghName;

    @ApiModelProperty(value = "人群包(对应 demand.crowd_package),小程序投流入口使用,过滤 demand 池候选")
    private String crowdPackage;
}
