Documentation
¶
Overview ¶
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Index ¶
- type Channel
- func (d Channel) BatchEdit(ctx context.Context, column string, value any, args ...orm.QueryOption) error
- func (d Channel) Create(ctx context.Context, model *ipc.Channel) error
- func (d Channel) Delete(ctx context.Context, model *ipc.Channel, opts ...orm.QueryOption) error
- func (d Channel) EditGB28181Config(ctx context.Context, model *ipc.Channel) error
- func (d Channel) Get(ctx context.Context, model *ipc.Channel, opts ...orm.QueryOption) error
- func (d Channel) List(ctx context.Context, bs *[]*ipc.Channel, page orm.Pager, ...) (int64, error)
- func (d Channel) Session(ctx context.Context, changeFns ...func(*gorm.DB) error) error
- func (d Channel) Update(ctx context.Context, model *ipc.Channel, changeFn func(*ipc.Channel) error, ...) error
- func (d Channel) UpdateWithSession(tx *gorm.DB, model *ipc.Channel, changeFn func(b *ipc.Channel) error, ...) error
- type DB
- type Device
- func (d Device) Create(ctx context.Context, model *ipc.Device) error
- func (d Device) Delete(ctx context.Context, model *ipc.Device, opts ...orm.QueryOption) error
- func (d Device) Get(ctx context.Context, model *ipc.Device, opts ...orm.QueryOption) error
- func (d Device) List(ctx context.Context, bs *[]*ipc.Device, page orm.Pager, ...) (int64, error)
- func (d Device) Session(ctx context.Context, changeFns ...func(*gorm.DB) error) error
- func (d Device) Update(ctx context.Context, model *ipc.Device, changeFn func(*ipc.Device) error, ...) error
- func (d Device) UpdateWithSession(tx *gorm.DB, model *ipc.Device, changeFn func(b *ipc.Device) error, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel DB
Channel Related business namespaces
func (Channel) BatchEdit ¶
func (d Channel) BatchEdit(ctx context.Context, column string, value any, args ...orm.QueryOption) error
BatchEdit implements ipc.ChannelStorer.
func (Channel) EditGB28181Config ¶ added in v1.4.0
EditGB28181Config 直接更新 GB28181 上报的字段(name/is_online/ptztype/ext),跳过 SELECT FOR UPDATE,因为调用方已持有 existing 对象。
func (Channel) List ¶ added in v1.4.21
func (d Channel) List(ctx context.Context, bs *[]*ipc.Channel, page orm.Pager, opts ...orm.QueryOption) (int64, error)
List implements ipc.ChannelStorer.
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB Related business namespaces
type Device ¶
type Device DB
Device Related business namespaces
func (Device) List ¶ added in v1.4.21
func (d Device) List(ctx context.Context, bs *[]*ipc.Device, page orm.Pager, opts ...orm.QueryOption) (int64, error)
List implements ipc.DeviceStorer.
Click to show internal directories.
Click to hide internal directories.