|
|
# 查询作者
|
|
|
|
|
|
> 接口名: `/guang/author/getList
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> GET
|
|
|
|
|
|
### 无参
|
|
|
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```
|
|
|
<select id="selectCount" resultType="java.lang.Integer" >
|
|
|
select
|
|
|
IFNULL(count(1),0)
|
|
|
from author
|
|
|
</select>
|
|
|
<select id="selectList" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from author
|
|
|
order by create_time DESC limit #{offset},#{limit}
|
|
|
</select>
|
|
|
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200|操作成功| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"id": "1",
|
|
|
"orderBy": "1",
|
|
|
"status":"1"
|
|
|
"name":"推荐"
|
|
|
},
|
|
|
{
|
|
|
"id": "2",
|
|
|
"orderBy": "2",
|
|
|
"status":"1"
|
|
|
"name":"搭配"
|
|
|
},
|
|
|
{
|
|
|
"id": "3",
|
|
|
"orderBy": "3",
|
|
|
"status":"1"
|
|
|
"name":"潮人"
|
|
|
},
|
|
|
{
|
|
|
"id": "4",
|
|
|
"orderBy": "4",
|
|
|
"status":"1"
|
|
|
"name":"潮品"
|
|
|
},
|
|
|
{
|
|
|
"id": "5",
|
|
|
"orderBy": "5",
|
|
|
"status":"1"
|
|
|
"name":"专题"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|