package com.tianji.trade.domain.query;

import com.tianji.common.domain.query.PageQuery;
import com.tianji.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单明细查询条件")
public class OrderDetailPageQuery extends PageQuery {
    @Schema(description = "订单明细id")
    private Long id;
    @Schema(description = "订单状态：1：待支付，2：已支付，3：已关闭，4：已完成，5：已报名")
    private Integer status;
    @Schema(description = "退款状态：1：待审批，2：取消退款，3：同意退款，4：拒绝退款，5：退款成功，6：退款失败")
    private Integer refundStatus;
    @Schema(description = "支付方式:wxPay:微信，aliPay：支付宝")
    private String payChannel;
    @Schema(description = "手机号")
    private String mobile;
    @Schema(description = "下单开始时间")
    @DateTimeFormat(pattern = DateUtils.DEFAULT_DATE_TIME_FORMAT)
    private LocalDateTime orderStartTime;
    @Schema(description = "下单结束时间")
    @DateTimeFormat(pattern = DateUtils.DEFAULT_DATE_TIME_FORMAT)
    private LocalDateTime orderEndTime;
}
