feat(server): deliver major backend expansion with v2 APIs, AI integration, and realtime infrastructure

- introduce broad v2 API surface across device, user, dance, and stackchandevice modules
- add admin/appstore management flows and strengthen service/controller layering
- implement XiaoZhi integration end-to-end, including token, refresh, license, and agent-related models/services
- expand social and media capabilities with pano support, post/comment workflow updates, and bundled dance music assets
- add websocket task pipeline and refactor realtime communication models/handlers
- enhance middleware, cron bootstrap, DAO/model coverage, and configuration/deployment manifests for production readiness
- add RSA utility support and update project documentation/config scaffolding
This commit is contained in:
袁智鸿
2026-04-28 11:09:39 +08:00
parent 2ccbcd01c0
commit 1349df2d68
13 changed files with 60 additions and 10 deletions
-10
View File
@@ -12,7 +12,6 @@ import (
"crypto/x509"
"encoding/pem"
"errors"
"fmt"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gctx"
@@ -262,15 +261,6 @@ func GenerateFourKeys() {
clientPrivateKey, clientPublicKey = generateKeyPair(2048)
// Print PEM
//fmt.Println("=== Server Private Key ===")
//fmt.Println(keyToPEM(serverPrivateKey, true))
//fmt.Println("=== Server Public Key ===")
//fmt.Println(keyToPEM(serverPublicKey, false))
fmt.Println("=== Client Private Key ===")
fmt.Println(keyToPEM(clientPrivateKey, true))
fmt.Println("=== Client Public Key ===")
fmt.Println(keyToPEM(clientPublicKey, false))
// Mark initialization complete
initialized = true