Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for closing temporary chat sessions in WeChat Work's external contact API. The implementation adds a new CloseTempChat function to the contact_way module, which allows enterprises to programmatically end temporary chat sessions with external contacts.
Changes:
- Added
closeTempChatURLconstant for the API endpoint - Added
CloseTempChatRequeststruct withuseridandexternal_useridfields - Implemented
CloseTempChatmethod following established patterns for operations that return only errors
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| // CloseTempChat 结束临时会话 | ||
| // @see https://developer.work.weixin.qq.com/document/path/92228 |
There was a problem hiding this comment.
The documentation comment uses "@see" while all other functions in this file use "// see" (without the @). For consistency with the existing codebase, this should be changed to "// see" to match lines 95, 145, 186, 225, and 255.
| } | ||
|
|
||
| // CloseTempChat 结束临时会话 | ||
| // @see https://developer.work.weixin.qq.com/document/path/92228 |
There was a problem hiding this comment.
The documentation path references 92228, which is the same path used by all other "联系我" (Contact Way) functions in this file. However, the "close_temp_chat" API is a distinct endpoint that likely has its own documentation page. Please verify this is the correct documentation path for the close_temp_chat API. If it has a separate documentation page, the path should be updated to reference the specific page for this endpoint.
| // @see https://developer.work.weixin.qq.com/document/path/92228 | |
| // @see WeCom "结束临时会话" (externalcontact/close_temp_chat) API documentation |
No description provided.