swagger done

This commit is contained in:
Sense T
2024-04-19 12:47:00 +08:00
parent 34fb2a478b
commit 47335ca5e9
15 changed files with 2801 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ package database
import (
"errors"
"github.com/huandu/go-clone"
clone "github.com/huandu/go-clone/generic"
"gorm.io/gorm"
)
@@ -31,7 +31,7 @@ func (BaseDAO[T]) GetAll(db *gorm.DB, e T, cond ...T) ([]T, error) {
return nil, err
}
i := clone.Clone(e).(T)
i := clone.Clone(e)
r = append(r, i)
}