package com.qmth.distributed.print.business.bean.params;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @Description: 单个删除参数
 * @Author: CaoZixuan
 * @Date: 2021-04-06
 */
public class DeleteParams {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "要删除的记录主键", required = true)
    @NotNull(message = "请输入要删除的记录主键")
    @Range(min = 1L, message = "请输入要删除的记录主键")
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
