-
Notifications
You must be signed in to change notification settings - Fork 42
/
asset.go
59 lines (54 loc) · 1.8 KB
/
asset.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
package eventmanager
// AssetBaseInfo 资产基本数据``
type AssetBaseInfo struct {
// AssetID 快应用资产ID
AssetID uint64 `json:"asset_id,omitempty"`
// AssetName 快应用名称
AssetName string `json:"asset_name,omitempty"`
}
// LandingPage 三方落地页数据
type LandingPage struct {
AssetBaseInfo
// Name 落地页名称,长度限制为25,一个字符长度为1
Name string `json:"name,omitempty"`
// Description 落地页名称,长度限制为150,一个字符长度为1
Description string `json:"description,omitempty"`
}
// QuickApp 快应用数据
type QuickApp struct {
AssetBaseInfo
// Name 快应用名称,长度限制为20,一个字符长度为1
Name string `json:"name,omitempty"`
// PackageName 快应用包名
PackageName string `json:"package_name,omitempty"`
// QuickAppID 快应用ID
QuickAppID uint64 `json:"quick_app_id,omitempty"`
}
// App 应用数据
type App struct {
AssetBaseInfo
// Name 快应用名称,长度限制为20,一个字符长度为1
Name string `json:"name,omitempty"`
// AppName 应用名
AppName string `json:"app_name,omitempty"`
// AppType 应用类型
AppType string `json:"app_type,omitempty"`
// DownloadURL 应用下载链接
DownloadURL string `json:"download_url,omitempty"`
// AppID 应用ID
AppID uint64 `json:"app_id,omitempty"`
// PackageID 母包ID
PackageID string `json:"package_id,omitempty"`
// PackageName 应用包名
PackageName string `json:"package_name,omitempty"`
// AppPackageName 应用包名,精确搜索
AppPackageName string `json:"app_package_name,omitempty"`
// Role 资产来源
Role string `json:"role,omitempty"`
}
// MiniProgram 字节小程序快应用资产
type MiniProgram struct {
AssetBaseInfo
// MiniProgramID 字节小程序id
MiniProgramID string `json:"mini_program_id,omitempty"`
}