diff --git a/internal/pat/chmod.go b/internal/pat/chmod.go index b5ae49f..fcfda1e 100644 --- a/internal/pat/chmod.go +++ b/internal/pat/chmod.go @@ -189,7 +189,12 @@ scope 格式: .: grantType 规则: once 一次性,执行一次后自动失效 session 当前会话有效(默认),需要 --session-id - permanent 永久有效`, + permanent 永久有效 + +批量授权: + 产品线批量授权推荐使用 --recommend --product 。 + --products / --domain / --domains 保持兼容;裸 --recommend 保持可用, + 但会按推荐集合规划,可能跨产品。`, Args: func(cmd *cobra.Command, args []string) error { productCodes := collectChmodProductCodes(productFlags, productsFlag, domainFlags, domainsFlag) if len(args) > 0 || recommend || len(productCodes) > 0 { @@ -200,6 +205,7 @@ grantType 规则: Example: ` dws pat chmod aitable.record:read --grant-type session --session-id session-xxx dws pat chmod chat.message:list --grant-type once dws pat chmod aitable.record:read aitable.record:write --grant-type permanent + dws pat chmod --recommend --product minutes --grant-type permanent --dry-run dws pat chmod --products calendar,aitable --grant-type session --session-id session-xxx dws pat chmod --recommend --grant-type session --session-id session-xxx`, RunE: func(cmd *cobra.Command, args []string) error {