Documentation
¶
Overview ¶
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Index ¶
- type Cache
- type Event
- func (c *Event) Count(ctx context.Context, opts ...orm.QueryOption) (int64, error)
- func (c *Event) Create(ctx context.Context, model *event.Event) error
- func (c *Event) Delete(ctx context.Context, model *event.Event, opts ...orm.QueryOption) error
- func (c *Event) Get(ctx context.Context, model *event.Event, opts ...orm.QueryOption) error
- func (c *Event) List(ctx context.Context, bs *[]*event.Event, page orm.Pager, ...) (int64, error)
- func (c *Event) Session(ctx context.Context, changeFns ...func(*gorm.DB) error) error
- func (c *Event) Update(ctx context.Context, model *event.Event, changeFn func(*event.Event), ...) error
- func (c *Event) UpdateWithSession(tx *gorm.DB, model *event.Event, changeFn func(b *event.Event) error, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event Cache
func (*Event) Get ¶
Get implements event.EventStorer. 注意: 若想走缓存,则 model 的 CacheKey 必须实现且必须存在值 当 CacheKey 为 id 且出现 orm.Where("id=?",id) 时,查询条件会变成 SELECT * FROM `users` WHERE `id` = 1 AND `users`.`id` = 1 两个值一样则不会受到影响
func (*Event) List ¶ added in v1.4.21
func (c *Event) List(ctx context.Context, bs *[]*event.Event, page orm.Pager, opts ...orm.QueryOption) (int64, error)
List implements event.EventStorer.
Click to show internal directories.
Click to hide internal directories.