数据库实体

This commit is contained in:
TsMask committed 2023-08-21 18:48:18 +08:00
1 parent 8f128b6c73
commit 21a1377906
3 files changed
+22 -18

No files matched your search

-18
View File
@@ -31,21 +31,3 @@ type Alarm struct {
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"
}
+21
View File
@@ -0,0 +1,21 @@
package model
import "time"
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"
}
+1
View File
@@ -2,6 +2,7 @@ package model
import "time"
// 用户表实体信息
type User struct {
Id int `json:"id"`
AccountId string `json:"account_id"`