-
Notifications
You must be signed in to change notification settings - Fork 7
/
Upload.go
44 lines (41 loc) · 1.45 KB
/
Upload.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package types
// UploadFileData 上传文件返回数据
type UploadFileData struct {
RawJson string `json:"-"`
RequestId string `json:"requestId"`
Offset int `json:"offset"`
Context string `json:"context"`
CallbackRetMsg string `json:"callbackRetMsg"`
ErrCode string `json:"errCode"`
ErrMsg string `json:"errMsg"`
}
// UploadNodeData 上传加速节点地址
type UploadNodeData struct {
RawJson string `json:"-"`
Lbs string `json:"lbs"`
Upload []string `json:"upload"`
}
// UploadEventImgData 用于发送动态的图片信息
type UploadEventImgData struct {
RawJson string `json:"-"`
PicSubtype string
PicInfo struct {
OriginId int `json:"originId"`
SquareId int `json:"squareId"`
RectangleId int `json:"rectangleId"`
PcSquareId int `json:"pcSquareId"`
PcRectangleId int `json:"pcRectangleId"`
OriginJpgId int `json:"originJpgId"`
Format string `json:"format"`
Width int `json:"width"`
Height int `json:"height"`
OriginIdStr string `json:"originIdStr"`
SquareIdStr string `json:"squareIdStr"`
RectangleIdStr string `json:"rectangleIdStr"`
PcSquareIdStr string `json:"pcSquareIdStr"`
PcRectangleIdStr string `json:"pcRectangleIdStr"`
PcSquareUrl string `json:"pcSquareUrl"`
PcRectangleUrl string `json:"pcRectangleUrl"`
} `json:"picInfo"`
Code int `json:"code"`
}