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;

/*
 *项目名: netflix
 *文件名: GoodsDonSkuView
 *创建者: JavaZou
 *创建时间:2022/11/28 15:05
 */
@Getter
@Setter
@SearchBean(tables = "goods_don gd left join goods_don_sku gdk on gdk.goods_id = gd.id")
public class GoodsDonSkuView {
	@DbField("gd.id")
	private Long goodsId;

	@DbField("gd.logo")
	private String logo;

	@DbField("gd.title")
	private String goodsTitle;

	@DbField("gd.type")
	private Integer type;

	@DbField("gdk.id")
	private Long skuId;

	@DbField("gdk.user_owns")
	@JsonIgnore
	private String userOwns;

	@DbField("gdk.spec_val")
	private String specVal;

	@DbField("gdk.spec_json")
	private String specJson;

	@DbField("gdk.days")
	private Integer days;

	@DbField("gdk.months")
	private Integer months;

	@DbField("gdk.price")
	private BigDecimal money;

	@DbField("gd.status")
	private Boolean goodsDonStatus;

	@DbField("gd.deleted")
	private Boolean goodsDonDeleted;

	@DbField("gdk.status")
	private Boolean goodsDonSkuStatus;

	@DbField("gdk.num")
	private Integer num;

	@DbField("gdk.is_mirror")
	private Boolean isMirror;

	/**
	 * claude code每日限额
	 */
	@DbField("gdk.claude_daily_limit")
	private Integer claudeDailyLimit;

	/**
	 * Claude code 服务总额度
	 */
	@DbField("gdk.claude_quota")
	private Integer claudeQuota;

	/**
	 * nano次数
	 */
	@DbField("gdk.nano_quota")
	private Integer nanoQuota;

	/**
	 * cc最高约可使用次数
	 */
	@DbField("gdk.highest_usage")
	private Integer highestUsage;

	/**
	 * 是否赠送codex
	 */
	@DbField("gdk.is_codex")
	private Boolean isCodex;

	/**
	 * codex套餐名
	 */
	@DbField("gdk.codex_plan_name")
	private String codexPlanName;

	/**
	 * 每日预算上限
	 */
	@DbField("gdk.openai_daily_limit")
	private Integer openaiDailyLimit;

	/**
	 * 每月预算上限
	 */
	@DbField("gdk.openai_quota")
	private Integer openaiQuota;

	/**
	 * 优惠券id
	 */
	@DbIgnore
	private Long couponId;

	/**
	 * 优惠价格
	 */
	@DbIgnore
	private BigDecimal discountPrice;

	/**
	 * 优惠折扣
	 */
	@DbIgnore
	private BigDecimal discount;

	/**
	 * 满减金额
	 */
	@DbIgnore
	private BigDecimal reduceMoney;
}
