This commit is contained in:
tanghc
2020-08-10 17:18:20 +08:00
parent 42979771ee
commit 160e57df0e
13 changed files with 580 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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