go-common/app/admin/main/spy/model/factor.go
2019-04-22 18:49:16 +08:00

29 lines
911 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import (
"time"
)
// Factor def.
type Factor struct {
ID int64 `json:"id"`
NickName string `json:"nick_name"` //风险因子名字
ServiceID int64 `json:"service_id"` //服务ID
EventID int64 `json:"event_id"` //事件ID
GroupID int64 `json:"group_id"` //分组ID
RiskLevel int8 `json:"risk_level"` //风险等级1-9
FactorVal float32 `json:"factor_val"` //因子值
CTime time.Time `json:"ctime"` //创建时间
MTime time.Time `json:"mtime"` //修改时间
CategoryID int8 `json:"category_id"` //CategoryID
}
// Factors etc.
type Factors struct {
ID int64 `json:"id"`
GroupID int64 `json:"group_id"` //分组ID
GroupName string `json:"group_name"` //分组名称
NickName string `json:"nick_name"` //风险因子名字
FactorVal float32 `json:"factor_val"` //因子值
}