Skip to content

feat: 企业微信-客户联系-结束临时会话#878

Open
markwang1992 wants to merge 1 commit intosilenceper:v2from
markwang1992:contact_way
Open

feat: 企业微信-客户联系-结束临时会话#878
markwang1992 wants to merge 1 commit intosilenceper:v2from
markwang1992:contact_way

Conversation

@markwang1992
Copy link
Contributor

No description provided.

Copy link
Contributor

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

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 closeTempChatURL constant for the API endpoint
  • Added CloseTempChatRequest struct with userid and external_userid fields
  • Implemented CloseTempChat method 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
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
}

// CloseTempChat 结束临时会话
// @see https://developer.work.weixin.qq.com/document/path/92228
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

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.

Suggested change
// @see https://developer.work.weixin.qq.com/document/path/92228
// @see WeCom "结束临时会话" (externalcontact/close_temp_chat) API documentation

Copilot uses AI. Check for mistakes.
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.

1 participant