-
Notifications
You must be signed in to change notification settings - Fork 96
/
pprof.go
74 lines (64 loc) · 2.11 KB
/
pprof.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
package db
// 发布环境
type PProf struct {
ID int `gorm:"not null;primary_key" json:"id"`
Type string `gorm:"not null;"json:"type"`
SceneId string `gorm:"not null;"json:"sceneId"`
AppName string `gorm:"not null;"json:"appName"` // 项目id
Aid int `gorm:"not null;"json:"aid"` // 项目id
FileInfo string `gorm:"not null;"json:"fileInfo"` // 环境类型名称
ZoneCode string `gorm:"not null;"json:"zone_code"` // 环境类型
Env string `gorm:"not null;"json:"env"` // 环境类型
Ext string `gorm:"not null;"json:"ext"`
Remark string `gorm:"not null;"json:"remark"`
HostName string `gorm:"not null;"json:"hostName"`
CreateTime int64 `gorm:""json:"create_time"`
UpdateTime int64 `gorm:""json:"update_time"`
DeleteTime int64 `gorm:"index"json:"delete_time"`
PprofList []PprofInfo `gorm:"-"json:"pprofList"`
}
type PprofInfo struct {
Id int `json:"id"`
Type string `json:"type"`
Url string `json:"url"`
}
// TableName 表名
func (PProf) TableName() string {
return "pprof"
}
type PProfViewModel struct {
PProf
HostName string `json:"host_name"` // 主机名
}
type ReqProfile struct {
ZoneCode string `form:"zoneCode"`
AppName string `form:"appName"`
HostName string `form:"hostName"`
Env string `form:"env"`
}
type PProfFileInfo struct {
Url string `json:"url"`
FileType string `json:"fileType"`
}
type PProfOssFile struct {
FileType string `json:"fileType"`
OriginalRid string `json:"originalRid"`
OriginalMd5 string `json:"originalMd5"`
Original string `json:"original"`
}
type PProfReqList struct {
ZoneCode string `form:"zoneCode"`
AppName string `form:"appName"`
HostName string `form:"hostName"`
Env string `form:"env"`
}
type ReqCheck struct {
InstallType int `json:"installType"`
}
type ReqSysConfig struct {
Id int `gorm:"not null;"json:"id"`
SysType int `json:"sysType"`
SetInt int `json:"setInt"`
SetCate string `gorm:"not null;column:set_cate" json:"setCate"`
SetStr string `json:"setStr"`
}