package com.tzy.dto.local;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.tzy.app.dto.mq.GoodsListDTO;
import lombok.Data;
import org.teasoft.bee.osql.annotation.Entity;
import org.teasoft.bee.osql.annotation.Ignore;

import java.io.Serializable;
import java.util.List;

/**
 * @author by po'yi
 * @Classname OrderDTO
 * @Description TODO
 * @Date 2022/11/29 15:20
 */
@Entity("card_group_order_info")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderDTO implements Serializable {
	private Long id;
	/**卡密是否分配,默认0:未分配,1已分配*/
	private Integer goodsAllocate;
	/**
	 * 组团信息id
	 */
	private Long groupInfoId;
	/**
	 * 用户id
	 */
	private Long userId;
	private String appUserNickName;
	private String appUserAvatar;
	/** 购买数量 */
	private Long purchaseCount;
	/** 订单编码 */
	private String orderNo;
	//匿名
	private boolean anonymous;
	//买队优先订单
	private String teamFirst;
	/**卡密明细*/
	@Ignore
	private List<GoodsListDTO> goodsListDTOS;
}
