feat(api): docs & folders basid curd implemention

This commit is contained in:
neo-f
2023-03-23 17:43:27 +08:00
parent 005a13d8a5
commit a5545401d8
19 changed files with 1304 additions and 222 deletions

20
cmd/gen/main.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"octopus/internal/dal/model"
"gorm.io/gen"
)
// generate code.
func main() {
g := gen.NewGenerator(gen.Config{
OutPath: "internal/dal/query",
Mode: gen.WithDefaultQuery | gen.WithoutContext,
})
g.ApplyBasic(
new(model.Doc),
new(model.DocFolder),
)
g.Execute()
}