1./api/common/login **登录**,以下是必须的车字段,且是客户端传来的加密数据
~~~
'username|用户名' => 'require',
'password|密码' => 'require',
~~~
2./api/common/registered **注册**
~~~
'username|用户名' => 'require',
'password|密码' => 'require|confirm',
'name|昵称' => 'require',
~~~
3./api/common/logou **退出**,不需要传参
4./api/user/createMsg **添加评论**,支持@昵称+空格
~~~
'message' => 'require|length:1,120',
'content_id' => 'require|length:1,11|number',
~~~
5./api/index/carousel **轮播图**,参数:key,值就是不同轮播组的标识,不传参则默认调用默认轮播组的数据
6./api/index/cate **分类**,参数:key,值就是不同分类组的标识,不传参则默认调用默认分类组的数据,pid,值为上级分类的id,用来调用下级分类,不传则调用顶级分类
7./api/index/menu **菜单**,参数:key,值就是不同菜单组的标识,不传参则默认调用默认菜单组的数据,pid,值为上级菜单的id,用来调用下级菜单,不传则调用顶级菜单
8./api/index/content **内容列表**,参数:page,页码,rows每页数量,key,不同内容分类组的标识,不传则默认调用主分类组的内容。
9. /api/index/contentInfo **内容详情**,参数:id,内容的id
未完待续~