package com.ruoyi.web.work.domain.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class LockDto {


    @NotNull(message = "参数错误")
    private Long id;

    @NotNull(message = "参数错误")
    @Min(value = 0, message = "state 只能是 0 或者 1")
    @Max(value = 1, message = "state 只能是 1 或者 0")
    private Integer state;
}
