zitadel/internal/command/user_grant_converter.go

15 lines
453 B
Go
Raw Normal View History

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,
}
}