作者:管理员  历史版本:1  最后编辑:龚清  更新时间:2025-10-14 18:31
查询
简述:
- 根据id查询
 
请求URL:
- http://ip:port/ibps/platform/v3/file/attachment/get
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| attachmentId | String | 是 | 附件id | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/file/attachment/get?attachmentId=654639722575953920返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": 1576119872000,
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": "654639722575953920",
        "typeId": "",
        "fileName": "419767488",
        "fileType": "",
        "storeType": "fastdfs",
        "filePath": "group1/M00/00/13/wKgD0l3xrbCACm_lAAGJFODFBtQ220.jpg",
        "fileBytes": "",
        "totalBytes": 100628,
        "ext": "jpg",
        "note": "",
        "creator": "654384477392338944",
        "creatorName": "tom",
        "isDel": 0,
        "md5": "d41d8cd98f00b204e9800998ecf8427e",
        "isFail": null
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | AttachmentPo | 附件对象 | 
修改附件名
简述:
- 修改附件名
 
请求URL:
- http://ip:port/ibps/platform/v3/file/attachment/modifyName
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| attachmentId | String | 是 | 附件id | ||
| fileName | String | 是 | 附件名称 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/file/attachment/modifyName?attachmentId=654639722575953920&fileName=test返回示例:
{
    "state": 200,
    "request": null,
    "message": "修改文件名称成功",
    "cause": "",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
【附件】列表(分页条件查询)数据
简述:
- 【附件】列表(分页条件查询)数据
 
请求URL:
- http://ip:port/ibps/platform/v3/file/attachment/query
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| request | APIRequest[1] | 是 | 动态查询请求对象 | 
请求参数示例:
{
    "parameters": [],
    "requestPage": {
        "pageNo": 1,
        "limit": 20
    },
    "sorts": []
}返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": {
        "dataResult": [
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": 1579230270000,
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "667685675016912896",
                "typeId": "",
                "fileName": "Easy-Mock-API",
                "fileType": "",
                "storeType": "fastdfs",
                "filePath": "group1/M00/00/17/wKgD0l4hI2aATonvAAdADhcJcJ4398.zip",
                "fileBytes": "",
                "totalBytes": 475150,
                "ext": "zip",
                "note": "",
                "creator": "1",
                "creatorName": "管理员",
                "isDel": 0,
                "md5": "d41d8cd98f00b204e9800998ecf8427e",
                "isFail": null
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": 1579168215000,
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "667425397985509376",
                "typeId": "",
                "fileName": "回家DGJK",
                "fileType": "",
                "storeType": "fastdfs",
                "filePath": "group1/M00/00/17/wKgD0l4gMQGAWUtmAADLo39-2Z0553.jpg",
                "fileBytes": "",
                "totalBytes": 52131,
                "ext": "jpg",
                "note": "",
                "creator": "1",
                "creatorName": "管理员",
                "isDel": 0,
                "md5": "d41d8cd98f00b204e9800998ecf8427e",
                "isFail": null
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": 1579085465000,
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "667078321137254400",
                "typeId": "",
                "fileName": "timg",
                "fileType": "",
                "storeType": "fastdfs",
                "filePath": "group1/M00/00/17/wKgD0l4e7cWAOlF3AAr2FhnfCME584.jpg",
                "fileBytes": "",
                "totalBytes": 718358,
                "ext": "jpg",
                "note": "",
                "creator": "1",
                "creatorName": "管理员",
                "isDel": 0,
                "md5": "d41d8cd98f00b204e9800998ecf8427e",
                "isFail": null
            }
        ],
        "pageResult": {
            "limit": 3,
            "page": 1,
            "totalCount": 129,
            "totalPages": 43
        }
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | APIPageList< AttachmentPo > | 附件对象 | 
批量删除【附件】记录
简述:
- 批量删除【附件】记录
 
请求URL:
- http://ip:port/ibps/platform/v3/file/attachment/remove
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| attachmentIds | String | 是 | 附件ID数组 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/file/attachment/remove?attachmentIds=667069997377388544返回示例:
{
    "state": 200,
    "request": null,
    "message": "删除成功",
    "cause": "",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
保存
简述:
- 保存【附件】信息
 
请求URL:
- http://ip:port/ibps/platform/v3/msg/innerMessage/save
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
AttachmentPo 对象信息
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 
|---|---|---|---|---|
| id | String | 否 | 主键 | |
| typeId | String | 否 | 附件分类ID | |
| fileName | String | 是 | 文件名 | |
| fileType | String | 否 | 附件类型。如:mail=邮件附件;user=用户信息附件 | |
| storeType | String | 否 | 存储类型。DISK=基于磁盘;DB=基于数据库 | |
| filePath | String | 是 | 文件路径 | |
| fileBytes | byte[] | 否 | 文件二进制数据 | |
| totalBytes | Long | 是 | 总字节数 | |
| ext | String | 是 | 扩展名 | |
| note | String | 否 | 说明 | |
| creator | String | 否 | 上传者ID | |
| creatorName | String | 否 | 上传者 | |
| createTime | Date | 否 | 创建时间 | |
| isDel | Short | 否 | 删除标识 | |
| md5 | String | 是 | 文件的MD5值 | |
| isFail | Short | 否 | 失败的标识 | 
请求参数示例:
{
    "typeId": "",
    "fileName": "tests",
    "fileType": "",
    "storeType": "fastdfs",
    "filePath": "group1/M00/00/17/wKgD0l4hI2aATonvAAdADhcJcJ4398.zip",
    "fileBytes": "",
    "totalBytes": 475150,
    "ext": "zip",
    "note": "",
    "creator": "1",
    "creatorName": "管理员",
    "isDel": 0,
    "md5": "d41d8cd98f00b204e9800998ecf8427e",
    "isFail": null
}返回示例:
{
    "state": 200,
    "request": null,
    "message": "保存【附件】成功",
    "cause": "",
    "variables": {
        "id": "674411492568727552"
    },
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void |