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
+3 -3
View File
@@ -77,7 +77,7 @@ func (h *ModelHandler) CreateModel(c *gin.Context) {
tenantID := c.GetUint64(types.TenantIDContextKey.String())
if tenantID == 0 {
logger.Error(ctx, "Tenant ID is empty")
c.Error(errors.NewBadRequestError("Tenant ID cannot be empty"))
c.Error(errors.NewBadRequestError("Workspace ID cannot be empty"))
return
}
@@ -169,7 +169,7 @@ func (h *ModelHandler) GetModel(c *gin.Context) {
// ListModels godoc
// @Summary 获取模型列表
// @Description 获取当前租户的所有模型
// @Description 获取当前空间的所有模型
// @Tags 模型管理
// @Accept json
// @Produce json
@@ -186,7 +186,7 @@ func (h *ModelHandler) ListModels(c *gin.Context) {
tenantID := c.GetUint64(types.TenantIDContextKey.String())
if tenantID == 0 {
logger.Error(ctx, "Tenant ID is empty")
c.Error(errors.NewBadRequestError("Tenant ID cannot be empty"))
c.Error(errors.NewBadRequestError("Workspace ID cannot be empty"))
return
}