feat: docs api design

This commit is contained in:
neo-f
2023-03-22 22:45:17 +08:00
commit 084d0de8bc
52 changed files with 3420 additions and 0 deletions

23
internal/dal/repo/docs.go Normal file
View File

@@ -0,0 +1,23 @@
package repo
import (
"octopus/internal/dal/model"
"gorm.io/gorm"
)
type DocFolderRepo struct {
db *gorm.DB
}
func NewDocFolderRepo(db *gorm.DB) *DocFolderRepo {
return &DocFolderRepo{db}
}
type DocFolderRepoInterface interface {
CreateFolder(folder *model.DocFolder) error
}
// func (r *DocFolderRepo) CreateFolder(folder *model.DocFolder) error {
// return r.db.Create(folder).Error
// }