Add component to upload book cover images
This commit is contained in:
@@ -3,6 +3,7 @@ package appcontext
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"git.artlef.fr/PersonalLibraryManager/internal/config"
|
||||
"git.artlef.fr/PersonalLibraryManager/internal/model"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
@@ -10,9 +11,10 @@ import (
|
||||
)
|
||||
|
||||
type AppContext struct {
|
||||
C *gin.Context
|
||||
Db *gorm.DB
|
||||
I18n *i18n.Bundle
|
||||
C *gin.Context
|
||||
Db *gorm.DB
|
||||
I18n *i18n.Bundle
|
||||
Config *config.Config
|
||||
}
|
||||
|
||||
func (ac AppContext) GetAuthenticatedUser() (model.User, error) {
|
||||
|
||||
Reference in New Issue
Block a user