feat (api): migrate to UUIDs. Not fully debugged, may contain bugs

This commit is contained in:
2025-08-18 16:05:30 +03:00
parent 7ff759947a
commit 2666b76b44
9 changed files with 306 additions and 121 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"io"
"mi6e4ka/yabl-api/schemas"
"github.com/google/uuid"
"golang.org/x/net/html/charset"
"gorm.io/gorm"
)
@@ -66,7 +67,7 @@ func nilCheck(nilString *string) string {
return *nilString
}
func FB2toDB(tx *gorm.DB, book FB2) uint64 {
func FB2toDB(tx *gorm.DB, book FB2) uuid.UUID {
var genres *[]schemas.Genre
//book.Genres = nil
if book.Genres != nil {