Documentation ¶
Overview ¶
templ: version: v0.2.513
Index ¶
- type Repository
- type RepositoryImpl
- func (t *RepositoryImpl) Create(ctx context.Context, walletId int, name string) (*models.Tag, error)
- func (t *RepositoryImpl) Delete(ctx context.Context, tagId int) error
- func (t *RepositoryImpl) Get(ctx context.Context, tagId int) (*models.Tag, error)
- func (t *RepositoryImpl) GetIds(ctx context.Context, ids []int) ([]*models.Tag, error)
- func (t *RepositoryImpl) List(ctx context.Context, walletId int) ([]*models.Tag, error)
- func (t *RepositoryImpl) Update(ctx context.Context, tagId int, name string) (*models.Tag, error)
- type Tags
- type WalletRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { List(ctx context.Context, walletId int) ([]*models.Tag, error) Create(ctx context.Context, walletId int, name string) (*models.Tag, error) Get(ctx context.Context, tagId int) (*models.Tag, error) Update(ctx context.Context, tagId int, name string) (*models.Tag, error) Delete(ctx context.Context, tagId int) error }
type RepositoryImpl ¶
type RepositoryImpl struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sqlx.DB) *RepositoryImpl
func (*RepositoryImpl) Delete ¶
func (t *RepositoryImpl) Delete(ctx context.Context, tagId int) error
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
func New ¶
func New( walletRepository WalletRepository, repository Repository, log *slog.Logger, ) *Tags
Click to show internal directories.
Click to hide internal directories.