This commit is contained in:
azw 2023-09-02 20:26:03 +08:00
parent ee26240f1a
commit a765aab3ff
4 changed files with 63 additions and 0 deletions

11
doc/admin/README.php Normal file
View File

@ -0,0 +1,11 @@
/**
* @api {GET} AA开发指南 AA开发指南
* @apiPermission none
* @apiGroup AA开发指南
* @apiVersion 0.0.1
* @apiSuccessExample {json} Success-Response:
* 所有的协议都可能携带award和property_chgaward用来显示获得的东西,propery_chg用来更新本地数据
*
*
*
*/

34
doc/admin/User.js Normal file
View File

@ -0,0 +1,34 @@
const common = require('./common');
exports.User = class {
const apis = [
{
'method': 'GET',
'name': 'login',
'desc': '用户登录',
'group': 'User',
'url': 'api/v1/user/login',
'params': [
['account', '', '账号'],
['passwd', '', '密码']
],
'response': [
new common.RspHead(),
]
},
{
'method': 'GET',
'name': 'info',
'desc': '用户登录',
'group': 'User',
'url': 'api/v1/user/info/:user_id',
'params': [
],
'response': [
new common.RspHead(),
]
},
];
};

15
doc/admin/common.js Normal file
View File

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

3
doc/admin/env.json Normal file
View File

@ -0,0 +1,3 @@
{
"name": "game2006admin"
}