package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.views.CouponTfPopularizeView;
import com.ejlchina.searcher.bean.DbIgnore;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author chan
 * @date 2022/12/13 2:27 PM
 */
@Getter
@Setter
public class ChannelPopularize extends BaseEntity{

    /**
     * 渠道id
     */
    private Long channelId;

    /**
     * 链接名称
     */
    private String name;

    /**
     * url
     */
    private String url;

    /**
     * 样式
     */
    private String modality;

    /**
     * 支付方式
     */
    private String payMethod;

    /**
     * 是否展示规格弹窗
     */
    private Boolean isShowSku;

    /**
     * 是否隐藏平台logo
     */
    private Boolean isShowLogo;

    /**
     * 绑定的优惠券
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @JsonIgnore
    private String couponIds;

    /**
     * 回传过滤平台
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String filterGoodsIds;

    @DbIgnore
    @TableField(exist = false)
    private List<CouponTfPopularizeView> coupons;
}
