dubhe-screen-api
v1.0.31
Published
dubhe_screen_demo
Downloads
3
Readme
dubhe-screen-api
DubheScreenApi - JavaScript client for dubhe-screen-api dubhe screen demo This SDK is automatically generated by the OpenAPI Generator project:
- API version: 1.0.2
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit http://www.openkosmos.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-screen-api --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-screen-api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Finally, you need to build the module:
npm run build
git
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var DubheScreenApi = require('dubhe-screen-api');
var api = new DubheScreenApi.AccessControllerApi()
api.fetchAccessesUsingPOST().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Documentation for API Endpoints
All URIs are relative to http://localhost:28101
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- DubheScreenApi.AccessControllerApi | fetchAccessesUsingPOST | POST /rest/access/fetch | 获取权限 DubheScreenApi.AccessControllerApi | fetchMenuUsingPOST | POST /rest/access/menu | 获取菜单 DubheScreenApi.AuthControllerApi | loginUsingPOST | POST /auth/login | 认证接口 DubheScreenApi.ClassesControllerApi | createClassesLightUsingPOST | POST /rest/classes/createClassesLight | 创建班级信息 DubheScreenApi.ClassesControllerApi | createClassesUsingPOST | POST /rest/classes/createClasses | 创建班级信息 DubheScreenApi.ClassesControllerApi | deleteClassesUsingDELETE | DELETE /rest/classes/deleteClasses/{id} | 删除班级信息 DubheScreenApi.ClassesControllerApi | fetchClassesByNameUsingGET | GET /rest/classes/fetchClassesByName | 查询班级信息 DubheScreenApi.ClassesControllerApi | updateClassesUsingPUT | PUT /rest/classes/updateClasses | 修改班级信息 DubheScreenApi.CodeAddressControllerApi | addRetryUsingPOST | POST /rest/obtain/addRetry/{codeAddress} | addRetry DubheScreenApi.CodeAddressControllerApi | findDisptchLocationsUsingGET | GET /rest/obtain/findDisptchLocations | findDisptchLocations DubheScreenApi.CodeAddressControllerApi | findRetryLocationsUsingGET | GET /rest/obtain/findRetryLocations | findRetryLocations DubheScreenApi.CodeAddressControllerApi | updateLocationUsingPUT | PUT /rest/obtain/updateLocation | updateLocation DubheScreenApi.HosControllerApi | selecIncomeAllAreasUsingGET | GET /rest/hos/selecIncomeAllAreas | selecIncomeAllAreas DubheScreenApi.HosControllerApi | selectCmiUsingGET | GET /rest/hos/selectCmi | selectCmi CMI DubheScreenApi.HosControllerApi | selectCommonAreasUsingGET | GET /rest/hos/selectCommonAreas | selectCommonAreas DubheScreenApi.HosControllerApi | selectCostUsingGET | GET /rest/hos/selectCost | selectCost DubheScreenApi.HosControllerApi | selectDeliveryUsingGET | GET /rest/hos/selectDelivery | selectDelivery DubheScreenApi.HosControllerApi | selectDeptIncomeUsingGET | GET /rest/hos/selectDeptIncome | selectDeptIncome DubheScreenApi.HosControllerApi | selectHosUsingGET | GET /rest/hos/selectHos | selectHos DubheScreenApi.HosControllerApi | selectIncomeAreasUsingGET | GET /rest/hos/selectIncomeAreas | selectIncomeAreas DubheScreenApi.HosControllerApi | selectIndexInstDashboardKindUsingGET | GET /rest/hos/selectIndexInstDashboardKind | selectIndexInstDashboardKind DubheScreenApi.HosControllerApi | selectIndexInstDashboardUsingGET | GET /rest/hos/selectIndexInstDashboard | selectIndexInstDashboard DubheScreenApi.HosControllerApi | selectMzIncomeUsingGET | GET /rest/hos/selectMzIncome | selectMzIncome DubheScreenApi.HosControllerApi | selectPerInBedAreasUsingGET | GET /rest/hos/selectPerInBedAreas | selectPerInBedAreas平均住院日 DubheScreenApi.IdxControllerApi | selecIncomeAllKindsUsingGET | GET /rest/idx/selecIncomeAllKinds | selecIncomeAllKinds DubheScreenApi.IdxControllerApi | selecIncomeByYearsUsingGET | GET /rest/idx/selecIncomeByYears | selecIncomeByYears DubheScreenApi.IdxControllerApi | selectBeanUsingGET | GET /rest/idx/selectBean | selectBean DubheScreenApi.IdxControllerApi | selectCategriesFromIncomeUsingGET | GET /rest/idx/selectCategriesFromIncome | selectCategriesFromIncome DubheScreenApi.IdxControllerApi | selectDeptCategriesFromIncomeUsingGET | GET /rest/idx/selectDeptCategriesFromIncome | selectDeptCategriesFromIncome DubheScreenApi.IdxControllerApi | selectLeaveHospitalUsingGET | GET /rest/idx/selectLeaveHospital | 出院人次 DubheScreenApi.IdxControllerApi | selectOrgFromIncomeUsingGET | GET /rest/idx/selectOrgFromIncome | selectOrgFromIncome DubheScreenApi.IdxControllerApi | selectPeopleCountUsingGET | GET /rest/idx/selectPeopleCount | 就诊人次 DubheScreenApi.IdxControllerApi | selectPeopleCountWithTypeUsingGET | GET /rest/idx/selectPeopleCountWithType | 就诊人次 根据类型划分 DubheScreenApi.IdxControllerApi | selectPercentCostUsingGET | GET /rest/idx/selectPercentCost | 平均每病人总费用 DubheScreenApi.IdxControllerApi | selectRegistration2UsingGET | GET /rest/idx/selectRegistration2 | 门诊挂号人次2 DubheScreenApi.IdxControllerApi | selectRegistrationUsingGET | GET /rest/idx/selectRegistration | 门诊挂号人次 DubheScreenApi.IdxControllerApi | selectSurgicalOperationUsingGET | GET /rest/idx/selectSurgicalOperation | 住院手术 DubheScreenApi.LibControllerApi | selectByXdateKindsUsingGET | GET /rest/lib/selectByXdateKinds | selectByXdateKinds DubheScreenApi.LibControllerApi | selectByYearsKindsUsingGET | GET /rest/lib/selectByYearsKinds | selectByYearsKinds DubheScreenApi.LibControllerApi | testStandardArrayUsingGET | GET /rest/lib/testStandardArray | testStandardArray DubheScreenApi.LibControllerApi | testStandardUsingGET | GET /rest/lib/testStandard | testStandard DubheScreenApi.LocationControllerApi | listLocationCalendarTpUsingGET | GET /rest/location/listLocationCalendarTp | listLocationCalendarTp DubheScreenApi.LocationControllerApi | listLocationCalendarUsingGET | GET /rest/location/listLocationCalendar | listLocationCalendar DubheScreenApi.LocationControllerApi | listLocationsTpUsingGET | GET /rest/location/listLocationsTp | listLocationsTp DubheScreenApi.LocationControllerApi | listLocationsUsingGET | GET /rest/location/listLocations | listLocations DubheScreenApi.LoginControllerApi | refreshTokenUsingPOST | POST /rest/login/refresh/token | 登录接口 DubheScreenApi.MonitorStatusDemoControllerApi | fetchMonitorStatusPageSqlUsingGET | GET /rest/test/fetchMonitorStatusPageSql | 测试fetch分页sql DubheScreenApi.MonitorStatusDemoControllerApi | fetchMonitorStatusPageUsingGET | GET /rest/test/fetchMonitorStatusPage | 测试fetch分页nosql DubheScreenApi.MonitorStatusDemoControllerApi | fetchMonitorStatusUsingGET | GET /rest/test/fetchMonitorStatus | 测试fetch DubheScreenApi.ScreenConfigControllerApi | fetchAllScreenConfigUsingGET | GET /rest/screen/config/fetchAllScreenConfig | fetchAllScreenConfig DubheScreenApi.ScreenConfigControllerApi | fetchScreenConfigUsingGET | GET /rest/screen/config/fetchScreenConfig | fetchScreenConfig DubheScreenApi.ScreenConfigControllerApi | modifyScreenConfigUsingPATCH | PATCH /rest/screen/config/modifyScreenConfig | modifyScreenConfig DubheScreenApi.ScreenSettingControllerApi | cardUsingGET | GET /rest/setting/card | card DubheScreenApi.ScreenSettingControllerApi | cardUsingGET1 | GET /setting/card | card DubheScreenApi.ScreenSettingControllerApi | fetchByEnumUsingGET | GET /rest/setting/fetchByEnum | 测试参数枚举 DubheScreenApi.ScreenSettingControllerApi | fetchByEnumUsingGET1 | GET /setting/fetchByEnum | 测试参数枚举 DubheScreenApi.ScreenSettingControllerApi | timelineUsingGET | GET /rest/setting/timeline | timeline DubheScreenApi.ScreenSettingControllerApi | timelineUsingGET1 | GET /setting/timeline | timeline DubheScreenApi.SystemConfigControllerApi | fetchAllItemSettingUsingGET | GET /rest/systemConfig/fetchAllItemSetting | 获取全部配置项设置值 DubheScreenApi.SystemConfigControllerApi | fetchConfigByGroupCodeUsingGET | GET /rest/systemConfig/fetchConfigByGroupCode/{groupCode} | 获取配置组信息 DubheScreenApi.SystemConfigControllerApi | fetchItemSettingByItemCodeUsingGET | GET /rest/systemConfig/fetchItemSettingByItemCode/{itemCode} | 获取配置项设置值 DubheScreenApi.SystemConfigControllerApi | updateConfigByGroupSettingUsingPUT | PUT /rest/systemConfig/updateSystemConfigGroupSetting | 保存组配置信息 DubheScreenApi.SystemConfigControllerApi | updateDisableSystemConfigUsingPUT | PUT /rest/systemConfig/updateDisableSystemConfig/{itemCode} | 禁用配置项 DubheScreenApi.SystemConfigControllerApi | updateEnableSystemConfigUsingPUT | PUT /rest/systemConfig/updateEnableSystemConfig/{itemCode} | 启用配置项 DubheScreenApi.SystemConfigControllerApi | updateSystemConfigSettingUsingPUT | PUT /rest/systemConfig/updateSystemConfigItemSetting | 保存项配置信息 DubheScreenApi.UserControllerApi | currentUsingPOST | POST /rest/user/current | 获取当前用户信息 DubheScreenApi.UserControllerApi | querAllAvailableUsingGET | GET /rest/user/all | 获取当前用户信息
Documentation for Models
- DubheScreenApi.AuthResponse
- DubheScreenApi.Classes
- DubheScreenApi.CodeAddress
- DubheScreenApi.HosBean
- DubheScreenApi.IDXBean
- DubheScreenApi.IUser
- DubheScreenApi.LocationBean
- DubheScreenApi.ScreenConfig
- DubheScreenApi.SysGroupResource
- DubheScreenApi.SysSystemConfig
- DubheScreenApi.Users
- DubheScreenApi.ValBean
Documentation for Authorization
All endpoints do not require authorization.