feat(api): docs basic curd implemention

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

View File

@@ -75,7 +75,7 @@ func (d *Doc) PresignedURL(ctx context.Context) (*url.URL, error) {
}
func (*Doc) TableName() string {
return TableNameDocFolder
return TableNameDoc
}
func (d *Doc) BeforeCreate(*gorm.DB) error {
d.ID = xid.New().String()