1.1.74 • Published 3 years ago

ll-cdc-api v1.1.74

Weekly downloads
54
License
Unlicense
Repository
-
Last release
3 years ago

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

ClassMethodHTTP requestDescription
LlCdcApi.CdcReportControllerApiaddCdcPOST /api/cdc/add保存报卡
LlCdcApi.CdcReportControllerApiaddCdcMultiPOST /api/cdc/addMulti/{immediately}保存报卡
LlCdcApi.CdcReportControllerApicdcsettingGET /api/cdc/setting获取CDC设置
LlCdcApi.CdcReportControllerApidetailCdcGET /api/cdc/detail/{id}获取CDC请求详情
LlCdcApi.CdcReportControllerApilistCdcGET /api/cdc/list获取CDC全部上报请求
LlCdcApi.CdcReportControllerApiremoveCdcDELETE /api/cdc/delete/{id}撤销报卡
LlCdcApi.CdcReportControllerApireportCdcPOST /api/cdc/report/{id}上报CDC
LlCdcApi.CdcReportControllerApireportImmediatelyGET /api/cdc/report/immediately批量报卡
LlCdcApi.CdcReportControllerApitestDetailCdcGET /api/cdc/testDetailCdc/{id}获取CDC请求详情
LlCdcApi.CdcReportControllerApitestPublishUsingGETGET /api/cdc/report/testPublishtestPublish
LlCdcApi.CdcReportControllerApivpnstatusGET /api/cdc/vpnstatus获取CDC VPN状态
LlCdcApi.LoginControllerApiloginPOST /api/user/login登录
LlCdcApi.RecordControllerApifetchListRecordsGET /api/record/fetchListRecords获取操作记录全部信息
LlCdcApi.ReportControllerApiaddExposeReportUsingPOSTPOST /api/cases/exposeReportaddExposeReport
LlCdcApi.ReportControllerApiaddGatherReportUsingPOSTPOST /api/cases/gatherReportaddGatherReport
LlCdcApi.ReportControllerApiaddReportUsingPOSTPOST /api/cases/reportaddReport
LlCdcApi.ReportControllerApicancelReportUsingPOSTPOST /api/cases/cancelReportcancelReport
LlCdcApi.ReportControllerApideleteGatherReportUsingPOSTPOST /api/cases/deleteGatherReportdeleteGatherReport
LlCdcApi.ReportControllerApideleteReportUsingPOSTPOST /api/cases/deleteReportdeleteReport
LlCdcApi.ReportControllerApilistExposeReportsUsingGETGET /api/cases/exposeReportslistExposeReports
LlCdcApi.ReportControllerApilistGatherReportsRangeUsingGETGET /api/cases/gatherReports/rangelistGatherReportsRange
LlCdcApi.ReportControllerApilistGatherReportsUsingGETGET /api/cases/gatherReportslistGatherReports
LlCdcApi.ReportControllerApilistReportsUsingGETGET /api/cases/reportslistReports
LlCdcApi.ReportControllerApirecallReportUsingPOSTPOST /api/cases/recallReportrecallReport
LlCdcApi.ReportControllerApireportReportUsingPOSTPOST /api/cases/reportReportreportReport
LlCdcApi.ReportControllerApisubmitReportUsingPOSTPOST /api/cases/submitsubmitReport
LlCdcApi.XhlReportControllerApiaddXhlPOST /api/xhl/add保存报卡
LlCdcApi.XhlReportControllerApiaddXhlMultiPOST /api/xhl/addMulti/{immediately}保存报卡
LlCdcApi.XhlReportControllerApidetailXhlGET /api/xhl/detail/{id}获取现换率请求详情
LlCdcApi.XhlReportControllerApilistXhlGET /api/xhl/list获取现换率全部上报请求
LlCdcApi.XhlReportControllerApiremoveXhlDELETE /api/xhl/delete/{id}撤销报卡
LlCdcApi.XhlReportControllerApireportXhlPOST /api/xhl/report/{id}上报现换率

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.1.70

3 years ago

1.1.74

3 years ago

1.1.73

3 years ago

1.1.72

3 years ago

1.1.71

3 years ago

1.1.67

3 years ago

1.1.66

3 years ago

1.1.69

3 years ago

1.1.68

3 years ago

1.1.65

3 years ago

1.1.64

3 years ago

1.1.63

3 years ago

1.1.62

3 years ago

1.1.61

3 years ago

1.1.59

3 years ago

1.1.60

3 years ago

1.1.58

4 years ago

1.1.56

4 years ago

1.1.57

4 years ago

1.1.55

4 years ago

1.1.54

4 years ago

1.1.52

4 years ago

1.1.53

4 years ago

1.1.51

4 years ago

1.1.50

4 years ago

1.1.49

4 years ago

1.1.48

4 years ago

1.1.47

4 years ago

1.1.45

4 years ago

1.1.46

4 years ago

1.1.44

4 years ago

1.1.43

4 years ago

1.1.42

4 years ago

1.1.41

4 years ago

1.1.40

4 years ago

1.1.39

4 years ago

1.1.38

4 years ago

1.1.37

4 years ago

1.1.35

4 years ago

1.1.34

4 years ago

1.1.28

4 years ago

1.1.30

4 years ago

1.1.23

4 years ago

1.1.33

4 years ago

1.1.22

4 years ago

1.1.32

4 years ago

1.1.21

4 years ago

1.1.31

4 years ago

1.1.20

4 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

0.0.1

4 years ago