提供文件上传及静态服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
607 B

4 months ago
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"
}