feat: update database configuration and add new submodule for proto definitions

This commit is contained in:
2025-09-21 19:41:56 +03:00
parent 1a637d892f
commit 0b9e892c33
4 changed files with 14 additions and 12 deletions

6
.env
View File

@@ -8,8 +8,8 @@ REDIS_ADDR="${REDIS_HOST}:${REDIS_PORT}"
# PostgreSQL
POSTGRES_LOGIN=postgres
POSTGRES_PASSWORD=GjitkYf%5Beq
POSTGRES_PORT=5432
POSTGRES_PASSWORD=ReDW6RkgFMGdcVk767zLAtQfG9ddjGwH
POSTGRES_PORT=6432
POSTGRES_DATABASE=sipro
POSTGRES_HOST=62.217.177.161
POSTGRES_HOST=212.8.226.158
POSTGRES_URL="postgresql://${POSTGRES_LOGIN}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DATABASE}"

3
.gitmodules vendored
View File

@@ -2,3 +2,6 @@
[submodule "pkg/api/yandex/raw"]
path = pkg/api/yandex/raw
url = https://github.com/yandex-market/yandex-market-partner-api.git
[submodule "api/proto/v1"]
path = api/proto/v1
url = https://git.denco.store/fakz9/Sipro-Marketplaces-Protos

1
api/proto/v1 Submodule

Submodule api/proto/v1 added at 8aea1ed411

View File

@@ -1,6 +1,9 @@
package main
import "sipro-mps/pkg/utils"
import (
"fmt"
"sipro-mps/internal/ym/products"
)
// package main
//
@@ -28,13 +31,8 @@ import "sipro-mps/pkg/utils"
// }
// }
// }
func main() {
arr := []string{"1", "2", "3", "4", "5"}
hash, err := utils.HashArray(arr)
if err != nil {
panic(err)
}
println("Hash of array:", hash)
rs := products.GetCategoriesError("{\"status\":\"ERROR\",\"errors\":[{\"code\":\"BAD_REQUEST\",\"message\":\"Following categories are not leaf categories: 91735\"}]}")
fmt.Println(rs)
}