package com.cyksj.model.views;

import com.cyksj.model.entity.GroupsTrips;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目名: yhlxj2
 * 文件名: AccountDisableView
 * 创建者: JavaZou
 * 创建时间:2024/7/1 16:29
 */
@Getter
@Setter
@SearchBean(tables = "account a left join goods_don g on a.goods_id = g.id " +
		"left join groups_trips gt on gt.account_id = a.id " +
		"left join goods_don_sku gdk on gdk.id = gt.sku_id")
public class AccountDisableView {
	@DbField("a.id")
	private Long id;

	@DbField("g.id")
	private Long goodsId;

	@DbField("g.title")
	private String title;

	@DbField("g.second_type")
	private Integer goodsSecondType;

	@DbField("a.bank_card")
	private String bankCard;

	@DbField("a.account")
	private String account;

	@DbField("a.password")
	private String password;

	@DbField("a.is_month")
	private Boolean isMonth;

	@DbField("a.api_key")
	private String apiKey;

	@DbField("a.gpt_email_pwd")
	private String gptEmailPwd;

	@DbField("a.verify_codes")
	private String verifyCodes;

	@DbField("a.api_secret")
	private String apiSecret;

	@DbField("a.start_time")
	private Date startTime;

	@DbField("a.expiry_time")
	private Date expiryTime;

	@DbField("a.amount")
	private BigDecimal amount;

	/**
	 * 国区id
	 */
	@DbField("a.cn_account")
	private String cnAccount;

	/**
	 * 美区id
	 */
	@DbField("a.us_account")
	private String usAccount;

	@DbField("a.customer_service_id")
	private Long customerServiceId;

	@DbField("a.secret")
	private String secret;

	@DbField("gt.id")
	private Long groupsId;

	@DbField("gt.status")
	private GroupsTrips.Status gtStatus;

	/**
	 * 账号备注
	 */
	@DbField("a.remark")
	private String remark;

	@DbField("a.email")
	private String email;

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

	/**
	 * 规格
	 */
	@DbField("gdk.spec_val")
	private String specVal;

	@DbField("a.created_time")
	private Date createdTime;

	@DbField("a.is_disable")
	private Boolean isDisable;
}
