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" }