mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
add DI
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"log"
|
||||
"net"
|
||||
"os"
|
||||
@@ -8,6 +9,18 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
type RouteGroups struct {
|
||||
Api *gin.RouterGroup
|
||||
Auth *gin.RouterGroup
|
||||
Wallet *gin.RouterGroup
|
||||
WalletHeader *gin.RouterGroup
|
||||
Transaction *gin.RouterGroup
|
||||
TransactionType *gin.RouterGroup
|
||||
Subscription *gin.RouterGroup
|
||||
SubscriptionType *gin.RouterGroup
|
||||
TransactionStatus *gin.RouterGroup
|
||||
}
|
||||
|
||||
func CheckError(err error) {
|
||||
if err != nil {
|
||||
log.Printf("Error occured. %v", err)
|
||||
@@ -38,4 +51,4 @@ func GetIP() string {
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user