wip
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package account
|
||||
|
||||
import (
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/utils"
|
||||
"fmt"
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/utils"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package account
|
||||
|
||||
import (
|
||||
"budget/handler"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/storage/validators"
|
||||
"budget/internal/user"
|
||||
"budget/internal/utils"
|
||||
"net/http"
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/storage/validators"
|
||||
"nos-comptes/internal/user"
|
||||
"nos-comptes/internal/utils"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package account
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/model"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package expense
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/utils"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/utils"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package expense
|
||||
|
||||
import (
|
||||
"budget/handler"
|
||||
"budget/internal/account"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/storage/validators"
|
||||
"budget/internal/utils"
|
||||
"encoding/csv"
|
||||
"net/http"
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/account"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/storage/validators"
|
||||
"nos-comptes/internal/utils"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package expense
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/account"
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/utils"
|
||||
"budget/internal/account"
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/utils"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package jointaccount
|
||||
|
||||
import (
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/utils"
|
||||
"fmt"
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/utils"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package jointaccount
|
||||
|
||||
import (
|
||||
"budget/handler"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/storage/validators"
|
||||
"budget/internal/user"
|
||||
"budget/internal/utils"
|
||||
"net/http"
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/storage/validators"
|
||||
"nos-comptes/internal/user"
|
||||
"nos-comptes/internal/utils"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package jointaccount
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/model"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package jointexpense
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/utils"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/utils"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package jointexpense
|
||||
|
||||
import (
|
||||
"budget/handler"
|
||||
"budget/internal/jointaccount"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/storage/validators"
|
||||
"budget/internal/utils"
|
||||
"encoding/csv"
|
||||
"net/http"
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/jointaccount"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/storage/validators"
|
||||
"nos-comptes/internal/utils"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package jointexpense
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/jointaccount"
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/utils"
|
||||
"budget/internal/jointaccount"
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/utils"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package sharedaccount
|
||||
|
||||
import "nos-comptes/internal/storage/dao/postgresql"
|
||||
import "budget/internal/storage/dao/postgresql"
|
||||
|
||||
type Database struct {
|
||||
*postgresql.DatabasePostgreSQL
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package sharedaccount
|
||||
|
||||
import (
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"budget/handler"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package postgresql
|
||||
|
||||
import (
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/utils"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/utils"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package validators
|
||||
|
||||
import (
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/utils"
|
||||
"fmt"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/utils"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"database/sql"
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"budget/handler"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/utils"
|
||||
"net/http"
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/storage/dao/postgresql"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/utils"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"budget/internal/storage/dao"
|
||||
"budget/internal/storage/model"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"budget/internal/storage/model"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"nos-comptes/internal/storage/model"
|
||||
)
|
||||
|
||||
func JSON(w http.ResponseWriter, status int, data interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user