Documentation ¶
Index ¶
- func NewQuery(query *ent.CitySpliderQuery) queryOption
- type SpliderRepo
- func (r *SpliderRepo) Count(ctx context.Context, queries ...bizsplider.Query) int
- func (r *SpliderRepo) FindList(ctx context.Context, queries ...bizsplider.Query) ([]*bizsplider.Splider, error)
- func (r *SpliderRepo) FindOne(ctx context.Context, queries ...bizsplider.Query) (*bizsplider.Splider, error)
- func (r *SpliderRepo) Remove(ctx context.Context, queries ...bizsplider.Query) error
- func (r *SpliderRepo) Save(ctx context.Context, data *bizsplider.Splider) (*bizsplider.Splider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuery ¶
func NewQuery(query *ent.CitySpliderQuery) queryOption
Types ¶
type SpliderRepo ¶
type SpliderRepo struct {
// contains filtered or unexported fields
}
func NewSpliderRepo ¶
func NewSpliderRepo( d *data.Data, ) *SpliderRepo
func (*SpliderRepo) Count ¶
func (r *SpliderRepo) Count(ctx context.Context, queries ...bizsplider.Query) int
func (*SpliderRepo) FindList ¶
func (r *SpliderRepo) FindList(ctx context.Context, queries ...bizsplider.Query) ([]*bizsplider.Splider, error)
func (*SpliderRepo) FindOne ¶
func (r *SpliderRepo) FindOne(ctx context.Context, queries ...bizsplider.Query) (*bizsplider.Splider, error)
func (*SpliderRepo) Remove ¶
func (r *SpliderRepo) Remove(ctx context.Context, queries ...bizsplider.Query) error
func (*SpliderRepo) Save ¶
func (r *SpliderRepo) Save(ctx context.Context, data *bizsplider.Splider) (*bizsplider.Splider, error)
Click to show internal directories.
Click to hide internal directories.