not a proper type ref o nworkspace
This commit is contained in:
parent
5ad4d523ab
commit
d5c5b454f4
@ -55,6 +55,10 @@ func LoadAll(collection LibDataEnum) LibDataShallow {
|
||||
return LibDataShallow{Data: d, Code: code}
|
||||
}
|
||||
|
||||
func Model(t int) utils.DBObject {
|
||||
return models.Model(t)
|
||||
}
|
||||
|
||||
func LoadOne(collection LibDataEnum, id string) LibData {
|
||||
d, code, err := models.Model(collection.EnumIndex()).GetAccessor().LoadOne(id)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user