最新产品
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package com.yj.earth.dto.relation;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class RoleBindOrUnBindSourceDto {
|
||||
@Schema(description = "角色ID")
|
||||
private String roleId;
|
||||
@Schema(description = "资源ID列表")
|
||||
private List<String> sourceIdList;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.yj.earth.dto.relation;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SourceBindOrUnBindRoleDto {
|
||||
@Schema(description = "角色ID列表")
|
||||
private List<String> roleIdList;
|
||||
@Schema(description = "资源ID")
|
||||
private String sourceId;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.yj.earth.dto.relation;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class UserBindOrUnBindRoleDto {
|
||||
@Schema(description = "角色ID")
|
||||
private String roleId;
|
||||
@Schema(description = "用户ID")
|
||||
private String userId;
|
||||
}
|
||||
16
src/main/java/com/yj/earth/dto/role/AddRoleDto.java
Normal file
16
src/main/java/com/yj/earth/dto/role/AddRoleDto.java
Normal file
@ -0,0 +1,16 @@
|
||||
package com.yj.earth.dto.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AddRoleDto {
|
||||
@Schema(description = "角色名称")
|
||||
private String roleName;
|
||||
|
||||
@Schema(description = "角色描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "是否超级管理员")
|
||||
private Integer isSuper;
|
||||
}
|
||||
16
src/main/java/com/yj/earth/dto/role/UpdateRoleDto.java
Normal file
16
src/main/java/com/yj/earth/dto/role/UpdateRoleDto.java
Normal file
@ -0,0 +1,16 @@
|
||||
package com.yj.earth.dto.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UpdateRoleDto {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "角色描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "是否超级管理员")
|
||||
private Integer isSuper;
|
||||
}
|
||||
17
src/main/java/com/yj/earth/dto/source/AddDirectoryDto.java
Normal file
17
src/main/java/com/yj/earth/dto/source/AddDirectoryDto.java
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
package com.yj.earth.dto.source;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AddDirectoryDto {
|
||||
@Schema (description = "资源ID")
|
||||
private String id;
|
||||
@Schema(description = "资源名称")
|
||||
private String sourceName;
|
||||
@Schema (description = "父级ID")
|
||||
private String parentId;
|
||||
@Schema (description = "树状索引")
|
||||
private Integer treeIndex;
|
||||
}
|
||||
18
src/main/java/com/yj/earth/dto/source/AddModelSourceDto.java
Normal file
18
src/main/java/com/yj/earth/dto/source/AddModelSourceDto.java
Normal file
@ -0,0 +1,18 @@
|
||||
package com.yj.earth.dto.source;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AddModelSourceDto {
|
||||
@Schema (description = "资源ID")
|
||||
private String id;
|
||||
@Schema(description = "资源路径")
|
||||
private String sourcePath;
|
||||
@Schema(description = "父节点ID")
|
||||
private String parentId;
|
||||
@Schema(description = "树状索引")
|
||||
private Integer treeIndex;
|
||||
@Schema(description = "前端参数")
|
||||
private String params;
|
||||
}
|
||||
22
src/main/java/com/yj/earth/dto/source/AddOtherSourceDto.java
Normal file
22
src/main/java/com/yj/earth/dto/source/AddOtherSourceDto.java
Normal file
@ -0,0 +1,22 @@
|
||||
package com.yj.earth.dto.source;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class AddOtherSourceDto {
|
||||
@Schema (description = "资源ID")
|
||||
private String id;
|
||||
@Schema(description = "资源名称")
|
||||
private String sourceName;
|
||||
@Schema(description = "资源类型")
|
||||
private String sourceType;
|
||||
@Schema(description = "父级ID")
|
||||
private String parentId;
|
||||
@Schema(description = "树形索引")
|
||||
private Integer treeIndex;
|
||||
@Schema(description = "前端参数")
|
||||
private Map<String, Object> params;
|
||||
}
|
||||
16
src/main/java/com/yj/earth/dto/source/DragSourceDto.java
Normal file
16
src/main/java/com/yj/earth/dto/source/DragSourceDto.java
Normal file
@ -0,0 +1,16 @@
|
||||
package com.yj.earth.dto.source;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DragSourceDto {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "父级ID")
|
||||
private String parentId;
|
||||
|
||||
@Schema(description = "树形索引")
|
||||
private Integer treeIndex;
|
||||
}
|
||||
27
src/main/java/com/yj/earth/dto/source/UpdateSourceDto.java
Normal file
27
src/main/java/com/yj/earth/dto/source/UpdateSourceDto.java
Normal file
@ -0,0 +1,27 @@
|
||||
package com.yj.earth.dto.source;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class UpdateSourceDto {
|
||||
@Schema(description = "主键ID")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "资源名称")
|
||||
private String sourceName;
|
||||
|
||||
@Schema(description = "上级ID")
|
||||
private String parentId;
|
||||
|
||||
@Schema(description = "树形索引")
|
||||
private Integer treeIndex;
|
||||
|
||||
@Schema(description = "是否显示")
|
||||
private Integer isShow;
|
||||
|
||||
@Schema(description = "资源参数")
|
||||
private Map<String, Object> params;
|
||||
}
|
||||
26
src/main/java/com/yj/earth/dto/user/AddUserDto.java
Normal file
26
src/main/java/com/yj/earth/dto/user/AddUserDto.java
Normal file
@ -0,0 +1,26 @@
|
||||
package com.yj.earth.dto.user;
|
||||
|
||||
import com.yj.earth.annotation.ExcludeField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AddUserDto {
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
|
||||
@Schema(description = "密码")
|
||||
private String password;
|
||||
|
||||
@Schema(description = "头像")
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "昵称")
|
||||
private String nickname;
|
||||
|
||||
@Schema(description = "手机号")
|
||||
private String phone;
|
||||
|
||||
@Schema(description = "所属角色")
|
||||
private String roleId;
|
||||
}
|
||||
14
src/main/java/com/yj/earth/dto/user/UpdatePasswordDto.java
Normal file
14
src/main/java/com/yj/earth/dto/user/UpdatePasswordDto.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.yj.earth.dto.user;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UpdatePasswordDto {
|
||||
@Schema(description = "用户ID")
|
||||
private String id;
|
||||
@Schema(description = "旧密码")
|
||||
private String oldPassword;
|
||||
@Schema(description = "新密码")
|
||||
private String newPassword;
|
||||
}
|
||||
20
src/main/java/com/yj/earth/dto/user/UpdateUserDto.java
Normal file
20
src/main/java/com/yj/earth/dto/user/UpdateUserDto.java
Normal file
@ -0,0 +1,20 @@
|
||||
package com.yj.earth.dto.user;
|
||||
|
||||
import com.yj.earth.annotation.ExcludeField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UpdateUserDto {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "头像")
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "昵称")
|
||||
private String nickname;
|
||||
|
||||
@Schema(description = "手机号")
|
||||
private String phone;
|
||||
}
|
||||
12
src/main/java/com/yj/earth/dto/user/UserLoginDto.java
Normal file
12
src/main/java/com/yj/earth/dto/user/UserLoginDto.java
Normal file
@ -0,0 +1,12 @@
|
||||
package com.yj.earth.dto.user;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserLoginDto {
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
@Schema(description = "密码")
|
||||
private String password;
|
||||
}
|
||||
Reference in New Issue
Block a user