tdk列表

HTTP Request

GET /api/admin/tdks

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述
url url
title title
keywords keywords
description description
page 页码
per_page 每页的数量

返回数据

{
  "code": 0, 
  "message": "success", 
  "remark": "成功", 
  "data": {
    "total_count": 7, 
    "total_pages": 1, 
    "next_page": null, 
    "prev_page": null, 
    "current_page": 1, 
    "per_page": 15, 
    "page": 1, 
    "models": [
      {
        "id": 1, 
        "url": "https://zhanhui-dev.weiwenjia.com/exhibitions/41311", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:01:40.604+08:00", 
        "updated_at": "2025-03-05T10:01:40.604+08:00"
      }, 
      {
        "id": 2, 
        "url": "https://zhanhui-dev.weiwenjia.com/", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:25:20.157+08:00", 
        "updated_at": "2025-03-05T10:25:20.157+08:00"
      }, 
      {
        "id": 3, 
        "url": "https://zhanhui-dev.weiwenjia.com/exhibitions/list", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:25:31.487+08:00", 
        "updated_at": "2025-03-05T10:25:31.487+08:00"
      }, 
      {
        "id": 4, 
        "url": "https://zhanhui-dev.weiwenjia.com/halls/list", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:25:40.590+08:00", 
        "updated_at": "2025-03-05T10:25:40.590+08:00"
      }, 
      {
        "id": 5, 
        "url": "https://zhanhui-dev.weiwenjia.com/calendar", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:25:48.599+08:00", 
        "updated_at": "2025-03-05T10:25:48.599+08:00"
      }, 
      {
        "id": 6, 
        "url": "https://zhanhui-dev.weiwenjia.com/information", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:25:57.581+08:00", 
        "updated_at": "2025-03-05T10:25:57.581+08:00"
      }, 
      {
        "id": 7, 
        "url": "https://zhanhui-dev.weiwenjia.com/cooperation", 
        "title": "title1", 
        "keywords": "keywords1", 
        "description": "description1", 
        "created_at": "2025-03-05T10:26:09.212+08:00", 
        "updated_at": "2025-03-05T10:26:09.212+08:00"
      }
    ]
  }
}

创建/更新tdk

HTTP Request

POST /api/admin/tdks

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述
tdk tdk信息

请求正文

{
    "tdk": {
        "url": "https://zhanhui-dev.weiwenjia.com/cooperation",
        "title": "title1",
        "keywords": "keywords1",
        "description": "description1"
    }
}

返回数据

{
  "code": 0, 
  "message": "success", 
  "remark": "成功", 
  "data": {
    "id": 7, 
    "url": "https://zhanhui-dev.weiwenjia.com/cooperation", 
    "title": "title1", 
    "keywords": "keywords1", 
    "description": "description1", 
    "created_at": "2025-03-05T10:26:09.212+08:00", 
    "updated_at": "2025-03-05T10:26:09.212+08:00"
  }
}

tdk详情

HTTP Request

GET /api/admin/tdks/:id

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述
id tdk Id

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "url": "https://zhanhui-dev.weiwenjia.com/exhibitions/41311",
        "title": "title1",
        "keywords": "keywords1",
        "description": "description1",
        "created_at": "2025-03-05T10:01:40.604+08:00",
        "updated_at": "2025-03-05T10:01:40.604+08:00"
    }
}

删除tdk

HTTP Request

DELETE /api/admin/tdks/:id

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述
id tdk Id

Body Parameters

字段名 是否必填 描述

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功"
}
文档更新时间: 2025-04-09 17:20   作者:李辉