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

This commit is contained in:
小袁
2026-04-29 18:49:54 +08:00
committed by GitHub
parent f0fa33cd67
commit d7ae8564c1
148 changed files with 5903 additions and 770 deletions
+26
View File
@@ -0,0 +1,26 @@
/*
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
SPDX-License-Identifier: MIT
*/
package v1
import "github.com/gogf/gf/v2/frame/g"
type GetXiaoZhiTokenReq struct {
g.Meta `path:"/xiaozhi/token" method:"get" tags:"XiaoZhi" summary:"XiaoZhi token"`
}
type GetXiaoZhiTokenRes string
type RefreshTokenReq struct {
g.Meta `path:"/xiaozhi/token/refresh" method:"get" tags:"XiaoZhi" summary:"XiaoZhi token refresh"`
}
type RefreshTokenRes string
type GetXiaoZhiGenerateLicenseTokenReq struct {
g.Meta `path:"/xiaozhi/generateLicenseToken" method:"get" tags:"XiaoZhi" summary:"XiaoZhi generateLicenseToken"`
}
type GetXiaoZhiGenerateLicenseTokenRes string
+22
View File
@@ -0,0 +1,22 @@
/*
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
SPDX-License-Identifier: MIT
*/
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package xiaozhi
import (
"context"
"stackChan/api/xiaozhi/v1"
)
type IXiaozhiV1 interface {
GetXiaoZhiToken(ctx context.Context, req *v1.GetXiaoZhiTokenReq) (res *v1.GetXiaoZhiTokenRes, err error)
RefreshToken(ctx context.Context, req *v1.RefreshTokenReq) (res *v1.RefreshTokenRes, err error)
GetXiaoZhiGenerateLicenseToken(ctx context.Context, req *v1.GetXiaoZhiGenerateLicenseTokenReq) (res *v1.GetXiaoZhiGenerateLicenseTokenRes, err error)
}