package com.pj.tb_order_after_sale.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author Mechrevo
 * @Date 2023 07 27 15 32
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AfterSaleParam {



    /**
     * 订单表主键
     */
    @NotBlank
    @NotNull(message = "订单表不能为空")
    private Long orderId;

    /**
     * 发起售后人的ID
     */
    @NotBlank
    @NotNull(message = "发起售后人ID不能为空")
    private Long userId;

    /**
     * 售后发起人电话
     */
    private String userPhone;

    /**
     * 发起售后时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;

    /**
     *  申请类型[0=退货退款,1=仅退货,2=仅退款]
     */
    @NotNull(message = "售后类型不能为空")
    @NotBlank
    private Integer applyType;

    /**
     * 发起售后原因
     */
    @NotNull(message = "退单理由必填!")
    private String remark;

    /**
     * 卖家ID
     */
    @NotNull(message = "卖家ID不能为空")
    @NotBlank
    private Long saleMainId;

    /**
     * 售后状态
     */
    private Integer afterSaleStatus;

    /**
     * 货物图片
     */
    private String goodsImg;

    /**
     * 货物名称
     */
    private String goodsName;

    /**
     * 货物数量
     */
    private Integer goodsNum;

}
