同步代码
This commit is contained in:
51
model/alarm.go
Normal file
51
model/alarm.go
Normal file
@@ -0,0 +1,51 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Alarm struct {
|
||||
Id int
|
||||
AlarmSeq int
|
||||
AlarmId string
|
||||
NeId string
|
||||
AlarmCode int
|
||||
AlarmTitle string
|
||||
EventTime time.Time
|
||||
AlarmType string
|
||||
OrigSeverity string
|
||||
PVFlag string
|
||||
NeName string
|
||||
NeType string
|
||||
ObjectName string
|
||||
ObjectUID string
|
||||
ObjectType string
|
||||
LocationInfo string
|
||||
Province string
|
||||
AlarmStatus int
|
||||
SpecificProblem string
|
||||
SpecificProblemID string
|
||||
AddInfo string
|
||||
ClearType int
|
||||
ClearTime time.Time
|
||||
}
|
||||
|
||||
func (Alarm) TableName() string {
|
||||
return "alarm"
|
||||
}
|
||||
|
||||
type NbiAlarmLog struct {
|
||||
ID int64
|
||||
AId int64
|
||||
OpUser string
|
||||
SrcIp string
|
||||
NeType string
|
||||
NeId string
|
||||
AlarmSeq int64
|
||||
AlarmId string
|
||||
AlarmCode int
|
||||
EventTime time.Time
|
||||
LogTime time.Time
|
||||
}
|
||||
|
||||
func (NbiAlarmLog) TableName() string {
|
||||
return "nbi_alarm_log"
|
||||
}
|
||||
38
model/user.go
Normal file
38
model/user.go
Normal file
@@ -0,0 +1,38 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
Id int `json:"id"`
|
||||
AccountId string `json:"account_id"`
|
||||
Name string `json:"name"`
|
||||
RealName string `json:"real_name"`
|
||||
Sn string `json:"sn"`
|
||||
Gender string `json:"gender"`
|
||||
Email string `json:"email"`
|
||||
IdCardNumber string `json:"id_card_number"`
|
||||
Description string `json:"description"`
|
||||
TelephoneNumber string `json:"telephone_number"`
|
||||
Phone string `json:"phone"`
|
||||
Mobile string `json:"mobile"`
|
||||
EmployeeNumber string `json:"employee_number"`
|
||||
EmployeeType string `json:"employee_type"`
|
||||
Organize string `json:"organize"`
|
||||
SupporterCorpName string `json:"supporter_corp_name"`
|
||||
StartTime time.Time `json:"start_time"`
|
||||
EndTime time.Time `json:"end_time"`
|
||||
Password string `json:"password"`
|
||||
PasswordSha512 string `json:"password_sha512"`
|
||||
ChangePasswordFlag int `json:"change_password_flag"`
|
||||
PasswordExpiration string `json:"password_expiration"`
|
||||
Status string `json:"status"`
|
||||
UserExpiration string `json:"user_expiration"`
|
||||
GroupName string `json:"group_name"`
|
||||
Profile string `json:"profile"`
|
||||
CreateTime time.Time `json:"create_time"`
|
||||
UpdateTime time.Time `json:"update_time"`
|
||||
}
|
||||
|
||||
func (User) TableName() string {
|
||||
return "user"
|
||||
}
|
||||
Reference in New Issue
Block a user