Documentation ¶
Index ¶
- type NotifyChannelDB
- func (db *NotifyChannelDB) Create(notifyChannel *model.NotifyChannel) (*model.NotifyChannel, error)
- func (db *NotifyChannelDB) DeleteById(id string) (*model.NotifyChannel, error)
- func (db *NotifyChannelDB) EnabledChannelList(scopeId, scopeType string) ([]model.NotifyChannel, error)
- func (db *NotifyChannelDB) GetById(id string) (*model.NotifyChannel, error)
- func (db *NotifyChannelDB) GetByName(name string) (*model.NotifyChannel, error)
- func (db *NotifyChannelDB) GetByScopeAndType(scopeId, scopeType, channelType string) (*model.NotifyChannel, error)
- func (db *NotifyChannelDB) GetCountByName(name string) (int64, error)
- func (db *NotifyChannelDB) GetCountByScopeAndType(scopeId, scopeType, channelType string) (int64, error)
- func (db *NotifyChannelDB) ListByPage(offset, pageSize int64, scopeId, scopeType, channelType string) (int64, []model.NotifyChannel, error)
- func (db *NotifyChannelDB) SwitchEnable(currentNotifyChannel, switchNotifyChannel *model.NotifyChannel) error
- func (db *NotifyChannelDB) UpdateById(notifyChannel *model.NotifyChannel) (*model.NotifyChannel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyChannelDB ¶
NotifyChannelDB erda_notify_channel
func (*NotifyChannelDB) Create ¶
func (db *NotifyChannelDB) Create(notifyChannel *model.NotifyChannel) (*model.NotifyChannel, error)
func (*NotifyChannelDB) DeleteById ¶
func (db *NotifyChannelDB) DeleteById(id string) (*model.NotifyChannel, error)
func (*NotifyChannelDB) EnabledChannelList ¶
func (db *NotifyChannelDB) EnabledChannelList(scopeId, scopeType string) ([]model.NotifyChannel, error)
func (*NotifyChannelDB) GetById ¶
func (db *NotifyChannelDB) GetById(id string) (*model.NotifyChannel, error)
func (*NotifyChannelDB) GetByName ¶
func (db *NotifyChannelDB) GetByName(name string) (*model.NotifyChannel, error)
func (*NotifyChannelDB) GetByScopeAndType ¶
func (db *NotifyChannelDB) GetByScopeAndType(scopeId, scopeType, channelType string) (*model.NotifyChannel, error)
func (*NotifyChannelDB) GetCountByName ¶
func (db *NotifyChannelDB) GetCountByName(name string) (int64, error)
func (*NotifyChannelDB) GetCountByScopeAndType ¶
func (db *NotifyChannelDB) GetCountByScopeAndType(scopeId, scopeType, channelType string) (int64, error)
func (*NotifyChannelDB) ListByPage ¶
func (db *NotifyChannelDB) ListByPage(offset, pageSize int64, scopeId, scopeType, channelType string) (int64, []model.NotifyChannel, error)
func (*NotifyChannelDB) SwitchEnable ¶
func (db *NotifyChannelDB) SwitchEnable(currentNotifyChannel, switchNotifyChannel *model.NotifyChannel) error
func (*NotifyChannelDB) UpdateById ¶
func (db *NotifyChannelDB) UpdateById(notifyChannel *model.NotifyChannel) (*model.NotifyChannel, error)
Click to show internal directories.
Click to hide internal directories.