package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/*
 *项目名: netflix
 *文件名: ChannelPopularizeFrontView
 *创建者: JavaZou
 *创建时间:2023/8/11 12:10
 */
@Getter
@Setter
@SearchBean(tables = "(select * from channel_popularize where :id:) cp left join channel c on c.id = cp.channel_id")
public class ChannelPopularizeFrontView {
	/**
	 * 渠道id
	 */
	@DbField("cp.channel_id")
	private Long channelId;

	@DbField("c.name")
	private String channelName;

	/**
	 * 链接名称
	 */
	@DbField("cp.name")
	private String name;

	/**
	 * url
	 */
	@DbField("cp.url")
	private String url;

	/**
	 * 样式
	 */
	@DbField("cp.modality")
	private String modality;

	/**
	 * 支付方式
	 */
	@DbField("cp.pay_method")
	private String payMethod;

	/**
	 * 是否展示规格弹窗
	 */
	@DbField("cp.is_show_sku")
	private Boolean isShowSku;

	/**
	 * 是否隐藏平台logo
	 */
	@DbField("cp.is_show_logo")
	private Boolean isShowLogo;

	/**
	 * 绑定的优惠券
	 */
	@DbField("cp.coupon_ids")
	@JsonIgnore
	private String couponIds;

	/**
	 * 是否免登录
	 */
	@DbIgnore
	private Boolean isSign = false;

	@DbIgnore
	private BigDecimal discount;

	@DbIgnore
	private List<CouponTfPopularizeView> coupons;
}
