1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- # 注册api
- # api仅有三种类型:get、update、delete
- return array
- (
- 'vote.save' => array
- (
- 'name' => '用户点赞',
- 'request' => array
- (
- 'id' => '数据来源id',
- 'table' => '数据来源类型',
- ),
- 'response' => array
- (
- 'state' => '状态',
- ),
- 'order' => 100,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
-
- 'review.save' => array
- (
- 'name' => '用户评论',
- 'request' => array
- (
- 'post' => '主题id',
- 'content' => '内容',
- ),
- 'response' => array
- (
- 'state' => '状态',
- ),
- 'order' => 99,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
-
- 'posts.save' => array
- (
- 'name' => '发布主题',
- 'request' => array
- (
- 'post' => '主题id',
- 'cate' => '主题分类',
- 'name' => '主题名称',
- 'content' => '主题内容',
- ),
- 'response' => array
- (
- 'state' => '状态',
- ),
- 'order' => 98,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
- );
|