1.0.0 • Published 6 years ago

prepay-service-api v1.0.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
6 years ago

prepay-service-api

PrepayServiceApi - JavaScript client for prepay-service-api RESTful风格的接口文档,内容详细,极大的减少了前后端的沟通成本,同时确保代码与文档保持高度一致,极大的减少维护文档的时间。 This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit http://www.jkjn.cn/

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 prepay-service-api --save

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 PrepayServiceApi = require('prepay-service-api');

var api = new PrepayServiceApi.HandleDataFromCollectorControllerApi()

var opts = { 
  'json': "json_example" // {String} json
};
api.commandJKJNCallbackUsingPOST(opts).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

ClassMethodHTTP requestDescription
PrepayServiceApi.HandleDataFromCollectorControllerApicommandJKJNCallbackUsingPOSTPOST /xml/meter/command/callback/jkjn国家电网,json格式
PrepayServiceApi.HandleDataFromCollectorControllerApicommandStateGridCallbackUsingPOSTPOST /xml/meter/command/callback/stateGrid国家电网,json格式
PrepayServiceApi.HandleDataFromCollectorControllerApireceiveJKJNXMLUsingPOSTPOST /xml/meter/data/original/jkjnJKJN xml格式
PrepayServiceApi.HandleDataFromCollectorControllerApireceiveStateGridXMLUsingPOSTPOST /xml/meter/data/original/stateGrid国家电网,json格式
PrepayServiceApi.PpsAuthRolePermissionRefApiaddRolePermissionRefPOST /ppsAuthRolePermissionRef/addRolePermissionRef新增角色、角色与权限关联
PrepayServiceApi.PpsAuthRolePermissionRefApidisableRolePermissionRefPUT /ppsAuthRolePermissionRef/disableRolePermissionRef/{roleId}禁用/启用角色、角色与权限关联
PrepayServiceApi.PpsAuthRolePermissionRefApigetRoleListGET /ppsAuthRolePermissionRef/getRoleList查询角色列表
PrepayServiceApi.PpsAuthRolePermissionRefApigetRolePermissionRefListGET /ppsAuthRolePermissionRef/getRolePermissionRefList查询角色、角色与权限关联列表
PrepayServiceApi.PpsAuthRolePermissionRefApiupdateRolePermissionRefPUT /ppsAuthRolePermissionRef/updateRolePermissionRef/{roleId}修改角色、角色与权限关联
PrepayServiceApi.PpsAuthUserApiaddAuthUserPOST /ppsAuthUser/addAuthUser新增管理员
PrepayServiceApi.PpsAuthUserApidisableAuthUserPUT /ppsAuthUser/disableAuthUser/{authUserId}禁用/启用管理员
PrepayServiceApi.PpsAuthUserApiupdateAuthUserInfoPUT /ppsAuthUser/updateAuthUserInfo/{authUserId}修改管理员信息
PrepayServiceApi.PpsAuthUserApiupdateAuthUserPasswordPUT /ppsAuthUser/updateAuthUserPassword/{authUserId}修改管理员密码
PrepayServiceApi.PpsConfigPriceTemplateApiaddPriceTemplatePOST /ppsConfigPriceTemplate/addPriceTemplate新增价格模板
PrepayServiceApi.PpsConfigPriceTemplateApidisablePriceTemplatePUT /ppsConfigPriceTemplate/disablePriceTemplate/{templateId}禁用/启用价格模板
PrepayServiceApi.PpsConfigPriceTemplateApigetPriceTemplateListGET /ppsConfigPriceTemplate/getPriceTemplateList查询价格模板List
PrepayServiceApi.PpsConfigPriceTemplateApiupdatePriceTemplatePUT /ppsConfigPriceTemplate/updatePriceTemplate/{templateId}修改价格模板
PrepayServiceApi.PpsDataMeterOriginalApigetMeterOriginalDataGET /meter/original/data获取表计读数
PrepayServiceApi.PpsHardwareCollectorApideleteCollectorByIdsDELETE /collector/batch/delete/{ids}批量删除采集器
PrepayServiceApi.PpsHardwareCollectorApigetCollectorByIdGET /collector/detail/{id}唯一查
PrepayServiceApi.PpsHardwareCollectorApigetCollectorPageListGET /collector/list采集器-列表
PrepayServiceApi.PpsHardwareCollectorApiinsertCollectorPOST /collector/add新增
PrepayServiceApi.PpsHardwareCollectorApiupdateCollectorByIdPUT /collector/update更新
PrepayServiceApi.PpsHardwareCollectorSyncApigetCollectorSyncPageListGET /collectorSync/list记录-列表
PrepayServiceApi.PpsHardwareMeterApideleteMeterByIdsDELETE /meter/batch/delete/{ids}批量删除采集器
PrepayServiceApi.PpsHardwareMeterApigetMeterByIdGET /meter/detail/{id}唯一查
PrepayServiceApi.PpsHardwareMeterApigetMeterPageListGET /meter/list采集器-列表
PrepayServiceApi.PpsHardwareMeterApiinsertMeterPOST /meter/add新增
PrepayServiceApi.PpsHardwareMeterApiupdateMeterByIdPUT /meter/update更新
PrepayServiceApi.PpsHardwareMeterChangedApigetMeterChangePageListGET /meterChanged/list记录-列表
PrepayServiceApi.PpsHardwareMeterParamApideleteMeterParamByIdsDELETE /meterParam/batch/delete/{ids}批量删除采集器
PrepayServiceApi.PpsHardwareMeterParamApigetMeterParamByIdGET /meterParam/detail/{id}唯一查
PrepayServiceApi.PpsHardwareMeterParamApigetMeterParamPageListGET /meterParam/list采集器-列表
PrepayServiceApi.PpsHardwareMeterParamApiinsertMeterParamPOST /meterParam/add新增
PrepayServiceApi.PpsHardwareMeterParamApiupdateMeterParamByIdPUT /meterParam/update更新
PrepayServiceApi.PpsLocationCompanyApigetEnergylineListByCompanyIdGET /ppsLocationCompany/getEnergylineListByCompanyId查询公司下线路列表
PrepayServiceApi.PpsLocationCompanyApigetFeeCodeListGET /ppsLocationCompany/getFeeCodeList查询收费项目List
PrepayServiceApi.PpsLocationCompanyApigetZoneareaListByCompanyIdGET /ppsLocationCompany/getZoneareaListByCompanyId查询公司下台区列表
PrepayServiceApi.PpsLocationDetailpartApiaddDetailpartPOST /ppsLocationDetailpart/addDetailpart新增部位
PrepayServiceApi.PpsLocationDetailpartApigetDetailpartListGET /ppsLocationDetailpart/getDetailpartList/{zoneareaId}根据台区查询部位List
PrepayServiceApi.PpsLocationDetailpartApiupdateDetailpartPUT /ppsLocationDetailpart/updateDetailpart修改部位
PrepayServiceApi.PpsLocationEnergylineApiaddEnergylinePOST /ppsLocationEnergyline/addEnergyline新增条线
PrepayServiceApi.PpsLocationEnergylineApigetZoneareaListByEnergylineIdGET /ppsLocationEnergyline/getZoneareaListByEnergylineId/{energylineId}查询条线下台区列表
PrepayServiceApi.PpsLocationEnergylineApisetEnergylineMainPowerMeterPUT /ppsLocationEnergyline/setEnergylineMainPowerMeter/{energylineId}设置条线总表
PrepayServiceApi.PpsLocationEnergylineApiupdateEnergylineInfoPUT /ppsLocationEnergyline/updateEnergylineInfo/{energylineId}修改条线信息
PrepayServiceApi.PpsLocationZoneareaApiaddZoneareaPOST /ppsLocationZonearea/addZonearea新增台区
PrepayServiceApi.PpsLocationZoneareaApisetZoneareaMainPowerMeterPUT /ppsLocationZonearea/setZoneareaMainPowerMeter/{zoneareaId}设置台区总表
PrepayServiceApi.PpsLocationZoneareaApiupdateZoneareaInfoPUT /ppsLocationZonearea/updateZoneareaInfo/{zoneareaId}修改台区信息
PrepayServiceApi.PpsLoginApiexitPOST /ppsLogin/exit退出
PrepayServiceApi.PpsLoginApiloginPOST /ppsLogin/login登录
PrepayServiceApi.PpsPayBillApigetPayBillDetailListGET /ppsPayBill/getPayBillDetailList/{billTotalId}查询明细账单
PrepayServiceApi.PpsPayBillApigetPayBillTotalListGET /ppsPayBill/getPayBillTotalList查询汇总账单
PrepayServiceApi.PpsPayBillApimanualGenerateBillPOST /ppsPayBill/manualGenerateBill手工生成账单
PrepayServiceApi.PpsPayUserApiaddPayUserPOST /ppsPayUser/addPayUser新增付费用户
PrepayServiceApi.PpsPayUserApidisablePayUserPUT /ppsPayUser/disablePayUser/{payUserId}禁用/启用付费用户
PrepayServiceApi.PpsPayUserApigetPayUserListGET /ppsPayUser/getPayUserList查询付费用户list
PrepayServiceApi.PpsPayUserApiupdatePayUserPUT /ppsPayUser/updatePayUser/{payUserId}修改付费用户
PrepayServiceApi.PpsPayUserRechargeApigetPayUserRechargeListGET /ppsPayUserRecharge/getPayUserRechargeList/{payUserId}查询充值记录
PrepayServiceApi.PpsPayUserRechargeApipcRechargePOST /ppsPayUserRecharge/pcRechargePC端充值
PrepayServiceApi.PpsPayUserRemainingAmountApigetPayUserRemainingAmountListGET /ppsPayUserRemainingAmount/getPayUserRemainingAmountList/{payUserId}查询余额变更记录

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.