feat: add safe growth report persistence and AvalAI client

This commit is contained in:
2026-08-21 00:14:26 +03:30
parent f3f51a97ef
commit 37416a6f20
7 changed files with 435 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package growthreport
import (
"crypto/sha256"
"encoding/hex"
"fmt"
)
func RequestHash(merchantID int64, terminalID string, refresh bool) string {
sum := sha256.Sum256([]byte(fmt.Sprintf("%d\x00%s\x00%t", merchantID, terminalID, refresh)))
return hex.EncodeToString(sum[:])
}