zitadel/internal/command/user_grant_converter.go

15 lines
450 B
Go
Raw Normal View History

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