refactor: rename submodule

This commit is contained in:
Vyacheslav1557 2025-04-12 20:15:13 +05:00
parent 51c5b4943c
commit a6a8d3d3ce
6 changed files with 5 additions and 5 deletions

2
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "proto"]
path = proto
path = contracts
url = https://git.sch9.ru/new_gate/contracts

View file

@ -1,7 +1,7 @@
tag = latest
gen:
@oapi-codegen --config=config.yaml ./proto/user/v1/openapi.yaml
@oapi-codegen --config=config.yaml ./contracts/user/v1/openapi.yaml
dev: gen
@go run cmd/ms-auth/main.go
build: gen

View file

@ -4,12 +4,12 @@ import (
"context"
"fmt"
"git.sch9.ru/new_gate/ms-auth/config"
userv1 "git.sch9.ru/new_gate/ms-auth/contracts/user/v1"
"git.sch9.ru/new_gate/ms-auth/internal/models"
"git.sch9.ru/new_gate/ms-auth/internal/users/delivery/rest"
usersRepository "git.sch9.ru/new_gate/ms-auth/internal/users/repository"
usersUseCase "git.sch9.ru/new_gate/ms-auth/internal/users/usecase"
"git.sch9.ru/new_gate/ms-auth/pkg"
userv1 "git.sch9.ru/new_gate/ms-auth/proto/user/v1"
"github.com/gofiber/fiber/v2"
fiberlogger "github.com/gofiber/fiber/v2/middleware/logger"
"github.com/ilyakaznacheev/cleanenv"

View file

@ -2,4 +2,4 @@ package: userv1
generate:
fiber-server: true
models: true
output: ./proto/user/v1/user.go
output: ./contracts/user/v1/user.go

View file

View file

@ -3,10 +3,10 @@ package rest
import (
"encoding/base64"
"errors"
userv1 "git.sch9.ru/new_gate/ms-auth/contracts/user/v1"
"git.sch9.ru/new_gate/ms-auth/internal/models"
"git.sch9.ru/new_gate/ms-auth/internal/users"
"git.sch9.ru/new_gate/ms-auth/pkg"
userv1 "git.sch9.ru/new_gate/ms-auth/proto/user/v1"
"github.com/gofiber/fiber/v2"
"github.com/golang-jwt/jwt/v4"
"strings"