Files
SOP/sop-sdk/sdk-nodejs-axios/request/StoryGetRequest.js
2021-04-14 10:21:38 +08:00

20 lines
409 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 BaseRequest = require('../common/BaseRequest');
const RequestType = require('../common/RequestType');
/**
* 创建一个请求类继承BaseRequest重写三个函数
*/
module.exports = class StoryGetRequest extends BaseRequest {
getMethod() {
return 'story.get';
}
getVersion() {
return '1.0';
}
getRequestType() {
return RequestType.GET;
}
};