refactor: 注解从common移至core包下
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.youlai.boot.system.model.query;
|
||||
|
||||
import cn.hutool.db.sql.Direction;
|
||||
import com.youlai.boot.common.base.BasePageQuery;
|
||||
import com.youlai.boot.core.annotation.ValidField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
@@ -15,22 +17,30 @@ import java.util.List;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(description ="用户分页查询对象")
|
||||
@Schema(description = "用户分页查询对象")
|
||||
public class UserPageQuery extends BasePageQuery {
|
||||
|
||||
@Schema(description="关键字(用户名/昵称/手机号)")
|
||||
@Schema(description = "关键字(用户名/昵称/手机号)")
|
||||
private String keywords;
|
||||
|
||||
@Schema(description="用户状态")
|
||||
@Schema(description = "用户状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description="部门ID")
|
||||
@Schema(description = "部门ID")
|
||||
private Long deptId;
|
||||
|
||||
@Schema(description="角色ID")
|
||||
@Schema(description = "角色ID")
|
||||
private List<Long> roleIds;
|
||||
|
||||
@Schema(description="创建时间范围")
|
||||
@Schema(description = "创建时间范围")
|
||||
private List<String> createTime;
|
||||
|
||||
@Schema(description = "排序的字段")
|
||||
@ValidField(allowedValues = {"create_time","update_time"})
|
||||
private String field;
|
||||
|
||||
@Schema(description = "排序方式(正序:ASC;反序:DESC)")
|
||||
private Direction direction;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user