@lixin-grpc/dos-aftersale-sheet-spray-center-bff-node-sdk
v0.2.0
Published
grpc-node 包
Downloads
1
Readme
@lixin-sdk/dos-aftersale-sheet-spray-center-bff-node-sdk
适用于 node 项目的 npm 包
版本号
当前版本号:0.2.0
node-usage
const { credentials: { createSsl } } = require("@grpc/grpc-js");
const { AftersaleSheetSpayCenterServiceClient } = require("@lixin-sdk/dos-aftersale-sheet-spray-center-bff-node-sdk/v1/svc_grpc_pb");
const { LoginUserRequest } = require("@lixin-sdk/dos-aftersale-sheet-spray-center-bff-node-sdk/v1/svc_pb");
// 创建实例
const client = new AftersaleSheetSpayCenterServiceClient(
"ssc-grpc.test.as.lixinchuxing.cn:443",
createSsl()
);
// 构建请求 request数据
const loginUserRequest = new LoginUserRequest()
loginUserRequest.setMobile('13883399922')
loginUserRequest.setSignature('xxxx')
loginUserRequest.setVerificationCode('123123')
client.loginUser(
loginUserRequest,
function (err, response) {
console.log("err", err);
console.log("response", response);
}
)