oapi-sdk-go icon indicating copy to clipboard operation
oapi-sdk-go copied to clipboard

搜索文档的openapi

Open setcreed opened this issue 2 years ago • 3 comments

sdk中封装的struct返回值的字段与文档不一致 https://github.com/larksuite/oapi-sdk-go/blob/main/service/suite/v1/model.go/#L12 type DocsEntity struct { DocsToken string json:"docs_token,omitempty" DocsType string json:"docs_type,omitempty" Title string json:"title,omitempty" DocsOwner string json:"docs_owner,omitempty" ForceSendFields []string json:"-" }

sdk中的是 docs_owner,而文档中的是owner_id https://open.feishu.cn/document/ukTMukTMukTM/ugDM4UjL4ADO14COwgTN

setcreed avatar Jul 31 '22 14:07 setcreed

DocsOwner

你好,这个问题当前只能通过原生 api方式来访问了,参考:https://github.com/larksuite/oapi-sdk-go/blob/main/README.zh.md#%E4%BD%BF%E7%94%A8%E4%BC%81%E4%B8%9A%E8%87%AA%E5%BB%BA%E5%BA%94%E7%94%A8%E8%AE%BF%E9%97%AE-%E5%8F%91%E9%80%81%E6%96%87%E6%9C%AC%E6%B6%88%E6%81%AFapi-%E7%A4%BA%E4%BE%8B

zhailuxubyte avatar Aug 01 '22 02:08 zhailuxubyte

为啥这个不能改一下,还是说之前的就是docs_owner

setcreed avatar Aug 01 '22 02:08 setcreed

为啥这个不能改一下,还是说之前的就是docs_owner

是这样的,有些业务经过了迁移,迁移后的的api没有元数据了,而SDK的生成是需要根据元数据自动生成的。上面那个api没版本根据元数据生成了。

欢迎加飞书群讨论: image

zhailuxubyte avatar Aug 01 '22 02:08 zhailuxubyte