db

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyChannelDB

type NotifyChannelDB struct {
	*gorm.DB
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL