Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SheetsBatchUpdate方法无法将subSheet的index更新为0 #62

Closed
linhuaqing0928 opened this issue Jan 18, 2022 · 1 comment
Closed

Comments

@linhuaqing0928
Copy link

(spreadsheetss *SpreadsheetsService) SheetsBatchUpdate方法无法将subSheet的index更新为0,需要将api-sdk-go/service/sheets/v2/model.go的Properties结构体的字段都改为指针类型,不然omitempty遇到默认值就会忽略掉

@zhaoche27
Copy link
Contributor

可以使用 Properties 结构体 ForceSendFields 字段, ForceSendFields: []string{"Index"} ;表示:即使 Index=0, 也不会因为 omitempty 被忽略掉。 你说的方案也是我们后续对SDK改造的方案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants