Merge remote-tracking branch 'origin/dev' into uploading

This commit is contained in:
grngxd 2025-05-05 14:46:50 +01:00
commit 4d745e84bc
3 changed files with 86 additions and 0 deletions

View file

@ -1,7 +1,10 @@
package types
import (
"time"
"github.com/gin-gonic/gin"
"gorm.io/gorm"
)
type Route struct {
@ -15,6 +18,15 @@ type StereoConfig struct {
ImagePath string
}
type User struct {
gorm.Model
ID uint
Username string
RegistrationDate time.Time
Blacklisted bool
Email string
}
func RegisterRoutes(groupName string, routes []Route, cfg *StereoConfig) {
group := cfg.Router.Group(groupName)