package jnpf.model.personnels.dto.rewardspunishments;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class FtbPersonnelsRewardsPunishmentExchangeOrderDTO {
    /**
     * 点击的数据，排序值为被交换的数据
     */
    @NotNull(message = "参数不能为空")
    private ExchangeInner firstExchangeInner;
    /**
     * 被交换的数据，排序值为点击的数据
     */
    @NotNull(message = "参数不能为空")
    private ExchangeInner secondExchangeInner;

    @Data
    public class ExchangeInner {
        /**
         * 主键id
         */
        @NotBlank(message = "主键id不能为空")
        private String id;
        /**
         * 排序值
         */
        @NotNull(message = "排序值不能为空")
        private Integer sort;
    }

}
