Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

人力资源

IHumanResourcesService 统一抽象与 2 家人力资源供应商(Moka、薪人薪事)的包参考。

Last updated

人力资源域把员工(Employee)、部门(Department)与考勤(Attendance)三类核心对象抽象为 IHumanResourcesService,消费方通过 DI 注入接口即可,无需关心具体供应商。

统一接口

IHumanResourcesService(命名空间 Bitzsoft.Integrations.HumanResources)定义 9 个方法:

方法说明
CreateEmployeeAsync创建员工
GetEmployeeAsync查询单个员工
UpdateEmployeeAsync更新员工信息
DeactivateEmployeeAsync停用员工
ListEmployeesAsync查询员工列表
CreateDepartmentAsync创建部门
ListDepartmentsAsync查询部门列表
SubmitAttendanceAsync提交考勤记录
ListAttendanceRecordsAsync查询员工考勤记录

接口还暴露 ProviderName 属性,返回运行时供应商名称(如 "Moka")。

包结构

Bitzsoft.Integrations.HumanResources/ ← 抽象层
Bitzsoft.Integrations.HumanResources.All/ ← 聚合包(拉入全部 2 家)
Bitzsoft.Integrations.HumanResources.Moka/ ← Moka HR
Bitzsoft.Integrations.HumanResources.Xinrenxinshi/ ← 薪人薪事

供应商清单

供应商Provider ID鉴权文档
MokamokaHTTP Basic Auth(API Key + Secret)moka.mdx
薪人薪事xinrenxinshiAPI Key + HMAC-SHA256 签名头xinrenxinshi.mdx

相关

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%