dubhe-sdk-orgdelegate
v1.0.39
Published
javascript sdk for dubhe_orgdelegate_service, generate at 2024-05-27 14:50:27, generate by [email protected]
Downloads
4
Readme
dubhe-sdk-orgdelegate
dubhe-sdk-orgdelegate - JavaScript client for dubhe orgdelegate service
- Package version: 1.0.39, generate by [email protected]
- Build date: 2024-05-27 14:50:27
For more information, please visit http://www.billion-byte.com
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install dubhe-sdk-orgdelegate --save
Finally, you need to build the module:
npm run build
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
To use the link you just defined in your project, switch to the directory you want to use your dubhe-sdk-orgdelegate from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Finally, you need to build the module:
npm run build
Getting Started
Please follow the installation instruction and execute the following JS code:
import { FlowableInfoControllerApi } from 'dubhe-sdk-orgdelegate';
const api = new FlowableInfoControllerApi(ApiContext.getInstance());
const brchCode = "brchCode_example"; // {String} 机构编码
const deptMdlCode = "deptMdlCode_example"; // {String} 部门模板编码
const postCode = "postCode_example"; // {String} 岗位编码
try {
const {data} = await api.fetchUserListFlowable(brchCode, deptMdlCode, postCode);
} catch(error) {
console.error(error);
}
API Endpoints
All URIs are relative to http://139.3.24.189:28790/ORGDELEGATE
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- FlowableInfoControllerApi | fetchUserListFlowable | GET /rest/orgdelegate/flowable/fetchUserListFlowable | 流程引擎 MidletApiControllerApi | getBrchListByParentCode | GET /rest/orgdelegate/midlet/getBrchListByParentCode | 根据parentCode获取机构列表 MidletApiControllerApi | getKubBrchDetail | GET /rest/orgdelegate/midlet/getKubBrchDetail/{brchCode} | 获取经营机构详情 MidletApiControllerApi | getUsersCodeByJobCodesAndBrchCodes | GET /rest/orgdelegate/midlet/getUsersCodeByJobCodesAndBrchCodes | 根据jobCode获取userCode PurviewStorageControllerApi | fetchSelfPurviewStorageList | GET /rest/orgdelegate/purview/storage/self/list | 获取详细信息 PurviewStorageControllerApi | fetchUserPurviewStorageList | GET /rest/orgdelegate/purview/storage/user/list/{userCode} | 获取人员详细信息 ViewKubUserControllerApi | fetchKubUserListByBrchCode | GET /rest/orgdelegate/viewkubuser/fetchKubUserListByBrchCode/{brchCode} | 获取人员信息主表列表 ViewKubUserControllerApi | fetchKubUserListByDeptCode | GET /rest/orgdelegate/viewkubuser/fetchKubUserListByDeptCode/{deptCode} | 获取人员信息主表列表 ViewKubUserControllerApi | fetchSelfDetail | GET /rest/orgdelegate/viewkubuser/self/detail | 获取详细信息 ViewKubUserControllerApi | fetchUserDetail | GET /rest/orgdelegate/viewkubuser/user/detail/{userCode} | 获取人员详细信息