You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
647 B
Go
16 lines
647 B
Go
package models
|
|
|
|
type Notify struct {
|
|
ID int `json:"id" gorm:"primaryKey;column:id;type:int unsigned;not null"`
|
|
Name string `json:"name" gorm:"column:name;type:varchar(255);not null"`
|
|
Section string `json:"section" gorm:"column:section;type:varchar(255);not null"`
|
|
Type string `json:"type" gorm:"column:type;type:varchar(255);not null"`
|
|
Token string `json:"token" gorm:"column:token;type:varchar(255);not null"`
|
|
Secret string `json:"secret" gorm:"column:secret;type:varchar(255);"`
|
|
IsDel int `json:"is_del" gorm:"column:is_del;type:int;not null"`
|
|
}
|
|
|
|
func (Notify) TableName() string {
|
|
return "notify"
|
|
}
|