mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
20 lines
413 B
JavaScript
Executable File
20 lines
413 B
JavaScript
Executable File
const BaseRequest = require('../common/BaseRequest');
|
||
const RequestType = require('../common/RequestType');
|
||
|
||
/**
|
||
* 创建一个请求类,继承BaseRequest,重写三个函数
|
||
*/
|
||
module.exports = class ProductGetRequest extends BaseRequest {
|
||
getMethod() {
|
||
return 'product.get';
|
||
}
|
||
|
||
getVersion() {
|
||
return '1.0';
|
||
}
|
||
|
||
getRequestType() {
|
||
return RequestType.GET;
|
||
}
|
||
};
|