
* refact: generalized back end structs * refact: fixed front end type, removed dead code * removed test image folder * refact: removed dead structs
25 lines
463 B
Go
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",
|
|
})
|
|
}
|