hgateway

1.0.3 • Public • Published

hgateway

介绍

此项目用于hm-gateway网关服务接口调用。

// 使用示例
import hg from "hgateway"
let env = {
    H_GATEWAY: "https://xxx.xxx.cn/api/gateway",
    H_APPID: "88888888",
    H_SECRET: "********"
}
hg.gateway(env, "hm.user.query", {}).then((data) => {
    // 业务数据,执行业务处理逻辑
    console.log("ResponseData", data)
}).catch(err => {
    // 异常处理,如弹出提示框
    console.error("ResponseError",err.message)
})

Readme

Keywords

none

Package Sidebar

Install

npm i hgateway

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

7.32 kB

Total Files

5

Last publish

Collaborators

  • zingsono