textualize/core/Document/Initialize.go
Yehoshua Sandler c49f8e4d07
refact: generalized back end structs (#1)
* refact: generalized back end structs

* refact: fixed front end type, removed dead code

* removed test image folder

* refact: removed dead structs
2023-05-26 19:23:35 -05:00

25 lines
463 B
Go

package document
import "textualize/entities"
func InitializeModule() {
GetDocumentCollection()
GetGroupCollection()
}
func createTestData() {
documentCollection := GetDocumentCollection()
documentGroupCollection := GetGroupCollection()
documentGroupCollection.AddDocumentGroup(entities.Group{
Id: "XYZ",
Name: "Test Group One",
})
documentCollection.AddDocument(Entity{
Id: "ABC",
GroupId: "XYZ",
Name: "My First Document",
})
}