BASEURL: http://didi-gz5.jiaoyou365.com ##### 获取或搜索系统词组和作品词组 URL: baseUrl:19082/phrase/search?projectId={作品ID}&searchText={搜索的文本} Method: GET Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": [ { "phraseName": "品牌", "updatePhraseName": null, "pos": "名词", "labels": "", "phraseRemarks": "", "content": null, "type": 1, "highPerformance": null, "projectId": null }, { "phraseName": "数词", "updatePhraseName": null, "pos": "数词", "labels": "", "phraseRemarks": "", "content": null, "type": 1, "highPerformance": null, "projectId": null } ] } ``` #### 获取单个词组内容 URL: baseUrl:19082/phrase?phraseName={词组名称}&type={类型}&projectId={作品ID} Method: GET Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | ``` 参数说明: type: 0->系统词组, 1->用户词组 ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": [ "美国", "意大利" ] } ``` #### 插入作品词组 URL: baseUrl:19082/phrase/work Method: POST Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | RequestBody: ``` { "phraseName": "进峰测试1", "pos": "名词", "labels": "哈哈", "content": "a+b+c", "type": 0, "highPerformance": true, "phraseRemarks":"进峰测试", "projectId": 1693 } ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": null } ``` #### 更新作品词组 URL: baseUrl:19082/phrase/work Method: PUT Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | RequestBody: ``` ``` ResponseBody: ``` SUCCESS: { } ``` #### 获取作品词组 URL: baseUrl:19082/phrase/work/{词组名称}?projectId={作品ID} Method: GET Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | RequestBody: ``` ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": { "phraseName": "进峰测试3", "pos": "名词", "labels": "哈哈", "phraseRemarks": "进峰测试", "content": "a+b+c+d", "type": null, "highPerformance": true, "projectId": 1693 } } ``` #### 删除作品词组 URL: baseUrl:19082/phrase/work/{词组名称}?projectId={作品ID} Method: DELETE Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | RequestBody: ``` ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": null } ``` ##### 获取或搜索作品词组 URL: baseUrl:19082/phrase/work/search?projectId={作品ID}&searchText={搜索的文本} Method: GET Headers: | key | value | | :----------- | :------------: | | Content-Type | application/json;charset=utf-8 | | Authorization | token | | groupId | 组ID | | mul | true | | projectId | 项目ID | ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": [ { "phraseName": "进峰测试3", "updatePhraseName": null, "pos": "名词", "labels": "哈哈", "phraseRemarks": "进峰测试", "content": null, "type": null, "highPerformance": true, "projectId": null } ] } ```