Skip to content

标签

订阅标签

POST /tag/{id}/members

权限

  • 需要认证

请求参数

名称位置类型必选说明
idpathinttrueid

响应

json
{
    "success": true
}

取消订阅

POST /tag/{id}/members

权限

  • 需要认证

请求参数

名称位置类型必选说明
idpathinttrueid

响应

json
{
    "success": true
}

创建标签

POST /tags

权限

  • 需要认证

请求参数

名称位置类型必选说明
namebodystringtrue名称

响应

json
{
    "success": true
}

获取标签列表

GET /tags

权限

  • 需要认证

请求参数

名称位置类型必选说明
keywordquerystringfalse搜索词
isSubscribequerystringfalse是否只查询我订阅的
offsetquerystringfalse分页偏移值, 默认0
limitquerystringfalse每一页数量, 默认10

响应

json
{
    "data": [
        {
            "id": "1",
            "name": "默认标签",
            "knowledgeCount": 11,
            "isSubscribe": 1
        },
        {
            "id": "2",
            "name": "实习生",
            "knowledgeCount": 7,
            "isSubscribe": 0
        },
        {
            "id": "3",
            "name": "初级律师",
            "knowledgeCount": 8,
            "isSubscribe": 0
        },
        {
            "id": "4",
            "name": "高级律师",
            "knowledgeCount": 5,
            "isSubscribe": 0
        },
        {
            "id": "5",
            "name": "中级律师",
            "knowledgeCount": 3,
            "isSubscribe": 0
        },
        {
            "id": "6",
            "name": "艺术中心",
            "knowledgeCount": 8,
            "isSubscribe": 0
        },
        {
            "id": "7",
            "name": "证券业务部",
            "knowledgeCount": 6,
            "isSubscribe": 0
        },
        {
            "id": "8",
            "name": "公司业务部",
            "knowledgeCount": 3,
            "isSubscribe": 0
        },
        {
            "id": "9",
            "name": "金融资本部",
            "knowledgeCount": 0,
            "isSubscribe": 0
        },
        {
            "id": "10",
            "name": "商务合规部",
            "knowledgeCount": 0,
            "isSubscribe": 0
        }
    ],
    "paging": {
        "total": 47,
        "offset": 0,
        "limit": 10
    }
}

参数说明

名称类型必选约束说明
» idinteger(int64)falsenonenone
» namestringfalsenonenone
» knowledgeCountintfalsenone被多少知识应用
» isSubscribeintfalsenone是否订阅