package com.sckw.fleet.api.model.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: tangyishan
 * @CreateTime: 2025-12-11  14:46
 * @Description: 更新司机评分参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateDriverScoreDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -4995959874726280406L;

    /** 供应商企业id */
    @NotNull(message = "供应商企业id不能为空")
    private Long providerEntId;

    /** 物流企业id */
    @NotNull(message = "物流企业id不能为空")
    private Long logisticsEntId;

    /** 变动评分 */
    private BigDecimal scoreChange;

    /** 物流企业更新后评分 */
    @NotNull(message = "物流企业更新后评分不能为空")
    private BigDecimal afterUpdateLogisticsEntScore;

    /** 变动原因 */
    @NotBlank(message = "变动原因不能为空")
    private String action;

    /** 操作类型 1-初始化 2-修改评分 3-重置评分*/
    @NotNull(message = "操作类型不能为空")
    private Integer operatorType;
}
