2 Attachment
Get a list of attachments
Request Body
Name
Type
Description
{
"status": 1,
"data": [
[
'id' => 1600, //Primary id
'attachment_id' => '61bb77aa7c4eb8e3bb8b20c0ac72ab1e', //attachmetn id
'attachment_name' => '图20160314105710.png', //Attachment name
'affect_attachment_name' => '9a28e37c0a9bae896ea2fa9bce07fe1c.png', //Attachment system name, avoid user copy from server
'attachment_relative_path' => '2018/05/31/61bb77aa7c4eb8e3bb8b20c0ac72ab1e/', //Attachment path
'attachment_type' => 'png', //Attachment type
'attachment_mark' => 1, //Attachment mark
'category' => 1, //Attachment category
'relation_table' => "document_content", //Related table
'thumb_attachment_name' => "data:image/png;base64,iVBORw0K.....==", //Attachment Thumbnail
'attachment_size' => 2250, //Size
'attachment_time' => "2018-05-31 16:40:30", //Upload time
'attachment_path' => "attachment\index\61bb77aa7c4eb8e3bb8b20c0ac72ab1e", //Download path
],
......
]
}{
"status": 0,
"errors": [
{
"code": "0x000003",
"message": "未知错误"
}
]
}Attachment Upload
Request Body
Name
Type
Description
{
"status": 1,
"data": {
"attachment_id": "61bb77aa7c4eb8e3bb8b20c0ac72ab1e", //attachment id
"attachment_name": "图20160314105710.png" //file name
}
}{
"status": 0,
"errors": [
{
"code": "0x000003",
"message": "未知错误"
}
]
}Get Attachments
Path Parameters
Name
Type
Description
Last updated