GET base/v3/CommonMiniPrg/GetAttachmentProcessInfo?attachmentJson={attachmentJson}

反序列化解晰

Request

URI Params

字段名字段说明字段类型附加信息
attachmentJson

AttachmentProcessInfo的JSON序列化字符串

string

Required

Body Params

None.

Response

AttachmentProcessInfo
字段名字段说明字段类型附加信息
Name

可选:附件友好名称(如:数学课件PPT)

string

None.

Path

附件相对目录(用于附件的目录管理,优信平台可取Scence.Tostring(),第三方应用指定一个字符串。一般可设模块名称,注意前后不要“/”,如info,pm,mp,base等,也可以是:info/abc)

string

None.

AttachType

必填:附件类型 1.图片 2.语音 3.用户头像 4.视频 9.附件 99.其他

AttachmentType

None.

ExtName

必填:扩展名--(如.jpg,对于.jpg,.jpeg,.png,.gif会自动压缩,其他附件直接存储)

string

None.

LImgMaxWidth

可选:大图最大宽(为0时-根据附件类型自动设置)

integer

None.

LImgMaxHeight

可选:大图最大高(为0时-根据附件类型自动设置)

integer

None.

SImgMaxWidth

可选:小图最大宽(为0时-根据附件类型自动设置)

integer

None.

SImgMaxHeight

可选:小图最大高(为0时-根据附件类型自动设置)

integer

None.

CreateThumb

可选:是否生成缩略图(默认false)

boolean

None.

JpegQuality

可选:JPEG压缩比(默认80,即80%)

integer

None.

ResizeMode

必填:大图片缩放类型(默认1-Ration按比例; 2-Crop裁剪)

ImageResizeType

None.

SImgResizeMode

必填:缩图片缩放类型(默认2-Crop裁减; 1-Ration按比例)

ImageResizeType

None.

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Path": "sample string 2",
  "AttachType": 1,
  "ExtName": "sample string 3",
  "LImgMaxWidth": 4,
  "LImgMaxHeight": 5,
  "SImgMaxWidth": 6,
  "SImgMaxHeight": 7,
  "CreateThumb": true,
  "JpegQuality": 9,
  "ResizeMode": 0,
  "SImgResizeMode": 0
}