feat: update database configuration and add new submodule for proto definitions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user