mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:47:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
14
apps/api/internal/command/user_grant_converter.go
Normal file
14
apps/api/internal/command/user_grant_converter.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package command
|
||||
|
||||
import "github.com/zitadel/zitadel/internal/domain"
|
||||
|
||||
func userGrantWriteModelToUserGrant(writeModel *UserGrantWriteModel) *domain.UserGrant {
|
||||
return &domain.UserGrant{
|
||||
ObjectRoot: writeModelToObjectRoot(writeModel.WriteModel),
|
||||
UserID: writeModel.UserID,
|
||||
ProjectID: writeModel.ProjectID,
|
||||
ProjectGrantID: writeModel.ProjectGrantID,
|
||||
RoleKeys: writeModel.RoleKeys,
|
||||
State: writeModel.State,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user