-
Notifications
You must be signed in to change notification settings - Fork 38
/
models.go
141 lines (97 loc) · 2.04 KB
/
models.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// Code is generated by ucloud-model, DO NOT EDIT IT.
package uslk
/*
RedirectRecords - 访问明细
*/
type RedirectRecords struct {
// 账户ID
AccountID int
// 访问设备
Browser string
// 访问IP
ClientIP string
// 访问操作系统
Os string
// 访问省份信息
ProvinceCode string
// 重定向时间戳 (ms)
RedirectTime int
// 访问时间戳(ms)
RequestTime int
// 报备场景
Scenario string
// 场景ID
ScenarioID int
// 短链接
ShortLink string
// 短链接域名
ShortLinkDomain string
}
/*
SecondaryLinkForQuery - SecondaryLink查询实体
*/
type SecondaryLinkForQuery struct {
// 是否是次链接
IsSecondary bool
// 长链接
LongLink string
// 长链接ID
LongLinkID int
// 操作系统,例如: Windows,Android,多个以逗号分隔
Oses string
// 省份codes,例如: Hebei,Shandong,多个以逗号分隔
ProvinceCodes string
// 场景名称
Scenario string
// 场景ID
ScenarioID int
// 长短链接映射ID
ShortLongMapID int
}
/*
ShortLink - 短链接返回模型
*/
type ShortLink struct {
// 累计访问量
ClickCount int
// 当日访问量
ClickCountToday int
// 短链接创建时间
CreateTime int
// 删除时间戳
DeleteTime int
// 短链接过期时间戳
EndTime int
// 短链接ID
ID int
// 关联长链接列表
LongLinks []string
// 操作人
Operator string
// 操作说明(封禁原因)
Remark string
// 报备场景
Scenario string
// 场景描述
ScenarioDesc string
// 场景ID
ScenarioID int
// 次链接,智能跳转类型才有
SecondaryLinks []SecondaryLinkForQuery
// 短链接
ShortLink string
// 短链接域名
ShortLinkDomain string
// 短链接开始生效时间戳
StartTime int
// 短链接状态:1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁
Status int
// 链接类型-预留:1:普通跳转 3:智能跳转等
Type int
// 累计独立访问量
UniqueClickCount int
// 今日独立访问量
UniqueClickCountToday int
// 更新时间戳
UpdateTime int
}