|
|
# 获取作者列表接口
|
|
|
|
|
|
> 接口名: `/guang/article/getAuthorList`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> GET
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|idName|String|8168248|作者ID或姓名|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByIdName" resultMap="IdNameMap">
|
|
|
select uid, username from author
|
|
|
<if test="idName != null and idName != ''">
|
|
|
where uid like CONCAT('%',#{idName},'%')
|
|
|
or username like CONCAT('%',#{idName},'%')
|
|
|
</if>
|
|
|
order by create_time desc limit #{limit}
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 操作成功| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"操作成功",
|
|
|
"data": [
|
|
|
{
|
|
|
"id": "8168248",
|
|
|
"text":"DREAMER"
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|