[Developer] #424 improve role permission probe workflows

Refs #424
This commit is contained in:
devmrko
2026-06-23 13:52:50 +09:00
parent b6fcc768a3
commit 97bb0357f9
23 changed files with 368 additions and 52 deletions

View File

@@ -13,6 +13,8 @@ public interface BearerTokenMapper {
BearerTokenRecord findById(@Param("keyId") long keyId);
BearerTokenRecord findByHash(@Param("keyHash") String keyHash);
long nextKeyId();
void insertToken(BearerTokenRecord token);

View File

@@ -15,6 +15,14 @@ public interface PermissionMapper {
AppRole findRole(@Param("roleId") long roleId);
long nextRoleId();
void insertRole(@Param("roleId") long roleId,
@Param("roleName") String roleName,
@Param("description") String description);
int deleteRole(@Param("roleId") long roleId);
List<PermissionView> findPermissionViews();
PermissionSet findPermissionSet(@Param("roleId") long roleId, @Param("objectId") long objectId);

View File

@@ -1,5 +1,6 @@
package com.cloudhandson.vpdbackoffice.mapper;
import com.cloudhandson.vpdbackoffice.domain.protectedobject.DatabaseObjectOption;
import com.cloudhandson.vpdbackoffice.domain.protectedobject.ProtectedColumn;
import com.cloudhandson.vpdbackoffice.domain.protectedobject.ProtectedObjectCreateCommand;
import com.cloudhandson.vpdbackoffice.domain.protectedobject.ProtectedObject;
@@ -14,8 +15,14 @@ public interface ProtectedObjectMapper {
ProtectedObject findById(@Param("objectId") long objectId);
ProtectedObject findByOwnerAndName(@Param("owner") String owner, @Param("objectName") String objectName);
List<ProtectedColumn> findColumns(@Param("objectId") long objectId);
List<DatabaseObjectOption> findDatabaseObjects();
List<String> findDatabaseColumns(@Param("owner") String owner, @Param("objectName") String objectName);
long nextObjectId();
long nextColumnId();