feat:角色用户关联--设置用户
This commit is contained in:
@@ -6,7 +6,7 @@ import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum UserErrorCode implements BaseErrorCode {
|
||||
public enum Code01UserErrorCode implements BaseErrorCode {
|
||||
|
||||
USER_NOT_EXISTS("A1000101", "用户不存在"),
|
||||
USER_EXISTS("A1000102", "用户已存在"),
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.xiang.xservice.auth.api.code;
|
||||
|
||||
import com.xiang.xservice.basic.exception.code.BaseErrorCode;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Author: xiang
|
||||
* @Date: 2025-08-29 16:27
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum Code02RoleErrorCode implements BaseErrorCode {
|
||||
|
||||
ROLE_NOT_EXISTS("A1000201", "角色不存在"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
private final String message;
|
||||
}
|
||||
@@ -1,4 +1,23 @@
|
||||
package com.xiang.xservice.auth.api.dto.req.role;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class RoleUserUpdateRequest {
|
||||
|
||||
/**
|
||||
* 用户id集合
|
||||
*/
|
||||
private List<Long> userIds;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private Long roleId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user