Migrate proto files for settings and adjusts paths

This commit is contained in:
Juan Pablo Villafáñez
2022-01-31 09:35:39 +01:00
parent e794c623bd
commit 7557e4e0ea
45 changed files with 650 additions and 10471 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
package util
import "github.com/owncloud/ocis/settings/pkg/proto/v0"
import (
settingsmsg "github.com/owncloud/ocis/protogen/gen/ocis/messages/settings/v1"
)
const (
// ResourceIDAll declares on a resource that it matches any id
@@ -8,7 +10,7 @@ const (
)
// IsResourceMatched checks if the `example` resource is an exact match or a subset of `definition`
func IsResourceMatched(definition, example *proto.Resource) bool {
func IsResourceMatched(definition, example *settingsmsg.Resource) bool {
if definition.Type != example.Type {
return false
}