This commit is contained in:
azw 2023-09-03 09:51:17 +08:00
parent 0ca1cb8d08
commit 37a0b58d53
3 changed files with 46 additions and 36 deletions

View File

@ -1,8 +1,9 @@
const common = require('./common'); const common = require('./common');
exports.User = class { module.exports = class {
const apis = [ constructor() {
this.apis = [
{ {
'method': 'GET', 'method': 'GET',
'name': 'login', 'name': 'login',
@ -30,5 +31,6 @@ exports.User = class {
] ]
}, },
]; ];
}
}; };

View File

@ -1,15 +1,19 @@
exports.ReqHead = class { exports.ReqHead = class {
const fields = [ constructor() {
this.fields = [
]; ];
}
}; };
exports.RspHead = class { exports.RspHead = class {
const fields = [ constructor() {
this.fields = [
['errcode', 0, '错误码/0 成功1 失败'], ['errcode', 0, '错误码/0 成功1 失败'],
['errmsg', '', '错误描述'], ['errmsg', '', '错误描述'],
]; ];
}
}; };

View File

@ -25,7 +25,11 @@ class Doc
} }
const files = fs.readdirSync('./', {encoding:'utf8', withFileTypes:true}); const files = fs.readdirSync('./', {encoding:'utf8', withFileTypes:true});
files.forEach((item) => { files.forEach((item) => {
console.log(item); if (item.name.slice(-3) == '.js' &&
item.name != 'common.js') {
//console.log(require('./' + item.name.slice(0, -3)));
console.log(require('/home/azw/pub/game2006go/doc/admin/User'));
}
}); });
} }