Refactor createPrivilegedUser to accept PrivilegedUser object and adjust LoginController for consistency.
This commit is contained in:
+3
-3
@@ -103,8 +103,8 @@ public interface PrivilegedUserMapper {
|
||||
|
||||
@Insert("""
|
||||
INSERT INTO privileged_users (uuid)
|
||||
VALUES (#{uuid})
|
||||
VALUES (#{user.uuid})
|
||||
""")
|
||||
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = int.class)
|
||||
int createPrivilegedUser(UUID uuid);
|
||||
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "user.id", before = false, resultType = int.class)
|
||||
void createPrivilegedUser(@Param("user") PrivilegedUser user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user