Files
SOP/sop-sdk/sdk-nodejs/request/StoryGetRequest.js
Changeden e1b860c75a 优化sdk-nodejs以下功能:
1、新增同步请求方式(executeSync、executeTokenSync);
2、优化请求异常中断问题,返回502错误码;
3、优化签名方法;
2021-04-12 15:42:52 +08:00

23 lines
548 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const {Class} = require('../common/Class');
const {RequestType} = require('../common/RequestType');
const {BaseRequest} = require('./BaseRequest');
/**
* 创建一个请求类继承BaseRequest重写三个函数
*/
const StoryGetRequest = Class.create({
getMethod: function () {
return 'story.get';
},
getVersion: function () {
return '1.0';
},
getRequestType: function () {
return RequestType.GET;
}
}, BaseRequest); // 继承BaseRequest
module.exports.StoryGetRequest = StoryGetRequest;