对号 jo!
  1. 三、应用模块接口
对号 jo!
  • 一、项目说明
  • 二、接口说明
  • 三、应用模块接口
    • 3.1 系统相关API
    • 3.2 网盘文件API
    • 3.3 媒体相关API
    • 3.4 资源相关API
    • 3.5 用户相关API
    • 3.6 分享管理API
  • 四、开发说明
    • 4.1 技术开发总述
    • 4.2 通用数据库接口说明
    • 4.3 前端 API 调用示例
    • 4.3 后端API实现
  1. 三、应用模块接口

3.4 资源相关API

3.4 资源相关 API#

3.4.1 获取资源列表#

URL:/resources
方法:GET
参数:无
返回数据:
{
  "code": 200,
  "message": "成功",
  "data": {
    "resources": [
      {
        "id": "resource_123",
        "name": "资源1",
        "url": "https://example.com/resource1",
        "type": "video",
        "size": 1073741824,
        "created_at": "2024-01-01 00:00:00"
      }
    ]
  }
}

3.4.2 获取下载任务列表#

URL:/resources/downloads
方法:GET
参数:无
返回数据:
{
  "code": 200,
  "message": "成功",
  "data": {
    "tasks": [
      {
        "id": "task_123",
        "name": "下载任务1",
        "url": "https://example.com/file.zip",
        "status": "downloading",
        "progress": 50,
        "speed": "1024KB/s",
        "size": 104857600,
        "downloaded": 52428800,
        "created_at": "2024-01-01 00:00:00"
      }
    ]
  }
}
修改于 2026-01-21 20:46:25
上一页
3.3 媒体相关API
下一页
3.5 用户相关API
Built with