1.1.74 • Published 4 years ago

ll-cdc-api v1.1.74

Weekly downloads
54
License
Unlicense
Repository
-
Last release
4 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

4 years ago

1.1.74

4 years ago

1.1.73

4 years ago

1.1.72

4 years ago

1.1.71

4 years ago

1.1.67

4 years ago

1.1.66

4 years ago

1.1.69

4 years ago

1.1.68

4 years ago

1.1.65

5 years ago

1.1.64

5 years ago

1.1.63

5 years ago

1.1.62

5 years ago

1.1.61

5 years ago

1.1.59

5 years ago

1.1.60

5 years ago

1.1.58

5 years ago

1.1.56

5 years ago

1.1.57

5 years ago

1.1.55

5 years ago

1.1.54

5 years ago

1.1.52

5 years ago

1.1.53

5 years ago

1.1.51

5 years ago

1.1.50

5 years ago

1.1.49

5 years ago

1.1.48

5 years ago

1.1.47

5 years ago

1.1.45

5 years ago

1.1.46

5 years ago

1.1.44

5 years ago

1.1.43

5 years ago

1.1.42

5 years ago

1.1.41

5 years ago

1.1.40

5 years ago

1.1.39

5 years ago

1.1.38

5 years ago

1.1.37

5 years ago

1.1.35

5 years ago

1.1.34

5 years ago

1.1.28

5 years ago

1.1.30

5 years ago

1.1.23

5 years ago

1.1.33

5 years ago

1.1.22

5 years ago

1.1.32

5 years ago

1.1.21

5 years ago

1.1.31

5 years ago

1.1.20

5 years ago

1.1.27

5 years ago

1.1.26

5 years ago

1.1.25

5 years ago

1.1.24

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

0.0.1

5 years ago