# 渠道管理相关接口

# 批量创建渠道

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/AddWwChannel

body参数

{
  "ww_channel_list": [
    {
      "name": "渠道名称1"
    },
    {
      "name": "渠道名称2"
    }
  ]
}

ww_channel_list 数组长度(1~100)

返回值:

{
    "data": {
        "ww_channel_list":[
            {
              "str_id": "5fcbeaec0f8b7c3091354c2d9dc35d0a",
              "name": "渠道名称1"
            },
            {
              "str_id": "58533df621f8d8f30baecf2984cdd9b9",
              "name": "渠道名称2"
            }   
        ] 
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
   ww_channel_list array 渠道数组列表
     str_id string 渠道唯一id
     name string 渠道名称
hint string 请求日志ID

# 获取渠道详情

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/GetWwChannel

body参数

{
  "str_id": "5fcbeaec0f8b7c3091354c2d9dc35d0a"
}

返回值:

{
    "data": {
        "ww_channel":{
             "str_id": "58533df621f8d8f30baecf2984cdd9b9",
             "name": "渠道名称2"
        }   
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
   ww_channel json 渠道object
     str_id string 渠道唯一id
     name string 渠道名称
hint string 请求日志ID

# 批量修改渠道

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/SetWwChannel

body参数

{
  "ww_channel_list":[
      {
        "str_id": "5fcbeaec0f8b7c3091354c2d9dc35d0a",
        "name": "渠道名称1"
      },
      {
        "str_id": "58533df621f8d8f30baecf2984cdd9b9",
        "name": "渠道名称2"
      }   
  ] 
}

ww_channel_list 数组长度(1~100)

返回值:

{
    "data": {
        "ww_channel_list":[
            {
              "str_id": "5fcbeaec0f8b7c3091354c2d9dc35d0a",
              "name": "渠道名称1"
            },
            {
              "str_id": "58533df621f8d8f30baecf2984cdd9b9",
              "name": "渠道名称2"
            }   
        ] 
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
   ww_channel_list array 渠道数组列表
     str_id string 渠道唯一id
     name string 渠道名称
hint string 请求日志ID

# 获取渠道列表

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/GetWwChannelList

body参数

{
    "offset": 0,
    "limit": 10
}
字段 类型 必填 说明
offset int 每次获取的的开始位置,最小值为0
limit int 每次获取的条数,取值范围(1~100)

返回值:

{
    "data": {
        "has_more": true,
        "list": [
            {
              "str_id": "5fcbeaec0f8b7c3091354c2d9dc35d0a",
              "name": "渠道名称1"
            },
            {
              "str_id": "58533df621f8d8f30baecf2984cdd9b9",
              "name": "渠道名称2"
            }  
        ]
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
   has_more bool 是否还有更多
   list array 渠道数组列表
     str_id string 渠道唯一id
     name string 渠道名称
hint string 请求日志ID
最后更新时间: 2023/5/24 10:48:59