Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func GetSqliteDB ¶
Types ¶
type WebHookConditions ¶
type WebHooks ¶
type WebHooks struct { gorm.Model Name string `json:"name" gorm:"unique;not null;index;comment:webhook名称"` // not null in db Url string `json:"url" gorm:"unique;not null;index;comment:url地址"` Active bool `json:"active" gorm:"default:true;comment:是否激活"` WebHookConditionRefer *uint `json:"web_hook_condition_refer" gorm:"comment:WebHookCondition foreign key"` // 外键,在数据库中最好不要not null,在逻辑上去判空 NeedNodes []NeedNode `gorm:"foreignKey:WebHookRefer"` }
Click to show internal directories.
Click to hide internal directories.