mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
d8e42744b4
* fix: move eventstore pkgs * fix: move eventstore pkgs * fix: remove v2 view * fix: remove v2 view
15 lines
450 B
Go
15 lines
450 B
Go
package command
|
|
|
|
import "github.com/caos/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,
|
|
}
|
|
}
|