Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const Address + const DingDingTarget + const FieldEmpty + const FieldTooLong + const FiledZero + const PageNumber + const PageSize + const Role + const RuneCount + const SpaceField + var ErrCreateNotify = err("ErrCreateNotify", "创建通知失败") + var ErrDeleteNotify = err("ErrDeleteNotify", "删除通知失败") + var ErrGetNotify = err("ErrGetNotify", "获取通知失败") + var ErrNotifyEnable = err("ErrNotifyEnable", "启用通知失败") + var ErrUpdateNotify = err("ErrUpdateNotify", "更新通知失败") + func CheckElements(formats []map[string]string, title, template []string) error + func ValidateInt(field int64) string + func ValidateString(field string) string + type Behavior struct + Group string + type CreateNotifyReq struct + Attribute map[string]string + Channels []string + NotifyGroupID int64 + NotifyName string + Scope string + ScopeID string + TemplateID []string + func (c CreateNotifyReq) CheckNotify() error + type CreateUserDefineNotifyTemplate struct + Formats []map[string]string + Group string + Name string + Scope string + ScopeID string + Targets []string + Template []string + Title []string + Trigger []string + func (c CreateUserDefineNotifyTemplate) CheckCustomizeNotify() error + type GetAllGroupData struct + Name string + Type string + Value int64 + type GetNotifyRes struct + ID string + Name string + type GroupInfo struct + Id int64 + TargetData string + type Metadata struct + Module string + Name string + Scope []string + Type string + type Model struct + Behavior Behavior + ID string + Metadata Metadata + Templates []Templates + type NotifyDetailResponse struct + GroupType string + Id int64 + NotifyID string + NotifyName string + Target string + type NotifyRecord struct + CreateTime int64 + GroupId string + NotifyGroup string + NotifyId string + NotifyName string + NotifyTime int64 + ScopeId int64 + ScopeType string + Title string + UpdateTime int64 + type NotifyRes struct + CreatedAt time.Time + Enable bool + Id int64 + Items []string + NotifyID string + NotifyName string + NotifyTarget []NotifyTarget + Target string + type NotifyTarget struct + Type string + Values []TargetValue + type QueryNotifyListReq struct + Scope string + ScopeID string + type QueryNotifyListRes struct + List []NotifyRes + type Render struct + Formats map[string]string + Template string + Title string + type Target struct + Channels []string + DingDingUrl string + GroupID int64 + type TargetValue struct + Receiver string + Secret string + type Templates struct + I18n []string + Targets []string + Trigger []string + type UpdateNotifyReq struct + Attribute map[string]string + Channels []string + ID int64 + NotifyGroupID int64 + Scope string + ScopeID string + TemplateId []string + func (c UpdateNotifyReq) CheckNotify() error