Change go module name

This commit is contained in:
Alf Sebastian Houge
2023-02-16 22:35:03 +01:00
parent a8c85bcd7d
commit 9da21b2192
26 changed files with 69 additions and 54 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"errors"
"time"
"github.com/akhilrex/hammond/db"
"github.com/akhilrex/hammond/models"
"hammond/db"
"hammond/models"
)
func CreateAlert(model models.CreateAlertModel, vehicleId, userId string) (*db.VehicleAlert, error) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/akhilrex/hammond/db"
"hammond/db"
)
func DrivvoParseExpenses(content []byte, user *db.User, vehicle *db.Vehicle) ([]db.Expense, []string) {
+4 -3
View File
@@ -13,9 +13,10 @@ import (
"strconv"
"time"
"github.com/akhilrex/hammond/db"
"github.com/akhilrex/hammond/internal/sanitize"
"github.com/akhilrex/hammond/models"
"hammond/db"
"hammond/internal/sanitize"
"hammond/models"
uuid "github.com/satori/go.uuid"
)
+2 -1
View File
@@ -7,7 +7,8 @@ import (
"strconv"
"time"
"github.com/akhilrex/hammond/db"
"hammond/db"
"github.com/leekchan/accounting"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package service
import (
"bytes"
"github.com/akhilrex/hammond/db"
"hammond/db"
)
func WriteToDB(fillups []db.Fillup, expenses []db.Expense) []string {
+1 -1
View File
@@ -1,7 +1,7 @@
package service
import (
"github.com/akhilrex/hammond/db"
"hammond/db"
)
func CanInitializeSystem() (bool, error) {
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"sort"
"time"
"github.com/akhilrex/hammond/common"
"github.com/akhilrex/hammond/db"
"github.com/akhilrex/hammond/models"
"hammond/common"
"hammond/db"
"hammond/models"
)
func GetMileageByVehicleId(vehicleId string, since time.Time, mileageOption string) (mileage []models.MileageModel, err error) {
+2 -2
View File
@@ -3,8 +3,8 @@ package service
import (
"strings"
"github.com/akhilrex/hammond/db"
"github.com/akhilrex/hammond/models"
"hammond/db"
"hammond/models"
)
func CreateUser(userModel *models.RegisterRequest, role db.Role) error {
+3 -2
View File
@@ -3,8 +3,9 @@ package service
import (
"fmt"
"github.com/akhilrex/hammond/db"
"github.com/akhilrex/hammond/models"
"hammond/db"
"hammond/models"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)