package com.softwarebr.nunu.json.admin.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.brframework.commoncms.annatotion.column.HideColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @date 2020-02-27 12:00:43
 * @author lilin
 */

@Data
@ApiModel
public class OrderResult {

	@ApiModelProperty(value = "序号", required = true, example = "1")
	private Long id;

	@ApiModelProperty(value = "活动id", required = true, example = "")
	@HideColumn(selectShow = false)
	private Long activityId;

	@ApiModelProperty(value = "订单号", required = true, example = "")
	private String orderNo;

	@ApiModelProperty(value = "账号", required = true, example = "")
	private String account;

	@ApiModelProperty(value = "活动名称", required = true, example = "")
	private String activityName;

	@ApiModelProperty(value = "活动类型", required = true, example = "")
	private String activityType;

	@ApiModelProperty(value = "活动图片", required = true, example = "")
	private String coverUri;

	@ApiModelProperty(value = "用户id", required = true, example = "")
	@HideColumn(selectShow = false)
	private Long memberId;

	@ApiModelProperty(value = "订单数量(张)", required = true, example = "")
	private Integer orderAmount;

	@ApiModelProperty(value = "订单总价(￥)", required = true, example = "")
	private BigDecimal totalPrice;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "下单时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;


}