package com.willalp.canteen.domain.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.willalp.common.annotation.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

@Data
public class OrderResp {
    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNumber;
    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;
    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal price;

    private String pictrue;
    /**
     * 数量
     */
    @Excel(name = "数量")
    private Integer amount;

    /** 事件名称 */
    @Excel(name = "活动名称")
    private String eventName;

    /** 事件时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date eventTime;

}
