beisen/
lib.rs

1//! # beisen
2//! 北森接口实现
3//! http://openapi.italent.cn
4
5/// 组织人事接口定义
6/// 参考:http://openapi.italent.cn/docs/tenantbase#/Employee
7mod interface;
8pub use interface::*;
9
10/// 劳动合同相关接口
11mod impl_contract;
12/// employee接口实现
13mod impl_employee;
14mod impl_job_position;
15mod impl_job_post;
16/// 组织架构相关接口
17mod impl_organization;
18mod impl_setting;
19/// token 获取接口实现
20mod impl_token;
21
22/// client实现
23mod client;
24pub use client::Client;
25
26/// 数据模型
27mod model;
28pub use model::*;
29
30/// 数据转换对象
31pub mod dto;
32
33/// 错误定义
34mod err;
35pub use err::Result;
36
37pub mod utils;
38pub use utils::http::PostParameters;
39
40// 北森token获取接口
41pub(crate) const BASE_URL: &str = "https://openapi.italent.cn";