26 lines
510 B
Go
26 lines
510 B
Go
package document
|
|
|
|
func InitizeModule() {
|
|
GetDocumentCollection()
|
|
GetDocumentGroupCollection()
|
|
|
|
// TODO: remove when UI allows adding docs
|
|
createTestData()
|
|
}
|
|
|
|
func createTestData() {
|
|
documentCollection := GetDocumentCollection()
|
|
documentGroupCollection := GetDocumentGroupCollection()
|
|
|
|
documentGroupCollection.AddDocumentGroup(DocumentGroup{
|
|
Id: "XYZ",
|
|
Name: "Test Group One",
|
|
})
|
|
|
|
documentCollection.AddDocument(Document{
|
|
Id: "ABC",
|
|
GroupId: "XYZ",
|
|
Name: "My First Document",
|
|
})
|
|
}
|