package com.pj.tb_order_after_sale.param;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * Model: tb_order_after_sale -- 售后申请表，并关联一级市场订单
 * @author qzy 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbOrderAfterSaleParam implements Serializable {

	/**
	 *  0=拒绝,1=通过
	 */
	@NotNull(message = "result")
	private Integer result;

	// ---------- 表中字段 ----------
	/**
	 * 售后申请表主键id 
	 */
	@NotNull(message = "id")
	private Long id;

	/**
	 * 订单表主键 
	 */
	@NotNull(message = "orderId")
	private Long orderId;	

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

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

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

	/**
	 * 申请类型 
	 */
	@NotNull(message = "applyType")
	private Integer applyType;	

	/**
	 * 发起售后原因 
	 */
	@NotNull(message = "remark")
	private String remark;

	/**
	 * 卖家ID
	 */
	private Long saleMainId;

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

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

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

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





	


}
