Skip to content

Commit

Permalink
【飞书人事】
Browse files Browse the repository at this point in the history
新增接口
- 创建个人信息
- 更新个人信息

【薪酬管理】
新增接口
- 批量查询定调薪原因
- 批量查询员工薪资档案
- 批量获取薪资项分类信息
- 批量查询薪资项
- 批量查询薪资统计指标
- 批量查询薪资方案

Signed-off-by: Vicente.Yu <^@^>
  • Loading branch information
Vicente.Yu committed May 11, 2024
1 parent f60eab3 commit 89e0614
Show file tree
Hide file tree
Showing 24 changed files with 12,495 additions and 171 deletions.
32 changes: 25 additions & 7 deletions TenantAccessList.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<tr><td colspan="3">PutImV1ChatsByChatIdModeration</td></tr>
<tr><td rowspan="2">7</td><td rowspan="2">2024-01-09</td><td>&#10003;</td><td>消息与群组</td><td>获取群信息</td></tr>
<tr><td colspan="3">GetImV1ChatsByChatId</td></tr>
<tr><td rowspan="2">8</td><td rowspan="2">2023-07-12</td><td>&#10003;</td><td>消息与群组</td><td>更新群置顶</td></tr>
<tr><td rowspan="2">8</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>消息与群组</td><td>更新群置顶</td></tr>
<tr><td colspan="3">PostImV1ChatsByChatIdTopNoticePutTopNotice</td></tr>
<tr><td rowspan="2">9</td><td rowspan="2">2023-07-12</td><td>&#10003;</td><td>消息与群组</td><td>撤销群置顶</td></tr>
<tr><td colspan="3">PostImV1ChatsByChatIdTopNoticeDeleteTopNotice</td></tr>
Expand Down Expand Up @@ -447,7 +447,7 @@
<tr><td colspan="3">PutWikiV2SpacesBySpaceIdSetting</td></tr>
<tr><td rowspan="2">224</td><td rowspan="2">2024-04-15</td><td>&#10003;</td><td>通讯录</td><td>创建用户</td></tr>
<tr><td colspan="3">PostContactV3Users</td></tr>
<tr><td rowspan="2">225</td><td rowspan="2">2023-11-13</td><td>&#10003;</td><td>通讯录</td><td>获取子部门列表</td></tr>
<tr><td rowspan="2">225</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>通讯录</td><td>获取子部门列表</td></tr>
<tr><td colspan="3">GetContactV3DepartmentsByDepartmentIdChildren</td></tr>
<tr><td rowspan="2">226</td><td rowspan="2">2023-07-27</td><td>&#10003;</td><td>云文档</td><td>创建知识空间节点</td></tr>
<tr><td colspan="3">PostWikiV2SpacesBySpaceIdNodes</td></tr>
Expand Down Expand Up @@ -1339,7 +1339,7 @@
<tr><td colspan="3">PutImV1MessagesByMessageId</td></tr>
<tr><td rowspan="2">670</td><td rowspan="2">2023-07-14</td><td>&#10003;</td><td>飞书人事</td><td>批量查询货币信息</td></tr>
<tr><td colspan="3">GetCorehrV1Currencies</td></tr>
<tr><td rowspan="2">671</td><td rowspan="2">2024-04-29</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>批量查询员工信息</td></tr>
<tr><td rowspan="2">671</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>批量查询员工信息</td></tr>
<tr><td colspan="3">PostCorehrV2EmployeesBatchGet</td></tr>
<tr><td rowspan="2">672</td><td rowspan="2">2024-04-29</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>搜索员工信息</td></tr>
<tr><td colspan="3">PostCorehrV2EmployeesSearch</td></tr>
Expand All @@ -1349,9 +1349,9 @@
<tr><td colspan="3">PatchCorehrV1EmploymentsByEmploymentId</td></tr>
<tr><td rowspan="2">675</td><td rowspan="2">2024-02-06</td><td>&#10003;</td><td>飞书人事</td><td>删除雇佣信息</td></tr>
<tr><td colspan="3">DeleteCorehrV1EmploymentsByEmploymentId</td></tr>
<tr><td rowspan="2">676</td><td rowspan="2">2023-12-25</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>创建个人信息(V2)</td></tr>
<tr><td rowspan="2">676</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>创建个人信息</td></tr>
<tr><td colspan="3">PostCorehrV2Persons</td></tr>
<tr><td rowspan="2">677</td><td rowspan="2">2024-04-25</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>更新个人信息(V2)</td></tr>
<tr><td rowspan="2">677</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>飞书人事(企业版)</td><td>更新个人信息</td></tr>
<tr><td colspan="3">PatchCorehrV2PersonsByPersonId</td></tr>
<tr><td rowspan="2">678</td><td rowspan="2">2024-02-06</td><td>&#10003;</td><td>飞书人事</td><td>删除个人信息</td></tr>
<tr><td colspan="3">DeleteCorehrV1PersonsByPersonId</td></tr>
Expand Down Expand Up @@ -1531,7 +1531,7 @@
<tr><td colspan="3">GetCorehrV1SecurityGroups</td></tr>
<tr><td rowspan="2">766</td><td rowspan="2">2024-04-26</td><td>&#10003;</td><td>飞书人事</td><td>获取流程表单数据</td></tr>
<tr><td colspan="3">GetCorehrV1ProcessesByProcessIdFormVariableData</td></tr>
<tr><td rowspan="2">767</td><td rowspan="2">2023-10-17</td><td>&#10003;</td><td>飞书人事</td><td>获取员工薪资标准</td></tr>
<tr><td rowspan="2">767</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>飞书人事</td><td>获取员工薪资标准</td></tr>
<tr><td colspan="3">GetCorehrV1CompensationStandardsMatch</td></tr>
<tr><td rowspan="2">768</td><td rowspan="2">2023-10-11</td><td>&#10003;</td><td>消息与群组</td><td>发送短信加急</td></tr>
<tr><td colspan="3">PatchImV1MessagesByMessageIdUrgentSms</td></tr>
Expand Down Expand Up @@ -1579,7 +1579,7 @@
<tr><td colspan="3">PutHireV1ExternalApplicationsByExternalApplicationId</td></tr>
<tr><td rowspan="2">790</td><td rowspan="2">2024-04-28</td><td>&#10003;</td><td>招聘</td><td>删除外部投递</td></tr>
<tr><td colspan="3">DeleteHireV1ExternalApplicationsByExternalApplicationId</td></tr>
<tr><td rowspan="2">791</td><td rowspan="2">2024-04-28</td><td>&#10003;</td><td>消息与群组</td><td>批量发送消息</td></tr>
<tr><td rowspan="2">791</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>消息与群组</td><td>批量发送消息</td></tr>
<tr><td colspan="3">PostMessageV4BatchSend</td></tr>
<tr><td rowspan="2">792</td><td rowspan="2">2023-11-02</td><td>&#10003;</td><td>招聘</td><td>创建外部面试</td></tr>
<tr><td colspan="3">PostHireV1ExternalInterviews</td></tr>
Expand Down Expand Up @@ -2109,4 +2109,22 @@
<tr><td colspan="3">DeleteCorehrV2PreHiresByPreHireId</td></tr>
<tr><td rowspan="2">1055</td><td rowspan="2">2024-04-28</td><td>&#10003;</td><td>飞书人事</td><td>ID 转换</td></tr>
<tr><td colspan="3">PostCorehrV1CommonDataIdConvert</td></tr>
<tr><td rowspan="2">1056</td><td rowspan="2">2024-05-11</td><td>新增</td><td>飞书人事</td><td>创建个人信息</td></tr>
<tr><td colspan="3">PostCorehrV1Persons</td></tr>
<tr><td rowspan="2">1057</td><td rowspan="2">2024-05-11</td><td>新增</td><td>飞书人事</td><td>更新个人信息</td></tr>
<tr><td colspan="3">PatchCorehrV1PersonsByPersonId</td></tr>
<tr><td rowspan="2">1058</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量查询定调薪原因</td></tr>
<tr><td colspan="3">GetCompensationV1ChangeReasons</td></tr>
<tr><td rowspan="2">1059</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量查询员工薪资档案</td></tr>
<tr><td colspan="3">PostCompensationV1ArchivesQuery</td></tr>
<tr><td rowspan="2">1060</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量获取薪资项分类信息</td></tr>
<tr><td colspan="3">GetCompensationV1ItemCategories</td></tr>
<tr><td rowspan="2">1061</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量查询薪资项</td></tr>
<tr><td colspan="3">GetCompensationV1Items</td></tr>
<tr><td rowspan="2">1062</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量查询薪资统计指标</td></tr>
<tr><td colspan="3">GetCompensationV1Indicators</td></tr>
<tr><td rowspan="2">1063</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量查询薪资方案</td></tr>
<tr><td colspan="3">GetCompensationV1Plans</td></tr>
<tr><td rowspan="2">1064</td><td rowspan="2">2024-05-11</td><td>新增</td><td>飞书人事(企业版)</td><td>查询职等</td></tr>
<tr><td colspan="3">PostCorehrV2JobGradesQuery</td></tr>
</tbody></table>
6 changes: 4 additions & 2 deletions UserAccessList.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
<tr><td colspan="3">PostVcV1ReservesApply</td></tr>
<tr><td rowspan="2">190</td><td rowspan="2">2023-07-10</td><td>&#10003;</td><td>视频会议</td><td>删除预约</td></tr>
<tr><td colspan="3">DeleteVcV1ReservesByReserveId</td></tr>
<tr><td rowspan="2">191</td><td rowspan="2">2023-07-12</td><td>&#10003;</td><td>消息与群组</td><td>更新群置顶</td></tr>
<tr><td rowspan="2">191</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>消息与群组</td><td>更新群置顶</td></tr>
<tr><td colspan="3">PostImV1ChatsByChatIdTopNoticePutTopNotice</td></tr>
<tr><td rowspan="2">192</td><td rowspan="2">2023-07-10</td><td>&#10003;</td><td>视频会议</td><td>更新预约</td></tr>
<tr><td colspan="3">PutVcV1ReservesByReserveId</td></tr>
Expand Down Expand Up @@ -915,7 +915,7 @@
<tr><td colspan="3">GetDriveV1ExportTasksFileByFileTokenDownload</td></tr>
<tr><td rowspan="2">458</td><td rowspan="2">2023-12-07</td><td>&#10003;</td><td>云文档</td><td>获取文档访问记录</td></tr>
<tr><td colspan="3">GetDriveV1FilesByFileTokenViewRecords</td></tr>
<tr><td rowspan="2">459</td><td rowspan="2">2023-11-13</td><td>&#10003;</td><td>通讯录</td><td>获取子部门列表</td></tr>
<tr><td rowspan="2">459</td><td rowspan="2">2024-05-11</td><td>&#10003;</td><td>通讯录</td><td>获取子部门列表</td></tr>
<tr><td colspan="3">GetContactV3DepartmentsByDepartmentIdChildren</td></tr>
<tr><td rowspan="2">460</td><td rowspan="2">2024-03-25</td><td>&#10003;</td><td>云文档</td><td>创建文档版本</td></tr>
<tr><td colspan="3">PostDriveV1FilesByFileTokenVersions</td></tr>
Expand Down Expand Up @@ -1013,4 +1013,6 @@
<tr><td colspan="3">GetAilyV1SessionsByAilySessionIdRunsByRunId</td></tr>
<tr><td rowspan="2">507</td><td rowspan="2">2024-04-25</td><td>&#10003;</td><td>智能伙伴创建平台</td><td>创建会话</td></tr>
<tr><td colspan="3">PostAilyV1Sessions</td></tr>
<tr><td rowspan="2">508</td><td rowspan="2">2024-05-11</td><td>新增</td><td>薪酬管理</td><td>批量查询员工薪资档案</td></tr>
<tr><td colspan="3">PostCompensationV1ArchivesQuery</td></tr>
</tbody></table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
namespace FeishuNetSdk.CompensationManagement;
/// <summary>
/// 批量查询定调薪原因 响应体
/// <para>批量查询定调薪原因</para>
/// <para>接口ID:7314129756769730564</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/change_reason/list</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fcompensation-v1%2fchange_reason%2flist</para>
/// </summary>
public record GetCompensationV1ChangeReasonsResponseDto
{
/// <summary>
/// <para>调薪原因信息列表</para>
/// <para>必填:是</para>
/// </summary>
[JsonPropertyName("items")]
public ChangeReason[] Items { get; set; } = Array.Empty<ChangeReason>();

/// <summary>
/// <para>调薪原因信息列表</para>
/// </summary>
public record ChangeReason
{
/// <summary>
/// <para>调薪原因ID</para>
/// <para>必填:是</para>
/// <para>示例值:7196951947268589113</para>
/// </summary>
[JsonPropertyName("id")]
public string Id { get; set; } = string.Empty;

/// <summary>
/// <para>调薪原因名称</para>
/// <para>必填:是</para>
/// <para>示例值:入职调薪</para>
/// </summary>
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;

/// <summary>
/// <para>调薪原因备注</para>
/// <para>必填:是</para>
/// <para>示例值:入职时使用的调薪原因</para>
/// </summary>
[JsonPropertyName("note")]
public string Note { get; set; } = string.Empty;

/// <summary>
/// <para>启用状态</para>
/// <para>必填:是</para>
/// <para>示例值:1</para>
/// <para>可选值:<list type="bullet">
/// <item>1:启用</item>
/// <item>0:禁用</item>
/// </list></para>
/// </summary>
[JsonPropertyName("active_status")]
public int ActiveStatus { get; set; }

/// <summary>
/// <para>多语言名称</para>
/// <para>必填:是</para>
/// <para>最大长度:10</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("i18n_names")]
public I18nContent[] I18nNames { get; set; } = Array.Empty<I18nContent>();

/// <summary>
/// <para>多语言名称</para>
/// </summary>
public record I18nContent
{
/// <summary>
/// <para>语言版本,例如:“zh-CN”、“en-US”</para>
/// <para>必填:否</para>
/// <para>示例值:zh_cn</para>
/// </summary>
[JsonPropertyName("locale")]
public string? Locale { get; set; }

/// <summary>
/// <para>语言名称</para>
/// <para>必填:否</para>
/// <para>示例值:中文名称</para>
/// </summary>
[JsonPropertyName("value")]
public string? Value { get; set; }
}

/// <summary>
/// <para>多语言描述</para>
/// <para>必填:是</para>
/// <para>最大长度:10</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("i18n_notes")]
public I18nContent[] I18nNotes { get; set; } = Array.Empty<I18nContent>();
}

/// <summary>
/// <para>分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token</para>
/// <para>必填:否</para>
/// <para>示例值:1234452132</para>
/// </summary>
[JsonPropertyName("page_token")]
public string? PageToken { get; set; }

/// <summary>
/// <para>是否还有更多项</para>
/// <para>必填:是</para>
/// <para>示例值:true</para>
/// </summary>
[JsonPropertyName("has_more")]
public bool HasMore { get; set; }
}
111 changes: 111 additions & 0 deletions src/CompensationManagement/GetCompensationV1IndicatorsResponseDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
namespace FeishuNetSdk.CompensationManagement;
/// <summary>
/// 批量查询薪资统计指标 响应体
/// <para>批量查询薪资统计指标</para>
/// <para>接口ID:7314129756769796100</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/indicator/list</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fcompensation-v1%2findicator%2flist</para>
/// </summary>
public record GetCompensationV1IndicatorsResponseDto
{
/// <summary>
/// <para>薪资统计指标信息列表</para>
/// <para>必填:是</para>
/// </summary>
[JsonPropertyName("items")]
public Indicator[] Items { get; set; } = Array.Empty<Indicator>();

/// <summary>
/// <para>薪资统计指标信息列表</para>
/// </summary>
public record Indicator
{
/// <summary>
/// <para>薪资统计指标ID</para>
/// <para>必填:是</para>
/// <para>示例值:7196951947228589113</para>
/// </summary>
[JsonPropertyName("id")]
public string Id { get; set; } = string.Empty;

/// <summary>
/// <para>薪资统计指标名称</para>
/// <para>必填:是</para>
/// <para>示例值:年度现金总和</para>
/// </summary>
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;

/// <summary>
/// <para>薪资统计指标数值类型</para>
/// <para>必填:是</para>
/// <para>示例值:money</para>
/// <para>可选值:<list type="bullet">
/// <item>money:金额</item>
/// <item>number:数值</item>
/// <item>percent:百分比</item>
/// </list></para>
/// </summary>
[JsonPropertyName("value_type")]
public string ValueType { get; set; } = string.Empty;

/// <summary>
/// <para>启用状态</para>
/// <para>必填:是</para>
/// <para>示例值:1</para>
/// <para>可选值:<list type="bullet">
/// <item>1:启用</item>
/// <item>0:禁用</item>
/// </list></para>
/// </summary>
[JsonPropertyName("active_status")]
public int ActiveStatus { get; set; }

/// <summary>
/// <para>多语言名称</para>
/// <para>必填:是</para>
/// <para>最大长度:10</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("i18n_names")]
public I18nContent[] I18nNames { get; set; } = Array.Empty<I18nContent>();

/// <summary>
/// <para>多语言名称</para>
/// </summary>
public record I18nContent
{
/// <summary>
/// <para>语言版本,例如:“zh-CN”、“en-US”</para>
/// <para>必填:否</para>
/// <para>示例值:zh_cn</para>
/// </summary>
[JsonPropertyName("locale")]
public string? Locale { get; set; }

/// <summary>
/// <para>语言名称</para>
/// <para>必填:否</para>
/// <para>示例值:中文名称</para>
/// </summary>
[JsonPropertyName("value")]
public string? Value { get; set; }
}
}

/// <summary>
/// <para>分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token</para>
/// <para>必填:否</para>
/// <para>示例值:1234452132</para>
/// </summary>
[JsonPropertyName("page_token")]
public string? PageToken { get; set; }

/// <summary>
/// <para>是否还有更多项</para>
/// <para>必填:否</para>
/// <para>示例值:true</para>
/// </summary>
[JsonPropertyName("has_more")]
public bool? HasMore { get; set; }
}
Loading

0 comments on commit 89e0614

Please sign in to comment.