getList.md 1.39 KB

查询资讯分类资源

接口名: /guang/article/sort/getList

方法

GET

无参

请求示例 http://172.16.6.157:8080/yohobuy-platform-web/guang/article/sort/getList

对应SQL的操作库表

<select id="selectAllSortList" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from article_sort
    order by order_by DESC
</select>

错误编码


错误码code 消息 说明
200 操作成功

返回

{
    "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":"专题"
        }
    ]
}