mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
15 lines
453 B
Go
15 lines
453 B
Go
|
package command
|
||
|
|
||
|
import "github.com/caos/zitadel/internal/v2/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,
|
||
|
}
|
||
|
}
|