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

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)
}