Skip to content

Conversation

@hellozhongying
Copy link
Contributor

【企业微信】新增管理表格内容相关接口。包括:编辑表格内容、获取表格行列信息、获取表格数据等接口

@binarywang binarywang requested a review from Copilot January 8, 2026 07:09
@binarywang
Copy link
Owner

auggie review

@augmentcode
Copy link

augmentcode bot commented Jan 8, 2026

🤖 Augment PR Summary

Summary: This PR adds 企业微信(WeCom)WeDoc 在线表格“管理表格内容”相关能力到 WxJava 企业微信模块。

Changes:

  • WxCpOaWeDocService 新增 3 个表格接口:批量编辑(batch_update)、获取工作表属性(get_sheet_properties)、获取指定范围数据(get_sheet_range_data)。
  • WxCpOaWeDocServiceImpl 增加对应实现,统一通过 cpService.post 调用企业微信 Wedoc Spreadsheet API。
  • WxCpApiPathConsts.Oa 增加 3 个新的 API path 常量,便于统一拼接网关地址。
  • 新增表格批量更新的请求/响应模型(WxCpDocSheetBatchUpdateRequest/Response),覆盖新增/删除工作表、更新范围、删除行列等操作。
  • 新增表格数据与属性的响应模型(WxCpDocSheetData / WxCpDocSheetProperties)。
  • 表格数据模型包含 Grid/Row/Cell 及文本样式等嵌套结构,使用 Gson + WxCpGsonBuilder 完成序列化/反序列化。

Technical Notes: These endpoints follow the WeDoc Spreadsheet POST contracts and rely on strongly-typed POJOs for request/response payloads.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本 PR 为企业微信的微文档(WeDoc)服务新增了三个管理表格内容的 API 接口,包括批量更新表格内容、获取表格行列信息以及获取指定范围的表格数据。这些接口支持对企业微信在线表格的完整操作,包括新增工作表、删除工作表、更新单元格内容、删除行列等功能。

主要变更:

  • 新增了 3 个 API 端点常量定义
  • 新增了 5 个数据模型类,包含完整的请求和响应结构
  • WxCpOaWeDocService 接口中新增了 3 个方法定义
  • WxCpOaWeDocServiceImpl 实现类中完成了对应的方法实现

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
WxCpApiPathConsts.java 新增了 3 个表格相关的 API 端点常量,用于批量更新、获取属性和获取数据
WxCpDocSheetProperties.java 定义了获取表格行列信息的响应数据结构,包含工作表 ID、名称、行数和列数
WxCpDocSheetGetDataRequest.java 定义了获取表格数据的请求参数,包括文档 ID、工作表 ID 和查询范围
WxCpDocSheetData.java 定义了表格数据的响应结构,包含单元格内容、样式、文本格式等详细信息
WxCpDocSheetBatchUpdateRequest.java 定义了批量更新表格的请求结构,支持新增工作表、删除工作表、更新单元格和删除行列等操作
WxCpDocSheetBatchUpdateResponse.java 定义了批量更新操作的响应结构,返回各个操作的执行结果
WxCpOaWeDocService.java 在服务接口中新增了 3 个方法定义,包含详细的 JavaDoc 文档说明
WxCpOaWeDocServiceImpl.java 实现了 3 个新增的接口方法,使用标准的 POST 请求调用微信企业 API

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

根据copilot建议修改注释和相应名称

Co-authored-by: Copilot <[email protected]>
@binarywang
Copy link
Owner

无需处理的建议,麻烦点击下 resolve conversation

Copy link
Contributor Author

@hellozhongying hellozhongying left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根据copilot审查建议完善javadoc相关内容

@binarywang binarywang merged commit e27325f into binarywang:develop Jan 9, 2026
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

Successfully merging this pull request may close these issues.

2 participants