订阅审核
获取订阅审核列表
URL
POST https://baas.qualink.com/bas/subscription/listSubModeration
请求头部
Content-type: application/json
Authorization: 平台用户身份令牌
请求参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
data_resource_name | String | 是 | 资源名称 |
nick_name | String | 是 | 订阅者 |
audit_state | String | 是 | 审核状态,默认0 |
page | Integer | 是 | 页面编号 |
rows | Integer | 是 | 每页显示条例数 |
示例:
{
"data_resource_name":"",
"nick_name":"",
"audit_state":"0",
"page":1,
"rows":5
}
返回数据
名称 | 类型 | 实例值 | 描述 |
---|---|---|---|
success | Boolean | true | 是否成功 |
msg | String | 成功 | 请求结果信息 |
data | JSON | - | 请求结果 |
示例:
{
"success": true,
"msg": "获取成功",
"data": {
"total": 2,
"pages": 1,
"page_num": 1,
"list": [
{
"sub_time": "2020-12-31 09:28:09",
"auth_type": "0",
"owner_name": "176****7887",
"sub_name": "scc",
"data_resource_name": "医护卫生",
"baas_user_id": "20190708140048411042",
"audit_state": "0",
"owner_id": "ceshi",
"sub_id": "20191231092809038715636568406183",
"op_id": "ceshi",
"opname": "176****7887",
"table_name": "yh_env",
"data_resource_id": "2019123014284868801450",
"sub_user_name": "176****7887",
"sub_user_id": "20190708140048411042",
"unit_id": "test"
},
{
"sub_time": "2019-12-27 15:52:55",
"auth_type": "0",
"owner_name": "zyf",
"sub_name": "dfsdf",
"data_resource_name": "rszyf",
"baas_user_id": "20190708140048411042",
"audit_state": "0",
"owner_id": "rszyf",
"sub_id": "20191227155255993235013843490329",
"op_id": "rszyf",
"opname": "176****7887",
"table_name": "sacas",
"data_resource_id": "2019122314060301371970",
"sub_user_name": "zyf",
"sub_user_id": "20190917190336688921",
"unit_id": "zyfrs"
}
],
"page_size": 10
}
}
获取订阅详情
URL
POST https://baas.qualink.com/bas/subscription/getInf
请求头部
Content-type: application/json
Authorization: 平台用户身份令牌
请求参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
sub_id | String | 是 | 订阅者ID |
示例:
{
"sub_id":"20200102092134567488964274433387"
}
返回数据
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
success | Boolean | true | 是否成功 |
msg | String | 成功 | 请求结果信息 |
data | JSON | - | 请求结果 |
示例:
{
"success": true,
"msg": "获取成功",
"data": {
"sub_time": "2020-01-02 09:21:34",
"auth_type": "0",
"owner_name": "176****7887",
"sub_name": "sadas",
"data_resource_name": "医护卫生",
"baas_user_id": "20190708140048411042",
"audit_state": "0",
"owner_id": "ceshi",
"sub_id": "20200102092134567488964274433387",
"op_id": "ceshi",
"opname": "176****7887",
"table_name": "yh_env",
"data_resource_id": "2019123014284868801450",
"sub_user_name": "176****7887",
"sub_user_id": "20190708140048411042",
"unit_id": "test"
}
}
订阅审核
URL
POST https://baas.qualink.com/bas/subscription/subModeration
请求头部
Content-type: application/json
Authorization: 平台用户身份令牌
请求参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
audit_advice | String | 是 | 审核意见 |
audit_state | String | 是 | 审核状态码 |
sub_id | String | 是 | 订阅者ID |
示例:
{
"audit_state":"1",
"sub_id":"20191108161157318449815185917951",
"audit_advice":"通过"
}
返回数据
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
success | Boolean | true | 是否成功 |
msg | String | 成功 | 请求结果信息 |
data | JSON | - | 请求结果 |
示例:
{
"success":true,
"msg":"操作成功",
"data":null
}