using mgocrud interfaces instead of mgo

This commit is contained in:
2022-02-09 15:55:43 +01:00
parent 7b75e504ac
commit 119243297e
8 changed files with 22 additions and 27 deletions

View File

@@ -5,15 +5,15 @@ import (
"reflect"
"time"
"gitbase.de/gopackage/mgocrud/v2"
jwt "github.com/dgrijalva/jwt-go"
"github.com/gin-gonic/gin"
mgo "gopkg.in/mgo.v2"
)
// LoginModel is interface for modules which can be used for the login route
type LoginModel interface {
LoginCheck(db *mgo.Database) (tokenData interface{}, err error)
LoginCheck(db *mgocrud.Database) (tokenData interface{}, err error)
LoginResponse(token string) (interface{}, error)
}