graph2: Added change type and query.
the build was successful

This commit is contained in:
2018-10-31 21:38:45 +01:00
parent 138b3e3eab
commit ffec008820
14 changed files with 278 additions and 9 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ import "git.aiterp.net/rpdata/api/models"
// All makes a changelog that's (model, "*"). It's a helper to standardize it.
func All(model string) models.ChangeKey {
return models.ChangeKey{Model: model, ID: "*"}
return models.ChangeKey{Model: models.ChangeModel(model), ID: "*"}
}
+1 -1
View File
@@ -9,5 +9,5 @@ func Listed(objects ...interface{}) []models.ChangeKey {
return nil
}
return append(keys, All(keys[0].Model))
return append(keys, All(keys[0].Model.String()))
}
+1 -1
View File
@@ -34,5 +34,5 @@ func One(object interface{}) models.ChangeKey {
panic("Unsupported model")
}
return models.ChangeKey{Model: model, ID: id}
return models.ChangeKey{Model: models.ChangeModel(model), ID: id}
}