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
+2 -2
View File
@@ -44,7 +44,7 @@ func favoriteContext(c *gin.Context) (string, uint64, bool) {
}
tenantID := c.GetUint64(types.TenantIDContextKey.String())
if tenantID == 0 {
c.Error(apperrors.NewUnauthorizedError("tenant ID not found"))
c.Error(apperrors.NewUnauthorizedError("workspace ID not found"))
return "", 0, false
}
return userID, tenantID, true
@@ -52,7 +52,7 @@ func favoriteContext(c *gin.Context) (string, uint64, bool) {
// ListFavorites godoc
// @Summary List my favorites
// @Description Lists this user's starred resources in the current tenant for a given type
// @Description Lists this user's starred resources in the current workspace for a given type
// @Tags User
// @Param type query string true "Resource type (kb | agent)"
// @Success 200 {object} map[string]interface{}