refactor(terminology): rename user-facing tenant labels to workspace

Align product copy, API docs, Swagger descriptions, and i18n strings
with workspace terminology while keeping internal tenant identifiers
and headers unchanged for API compatibility.
This commit is contained in:
wizardchen
2026-07-14 16:13:49 +08:00
committed by lyingbug
parent e1572b71b9
commit 41975abcc5
161 changed files with 1865 additions and 1770 deletions
+4 -4
View File
@@ -23,11 +23,11 @@ type weKnoraCloudCredentialsRequest struct {
}
// SaveCredentials POST /api/v1/weknoracloud/credentials
// 仅保存 APPID/APPSECRET 凭证到租户配置,不自动创建模型
// 仅保存 APPID/APPSECRET 凭证到空间配置,不自动创建模型
//
// SaveCredentials godoc
// @Summary 保存 WeKnoraCloud 凭证
// @Description 保存 APPID/APPSECRET 到当前租户配置(不自动创建模型)
// @Description 保存 APPID/APPSECRET 到当前空间配置(不自动创建模型)
// @Tags WeKnoraCloud
// @Accept json
// @Produce json
@@ -53,11 +53,11 @@ func (h *WeKnoraCloudHandler) SaveCredentials(c *gin.Context) {
}
// Status GET /api/v1/models/weknoracloud/status
// 检查当前租户的 WeKnoraCloud 凭证是否完好,如需重新初始化则返回 needs_reinit=true
// 检查当前空间的 WeKnoraCloud 凭证是否完好,如需重新初始化则返回 needs_reinit=true
//
// Status godoc
// @Summary 检查 WeKnoraCloud 凭证状态
// @Description 检查当前租户的 WeKnoraCloud 凭证是否完好;needs_reinit=true 表示需要重新保存
// @Description 检查当前空间的 WeKnoraCloud 凭证是否完好;needs_reinit=true 表示需要重新保存
// @Tags WeKnoraCloud
// @Produce json
// @Success 200 {object} map[string]interface{} "凭证状态"