package com.fzm.mall.server.admin.order.entity.dto;

import com.fzm.mall.server.admin.constant.MallResponseError;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * <p>
 * 订单中心-订单设置
 * </p>
 *
 * @author wulixian
 * @since 2021-03-17
 */
@Data
@ApiModel(value = "Config编辑对象", description = "订单中心-订单设置")
public class ConfigUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Integer id;

    @ApiModelProperty(value = "未付款，自动关闭订单时间限制（分）")
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Long orderCloseLimit;

    @ApiModelProperty(value = "未确认收货，系统自动收货限制（天）")
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Long goodsReceivedLimit;

    @ApiModelProperty(value = "自动结束交易（天）")
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Long dealCloseLimit;

    @ApiModelProperty(value = "未评价，系统全自动好评（天）")
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Long highOpinionLimit;

    @ApiModelProperty(value = "信息创建时间")
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Long updateTime;
}
