Versions in this module Expand all Collapse all v0 v0.5.5 Jul 8, 2023 Changes in this version + type Show struct + DateCreated time.Time + DateUpdated time.Time + Enable bool + ID string + OutTmpl string + Parser string + Platform string + PostCmds string + RoomID string + SaveDir string + SplitRule string + StreamerName string + type Store struct + func NewStore(log *zap.SugaredLogger, db *sqlx.DB) Store + func (s Store) Create(ctx context.Context, show Show) error + func (s Store) Delete(ctx context.Context, showIDList []string) error + func (s Store) Query(ctx context.Context, pageNumber int, rowsPerPage int) ([]Show, error) + func (s Store) QueryAllEnabled(ctx context.Context) ([]Show, error) + func (s Store) QueryByID(ctx context.Context, showID string) (Show, error) + func (s Store) TotalNum(ctx context.Context) (int64, error) + func (s Store) Tran(tx sqlx.ExtContext) Store + func (s Store) Update(ctx context.Context, show Show) error + func (s Store) WithinTran(ctx context.Context, fn func(sqlx.ExtContext) error) error