Skip to content

Commit

Permalink
userModel去掉storeId,token属性(表有变化);
Browse files Browse the repository at this point in the history
增加角色相关API;
修正src/Api目录下的类文件如有驼峰时,api访问无法正常访问的bug;
去掉Menu的action、controller、parameter属性,增加url属性(表有变化);
  • Loading branch information
Donny committed Dec 27, 2017
1 parent d5a2d3c commit d414304
Show file tree
Hide file tree
Showing 21 changed files with 522 additions and 209 deletions.
2 changes: 1 addition & 1 deletion api-json-sample/system/common.batchrequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"接口批量操作",
"description":"批量执行多个API接口",
"namespace":"Kuga\\Api\\Console",
"method":"common.batchRequest",
"method":"Common.batchRequest",
"accessLevel": 0,
"disableFilterParams":true,
"request":[]
Expand Down
2 changes: 1 addition & 1 deletion api-json-sample/system/common.osssetting.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"取得OSS的配置",
"description":"取得OSS的配置",
"namespace":"Kuga\\Api",
"method":"common.ossSetting",
"method":"Common.ossSetting",
"accessLevel": 0,
"request":[],
"response":{
Expand Down
2 changes: 1 addition & 1 deletion api-json-sample/system/common.smscode.send.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"短信验证码",
"description":"发送短信验证码",
"namespace":"Kuga\\Api",
"method":"common.sendSmsVerifyCode",
"method":"Common.sendSmsVerifyCode",
"accessLevel": 0,
"disableFilterParams":true,
"request":[{
Expand Down
22 changes: 3 additions & 19 deletions api-json-sample/system/menu.create.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"创建菜单",
"description":"创建菜单",
"namespace":"Kuga\\Api\\Console",
"method":"system.createMenu",
"method":"System.createMenu",
"accessLevel": 1,
"request":[
{
Expand All @@ -23,26 +23,10 @@
"name":"父级菜单ID"
},
{
"param":"controller",
"param":"url",
"required":true,
"default":"",
"name":"controller名",
"type":"String",
"description":""
},
{
"param":"action",
"required":true,
"default":"",
"name":"action名",
"type":"String",
"description":""
},
{
"param":"parameter",
"required":false,
"default":"",
"name":"参数",
"name":"url网址",
"type":"String",
"description":""
},
Expand Down
2 changes: 1 addition & 1 deletion api-json-sample/system/menu.delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"删除菜单",
"description":"删除菜单,子菜单会被一起删除",
"namespace":"Kuga\\Api\\Console",
"method":"system.deleteMenu",
"method":"System.deleteMenu",
"accessLevel": 1,
"request":[
{
Expand Down
17 changes: 4 additions & 13 deletions api-json-sample/system/menu.list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"菜单列表",
"description":"获取菜单列表",
"namespace":"Kuga\\Api\\Console",
"method":"system.listMenu",
"method":"System.listMenu",
"accessLevel": 2,
"request":[
{
Expand Down Expand Up @@ -31,16 +31,7 @@
"list":{
"type":"Array",
"responseItem":{
"action":{
"type":"String",
"sample":"add",
"description":"action名称"
},
"controller":{
"type":"String",
"sample":"user",
"description":"controller名称"
},

"display":{
"type":"Integer",
"sample":1,
Expand All @@ -61,10 +52,10 @@
"sample":0,
"description":"菜单父级ID"
},
"parameter":{
"url":{
"type":"String",
"sample":"",
"description":"菜单菜单列"
"description":"菜单网址"
},
"sortByWeight":{
"type":"Integer",
Expand Down
24 changes: 4 additions & 20 deletions api-json-sample/system/menu.update.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description":"菜单修改",
"namespace":"Kuga\\Api\\Console",
"path":"./ApiV3/Console",
"method":"system.updateMenu",
"method":"System.updateMenu",
"accessLevel": 1,
"request":[
{
Expand All @@ -31,33 +31,17 @@
"name":"父级菜单ID"
},
{
"param":"controller",
"param":"url",
"required":true,
"default":"",
"name":"controller名",
"type":"String",
"description":""
},
{
"param":"action",
"required":true,
"default":"",
"name":"action名",
"type":"String",
"description":""
},
{
"param":"parameter",
"required":false,
"default":"",
"name":"参数",
"name":"url地址",
"type":"String",
"description":""
},
{
"param":"display",
"required":false,
"default":"1",
"default":"0",
"name":"是否显示",
"type":"Integer",
"description":""
Expand Down
2 changes: 1 addition & 1 deletion api-json-sample/user/user.create.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"创建用户",
"description":"创建后台用户账号",
"namespace":"Kuga\\Api\\Console",
"method":"user.create",
"method":"User.create",
"accessLevel": 1,
"request":[
{
Expand Down
2 changes: 1 addition & 1 deletion api-json-sample/user/user.delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"删除用户",
"description":"删除后台用户账号",
"namespace":"Kuga\\Api\\Console",
"method":"user.delete",
"method":"User.delete",
"accessLevel": 1,
"request":[
{
Expand Down
6 changes: 2 additions & 4 deletions api-json-sample/user/user.list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
"name":"获取用户列表",
"description":"后台用户账号列表",
"namespace":"Kuga\\Api\\Console",
"method":"user.userList",
"method":"User.userList",
"accessLevel": 1,
"request":[
{
"param":"page",
"required":false,
"default":1,
"name":"页码",
"type":"Integer",
"description":"页码"
},
Expand All @@ -19,8 +18,7 @@
"required":false,
"default":10,
"type":"Integer",
"description":"每页显示条数",
"name":"每页显示条数"
"description":"每页显示条数"
}
],
"response":{
Expand Down
2 changes: 1 addition & 1 deletion api-json-sample/user/user.login.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name":"用户登录",
"description":"",
"namespace":"Kuga\\Api\\Console",
"method":"user.login",
"method":"User.login",
"accessLevel": 0,
"request":[
{
Expand Down
10 changes: 3 additions & 7 deletions api-json-sample/user/user.update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
"name":"修改用户",
"description":"修改用户信息",
"namespace":"Kuga\\Api\\Console",
"method":"user.update",
"method":"User.update",
"accessLevel": 1,
"request":[
{
"param":"uid",
"required":true,
"default":"",
"name":"用户ID",
"type":"Integer",
"description":"用户ID"
},
{
"param":"username",
"required":true,
"default":"",
"name":"用户名",
"type":"String",
"description":"描述"
},
Expand All @@ -27,16 +25,14 @@
"required":false,
"default":"",
"type":"String",
"description":"密码",
"name":"密码"
"description":"密码"
},
{
"param":"mobile",
"required":true,
"default":"",
"type":"String",
"description":"手机号",
"name":"手机号"
"description":"手机号"
}
],
"response":{
Expand Down
Loading

0 comments on commit d414304

Please sign in to comment.