Skip to content

跨域配置

GET 跨域配置列表

GET /admin/tx/crossdomain/conf/list

请求参数

名称位置类型必选说明
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "records": [
      {
        "id": "39d6bd55148f1f0bd0923ead547ea093",
        "domain": "www.t22ets.coms",
        "remarks": "test222",
        "createBy": "admin",
        "createByName": null,
        "createTime": "2025-01-07 10:09:09",
        "updateBy": "admin",
        "updateTime": "2025-01-07 10:13:32",
        "delFlag": "0"
      },
      {
        "id": "6d7a9f98f7ff0599f49634f4b35ad733",
        "domain": "www.2222.s",
        "remarks": "skdjsk",
        "createBy": "admin",
        "createByName": null,
        "createTime": "2025-01-07 10:11:46",
        "updateBy": "admin",
        "updateTime": "2025-01-07 10:11:46",
        "delFlag": "0"
      },
      {
        "id": "555fa7185fd43d22beb46e988c7791fd",
        "domain": "psoidoa",
        "remarks": "sdasd",
        "createBy": "admin",
        "createByName": null,
        "createTime": "2025-01-07 10:13:15",
        "updateBy": "admin",
        "updateTime": "2025-01-07 10:13:15",
        "delFlag": "0"
      }
    ],
    "total": 3,
    "size": 10,
    "current": 1,
    "pages": 1
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» records[object]truenonenone
»»» idstringtruenone记录id
»»» domainstringtruenone域名
»»» remarksstringtruenone备注
»»» createBystringtruenonenone
»»» createByNamenulltruenonenone
»»» createTimestringtruenonenone
»»» updateBystringtruenonenone
»»» updateTimestringtruenonenone
»»» delFlagstringtruenonenone
»» totalintegertruenonenone
»» sizeintegertruenonenone
»» currentintegertruenonenone
»» pagesintegertruenonenone
» okbooleantruenonenone

POST 新增跨域配置

POST /admin/tx/crossdomain/conf

Body 请求参数

json
{
  "domain": "www.souhu.com",
  "remarks": "大大大"
}

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
bodybodyobjectnone
» domainbodystring域名 需要携带协议头及端口号
» remarksbodystring备注

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

PUT 修改跨域配置

PUT /admin/tx/crossdomain/conf

Body 请求参数

json
{
  "id": "123123",
  "domain": "http://www.baidu.com",
  "remarks": "baidu"
}

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
bodybodyobjectnone
» idbodystringnone
» domainbodystringnone
» remarksbodystringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

GET 删除跨域配置

GET /admin/tx/crossdomain/conf/delete

请求参数

名称位置类型必选说明
idquerystring跨域配置记录id
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

Released under the MIT License.