package model import "service-api/global" type Notice struct { global.BASE_ID Name string `gorm:"size:50" json:"name"` //通知名称 NoticeType int `gorm:"size:1" json:"noticeType"` //通知类型 1-email RelationType int `gorm:"size:2" json:"relationType"` //项目类型 global.TIME_MODEL } type NoticeStatus struct { global.BASE_ID Name string `json:"name"` //通知名称 Status int `json:"status"` //是否禁止通知 0-禁止 1-不限制 } func (Notice) TableName() string { return "notice" } func (NoticeStatus) TableName() string { return "notice" }