move service functions to service package

This commit is contained in:
kiwiidb
2022-01-19 16:10:55 +01:00
parent d3948cce06
commit 8eef14fccc
12 changed files with 26 additions and 25 deletions

View File

@@ -4,17 +4,17 @@ import (
"math/rand"
"net/http"
"github.com/getAlby/lndhub.go/lib"
"github.com/getAlby/lndhub.go/lib/service"
"github.com/labstack/echo/v4"
"github.com/labstack/gommon/random"
)
// AddInvoiceController : Add invoice controller struct
type AddInvoiceController struct {
svc *lib.LndhubService
svc *service.LndhubService
}
func NewAddInvoiceController(svc *lib.LndhubService) *AddInvoiceController {
func NewAddInvoiceController(svc *service.LndhubService) *AddInvoiceController {
return &AddInvoiceController{svc: svc}
}