Skip to content

Commit

Permalink
新增
Browse files Browse the repository at this point in the history
- 【飞书人事(企业版)】序列创 事件体
- 【飞书人事(企业版)】序列更新 事件体
- 【飞书人事(企业版)】序列删除 事件体
- 【飞书人事(企业版)】职级创建 事件体
- 【飞书人事(企业版)】职级更新 事件体
- 【飞书人事(企业版)】职级删除 事件体
- 【飞书人事(企业版)】查询编制规划明细信息
- 【飞书人事(企业版)】查询部门变更记录

变更
- 创建审批实例 请求体
- 复制多维表格 响应体
- 搜索 Wiki 响应体

Signed-off-by: Vicente.Yu <^@^>
  • Loading branch information
Vicente.Yu committed Sep 18, 2024
1 parent b443cc4 commit 14ec2fc
Show file tree
Hide file tree
Showing 55 changed files with 1,289 additions and 351 deletions.
8 changes: 7 additions & 1 deletion EventCallbackList.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 事件回调类型清单
## 事件回调类型清单
<table><thead><tr><th>事件代码</th><th>事件类型</th><th>描述</th></tr></thead><tbody>
<tr><td>approval.approval.updated_v4</td><td>EventV2Dto&lt;Approval.Events.ApprovalApprovalUpdatedV4EventBodyDto&gt;</td><td>【审批】审批定义更新</td></tr>
<tr><td>approval.instance.trip_group_update_v4</td><td>EventV2Dto&lt;Approval.Events.ApprovalInstanceTripGroupUpdateV4EventBodyDto&gt;</td><td>【审批】出差审批</td></tr>
Expand All @@ -23,8 +23,14 @@
<tr><td>corehr.employee.domain_event_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrEmployeeDomainEventV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】人员信息变更</td></tr>
<tr><td>corehr.process.approver.updated_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrProcessApproverUpdatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】审批任务状态变更</td></tr>
<tr><td>corehr.probation.updated_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrProbationUpdatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】试用期状态变更</td></tr>
<tr><td>corehr.job_family.created_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobFamilyCreatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】序列创建</td></tr>
<tr><td>corehr.job_family.updated_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobFamilyUpdatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】序列更新</td></tr>
<tr><td>corehr.job_family.deleted_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobFamilyDeletedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】序列删除</td></tr>
<tr><td>corehr.job_change.updated_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobChangeUpdatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】异动信息变更</td></tr>
<tr><td>corehr.job_change.status_updated_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobChangeStatusUpdatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】异动状态变更</td></tr>
<tr><td>corehr.job_level.created_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobLevelCreatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】职级创建</td></tr>
<tr><td>corehr.job_level.updated_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobLevelUpdatedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】职级更新</td></tr>
<tr><td>corehr.job_level.deleted_v2</td><td>EventV2Dto&lt;Corehr.Events.CorehrJobLevelDeletedV2EventBodyDto&gt;</td><td>【飞书人事(企业版)】职级删除</td></tr>
<tr><td>corehr.department.created_v1</td><td>EventV2Dto&lt;FeishuPeople.Events.CorehrDepartmentCreatedV1EventBodyDto&gt;</td><td>【飞书人事】【事件】创建部门</td></tr>
<tr><td>corehr.employment.created_v1</td><td>EventV2Dto&lt;FeishuPeople.Events.CorehrEmploymentCreatedV1EventBodyDto&gt;</td><td>【飞书人事】【事件】创建雇佣信息</td></tr>
<tr><td>corehr.person.created_v1</td><td>EventV2Dto&lt;FeishuPeople.Events.CorehrPersonCreatedV1EventBodyDto&gt;</td><td>【飞书人事】【事件】个人信息创建</td></tr>
Expand Down
2 changes: 1 addition & 1 deletion FeishuNetSdk.WebSocket/FeishuNetSdk.WebSocket.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Copyright>MIT</Copyright>
<Description>适用于飞书开放平台的.Net开发包</Description>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion FeishuNetSdk.WebSocket/WssService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ private async void MessageReceived(object? sender, MessageReceivedEventArgs e)
}
}

private void ServerDisconnected(object? sender, EventArgs e)
private async void ServerDisconnected(object? sender, EventArgs e)
{
logger.LogInformation("长连接已断开");

await StartConnectAsync();
}

private void ServerConnected(object? sender, EventArgs e)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public class TestController : ControllerBase
事件体类型参照:[事件回调类型清单](https://github.com/vicenteyu/FeishuNetSdk/blob/main/EventCallbackList.md)

**注意:需要3秒内响应。**
**规则上允许,但不建议:同一事件有多个继承类,可以同时执行不同内容,但任何一个超时或失败都会导致返回失败结果。**

**规则上允许,但不建议:同一事件有多个派生类,可以同时执行,但任何一个超时或失败都会导致返回失败结果。**

**相同的事件消息可能会推送多次,原因例如日志上没有显示超时,但服务端判断已经超时。可以使用`完整消息体`上的`EventId`属性进行重复判断。**

```csharp
Expand All @@ -145,7 +147,9 @@ public class EventHandler1(ILogger<EventHandler> logger) : IEventHandler<EventV2
事件体类型参照:[事件回调类型清单](https://github.com/vicenteyu/FeishuNetSdk/blob/main/EventCallbackList.md)

**注意:需要3秒内响应。**

**规则不允许同一回调有多个继承类。**

**一条消息仅推送一次。**

```csharp
Expand Down
Loading

0 comments on commit 14ec2fc

Please sign in to comment.