ll-cdc-api

1.1.74 • Public • Published

ll-cdc-api

LlCdcApi - JavaScript client for ll-cdc-api "用于服务CDC/CFSA/XHL REPORT接口开发"
This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.1.69
  • Package version: 1.1.69
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit www.lilianinfo.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 ll-cdc-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 ll-cdc-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 LlCdcApi = require('ll-cdc-api');


var api = new LlCdcApi.CdcReportControllerApi()
var bean = new LlCdcApi.CdcReport(); // {CdcReport} bean
api.addCdc(bean).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:8080

Class Method HTTP request Description
LlCdcApi.CdcReportControllerApi addCdc POST /api/cdc/add 保存报卡
LlCdcApi.CdcReportControllerApi addCdcMulti POST /api/cdc/addMulti/{immediately} 保存报卡
LlCdcApi.CdcReportControllerApi cdcsetting GET /api/cdc/setting 获取CDC设置
LlCdcApi.CdcReportControllerApi detailCdc GET /api/cdc/detail/{id} 获取CDC请求详情
LlCdcApi.CdcReportControllerApi listCdc GET /api/cdc/list 获取CDC全部上报请求
LlCdcApi.CdcReportControllerApi removeCdc DELETE /api/cdc/delete/{id} 撤销报卡
LlCdcApi.CdcReportControllerApi reportCdc POST /api/cdc/report/{id} 上报CDC
LlCdcApi.CdcReportControllerApi reportImmediately GET /api/cdc/report/immediately 批量报卡
LlCdcApi.CdcReportControllerApi testDetailCdc GET /api/cdc/testDetailCdc/{id} 获取CDC请求详情
LlCdcApi.CdcReportControllerApi testPublishUsingGET GET /api/cdc/report/testPublish testPublish
LlCdcApi.CdcReportControllerApi vpnstatus GET /api/cdc/vpnstatus 获取CDC VPN状态
LlCdcApi.LoginControllerApi login POST /api/user/login 登录
LlCdcApi.RecordControllerApi fetchListRecords GET /api/record/fetchListRecords 获取操作记录全部信息
LlCdcApi.ReportControllerApi addExposeReportUsingPOST POST /api/cases/exposeReport addExposeReport
LlCdcApi.ReportControllerApi addGatherReportUsingPOST POST /api/cases/gatherReport addGatherReport
LlCdcApi.ReportControllerApi addReportUsingPOST POST /api/cases/report addReport
LlCdcApi.ReportControllerApi cancelReportUsingPOST POST /api/cases/cancelReport cancelReport
LlCdcApi.ReportControllerApi deleteGatherReportUsingPOST POST /api/cases/deleteGatherReport deleteGatherReport
LlCdcApi.ReportControllerApi deleteReportUsingPOST POST /api/cases/deleteReport deleteReport
LlCdcApi.ReportControllerApi listExposeReportsUsingGET GET /api/cases/exposeReports listExposeReports
LlCdcApi.ReportControllerApi listGatherReportsRangeUsingGET GET /api/cases/gatherReports/range listGatherReportsRange
LlCdcApi.ReportControllerApi listGatherReportsUsingGET GET /api/cases/gatherReports listGatherReports
LlCdcApi.ReportControllerApi listReportsUsingGET GET /api/cases/reports listReports
LlCdcApi.ReportControllerApi recallReportUsingPOST POST /api/cases/recallReport recallReport
LlCdcApi.ReportControllerApi reportReportUsingPOST POST /api/cases/reportReport reportReport
LlCdcApi.ReportControllerApi submitReportUsingPOST POST /api/cases/submit submitReport
LlCdcApi.XhlReportControllerApi addXhl POST /api/xhl/add 保存报卡
LlCdcApi.XhlReportControllerApi addXhlMulti POST /api/xhl/addMulti/{immediately} 保存报卡
LlCdcApi.XhlReportControllerApi detailXhl GET /api/xhl/detail/{id} 获取现换率请求详情
LlCdcApi.XhlReportControllerApi listXhl GET /api/xhl/list 获取现换率全部上报请求
LlCdcApi.XhlReportControllerApi removeXhl DELETE /api/xhl/delete/{id} 撤销报卡
LlCdcApi.XhlReportControllerApi reportXhl POST /api/xhl/report/{id} 上报现换率

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

Readme

Keywords

none

Package Sidebar

Install

npm i ll-cdc-api

Weekly Downloads

1

Version

1.1.74

License

Unlicense

Unpacked Size

304 kB

Total Files

34

Last publish

Collaborators

  • dalang81