1
This commit is contained in:
parent
ee26240f1a
commit
a765aab3ff
11
doc/admin/README.php
Normal file
11
doc/admin/README.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* @api {GET} AA开发指南 AA开发指南
|
||||||
|
* @apiPermission none
|
||||||
|
* @apiGroup AA开发指南
|
||||||
|
* @apiVersion 0.0.1
|
||||||
|
* @apiSuccessExample {json} Success-Response:
|
||||||
|
* 所有的协议都可能携带award和property_chg,award用来显示获得的东西,propery_chg用来更新本地数据
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
34
doc/admin/User.js
Normal file
34
doc/admin/User.js
Normal 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
15
doc/admin/common.js
Normal 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
3
doc/admin/env.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"name": "game2006admin"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user