Appearance
功能概述
项目文档详情
接口访问
接口地址
common/document/detail
请求方式 Method
GET
Header - Authorization Type : Bearer Token
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 | 访问版本 |
|---|---|---|---|---|---|---|
| token | string | 32 | true | 用户身份标识令牌 | - |
请求参数
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
| materialID | int | 11 | true | 1 | 文章ID |
返回值
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
| materialID | int | true | 文档ID |
| materialName | string | true | 文档名称 |
| materialFileSize | int | true | 文档大小 |
| downloadCount | int | true | 下载次数 |
| createTime | int | true | 创建时间 |
| yeeBao | int | true | 椰宝价格 |
| isBuy | int | true | 是否购买 0-否 1-是 |
| isSpecial | int | true | 是否尝鲜 0-否 1-是 |
| materialUrl | string | false | 文档地址 |
| totalDocument | array | true | 文档信息页 |
| page | int | true | 页码 |
| totalPages | int | true | 总页数 |
返回示例
{
"response": {
"materialID": 1,
"materialName": "测试",
"materialFileSize": 255,
"yeeBao": 79,
"isSpecial": 0,
"downloadCount": 1,
"totalPages": 19,
"createTime": "2025-10-27 00:32:23",
"isBuy": 1,
"materialUrl": "https://file.yeexiang.com/bd753e64546790ea4540e0ca41d37618.pdf",
"totalDocument": [
{
"materialUrl": "https://file.yeexiang.com/00e07736baa6ff6c522baed38761d40b.jpg",
"page": 1
},
{
"materialUrl": "https://file.yeexiang.com/000431e0246fd7284280a6fbafe3f418.jpg",
"page": 2
},
{
"materialUrl": "https://file.yeexiang.com/0142f43ac33231c0346f72f58dc0ee3b.png",
"page": 3
}
]
},
"requestId": "4ccf56f8-b3b4-4a12-87b0-606ab535e578"
}