| package com.doumee.dao.common.dto; | 
|   | 
| import io.swagger.annotations.ApiModel; | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
|   | 
| import javax.validation.constraints.NotBlank; | 
| import javax.validation.constraints.NotNull; | 
| import java.io.Serializable; | 
|   | 
| /** | 
|  * @author  dm | 
|  * @since 2025/03/31 16:44 | 
|  */ | 
| @Data | 
| @ApiModel("排序参数") | 
| public class UpdateSortDTO implements Serializable { | 
|   | 
|     @ApiModelProperty(value = "ID") | 
|     @NotNull(message = "ID不能为空") | 
|     private Integer id; | 
|   | 
|     @ApiModelProperty(value = "排序方向,top向上,bottom向下") | 
|     @NotBlank(message = "排序方向不能为空") | 
|     private String direction; | 
| } |