mirror of
https://github.com/larksuite/cli.git
synced 2026-08-03 08:32:46 +08:00
apiPaginate and servicePaginate were near-identical; merge them into one shared client.PaginateToOutput. The two call-site differences are injected: checkErr (both pass APIClient.CheckResponse) and markErr (cmd/api passes errs.MarkRaw, cmd/service passes nil). markErr wraps only the PaginateAll / StreamPages / checkErr errors — never the WriteSuccessEnvelope return — preserving both commands' exact stdout/stderr bytes and error semantics. Pure refactor.