Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: 实现小程序用工关系API支持#3812

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge2 commits intodevelop
base:develop
Choose a base branch
Loading
fromcopilot/add-labor-relation-feature

Conversation

Copy link
Contributor

CopilotAI commentedDec 19, 2025
edited
Loading

微信小程序新增了用工关系能力,需要支持解绑用工关系和推送用工消息两个服务端API。

实现内容

新增Bean类

  • WxMaUnbindEmployeeRequest - 解绑请求(openid + corpId)
  • WxMaSendEmployeeMsgRequest - 推送消息请求(openid + corpId + msg)

新增服务

  • WxMaEmployeeRelationService - 用工关系服务接口
    • unbindEmployee() - 解绑用工关系
    • sendEmployeeMsg() - 推送用工消息
  • WxMaEmployeeRelationServiceImpl - 服务实现

API集成

  • WxMaApiUrlConstants.Employee - 新增API URL常量接口
  • WxMaService.getEmployeeRelationService() - 服务获取方法
  • BaseWxMaServiceImpl - 注册服务实例

使用示例

WxMaEmployeeRelationServiceemployeeService =wxMaService.getEmployeeRelationService();// 解绑用工关系employeeService.unbindEmployee(WxMaUnbindEmployeeRequest.newBuilder()    .openid("oABCD1234")    .corpId("corp_123")    .build());// 推送用工消息employeeService.sendEmployeeMsg(WxMaSendEmployeeMsgRequest.newBuilder()    .openid("oABCD1234")    .corpId("corp_123")    .msg("您的工作任务已更新")    .build());

参考文档

:绑定和检查用工关系为小程序端API(wx.bindEmployeeRelation/wx.checkEmployeeRelation),无需服务端实现。

Original prompt

This section details on the original issue you should resolve

<issue_title>【小程序】用工关系</issue_title>
<issue_description># 提问前,请确保阅读过项目首页说明以及wiki开发文档相关内容,完成内容后,请务必移除包括本句在内的无用内容,以免影响他人阅读,否则直接关闭,谢谢合作~

简要描述

小程序新增了用工关系能力,不知道是否已经在开发计划中

官方文档地址

请提供所需功能对应的微信官方文档地址以便进行确认。
用工关系简介
绑定用工关系
解绑用工关系
检查用工关系
推送用工消息
</issue_description>

Comments on the Issue (you are@copilot in this section)

Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn moreCopilot coding agent tips in the docs.

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
CopilotAI changed the title[WIP] Add labor relation capability to mini programfeat: 实现小程序用工关系API支持Dec 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@binarywangbinarywangAwaiting requested review from binarywang

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

【小程序】用工关系

2 participants

@binarywang

[8]ページ先頭

©2009-2025 Movatter.jp