领域场景查询(API名称:openTaskScene/queryTaskCategory)
功能介绍
领域场景查询
相关接口
接口名称 |
调用说明 |
---|---|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
---|---|---|---|
POST |
https://isdp+域名/openapi/v1/openTaskScene/queryTaskCategory |
OpenAPI |
application/json |
请求头
KEY |
VALUE |
是否必填 |
描述 |
---|---|---|---|
Content-Type |
application/json |
是 |
无 |
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
filter |
String |
否 |
任务类别 |
isEnable |
Integer |
否 |
是否启用(0-不启用;1-启用) |
categoryIdList |
List<Long> |
否 |
类别Id集合 |
响应参数
参数 |
类型 |
描述 |
---|---|---|
stateCode |
String |
响应状态码:
|
errorMessage |
String |
响应描述 |
result |
Object |
响应结果内容data、分页数据 |
result出参:
参数 |
类型 |
描述 |
---|---|---|
category |
String |
类别 |
subCategoryList |
List |
子类别 |
industry |
Long |
行业 |
isEnable |
Integer |
是否启用(0-不启用;1-启用) |
请求示例
{ "filter": "a2", "categoryIdList": [ 586248 ], "isEnable": 1 }
响应示例
{ "stateCode": "0", "errorMessage": null, "result": [ { "lastUpdatedBy": 153169, "appName": "isdp-task-server", "lastUpdateDate": "2022-05-13T08:07:16.000+00:00", "orderNum": "11", "industry": "", "creationDate": "2022-05-13T08:07:16.000+00:00", "parentId": 0, "isEnable": 1, "deleteFlag": 0, "lastUpdateTimestamp": 1652429236616, "createdBy": 153169, "entityName": "taskCategory", "creationTimestamp": 1652429236616, "tenantId": 886, "subCategoryList": [ { "appName": "isdp-task-server", "category": "a2", "createdBy": 391001, "createName": "杨xx改名2", "creationDate": "2023-10-26T12:43:12.000+00:00", "creationTimestamp": 1698324192363, "deleteFlag": 0, "entityName": "TaskCategory", "id": 586248, "industry": "", "isEnable": 1, "lastUpdateDate": "2023-10-26T12:43:12.000+00:00", "lastUpdatedBy": 391001, "lastUpdateName": "杨xx改名2", "lastUpdateTimestamp": 1698324192363, "orderNum": "5", "parentId": 3548, "tenantId": 886 } ], "lastUpdateName": "lyl09", "id": 3548, "category": "学科", "createName": "lyl09" } ] }