Documentation
¶
Index ¶
- type PostL10nRepository
- func (r PostL10nRepository) Create(ctx context.Context, i *entity.PostL10n) error
- func (r PostL10nRepository) CreateMultiple(ctx context.Context, items []entity.PostL10n) error
- func (r PostL10nRepository) Delete(ctx context.Context, i *entity.PostL10n) error
- func (r PostL10nRepository) DeleteByPostID(ctx context.Context, postID uint) error
- func (r PostL10nRepository) DeleteMultiple(ctx context.Context, items []entity.PostL10n) error
- func (r PostL10nRepository) FindByID(ctx context.Context, id uint) (*entity.PostL10n, error)
- func (r PostL10nRepository) FindByPostID(ctx context.Context, postID uint) ([]entity.PostL10n, error)
- func (r PostL10nRepository) FindByPostIDWithLanguage(ctx context.Context, postID, lngID uint) ([]entity.PostL10n, error)
- func (r PostL10nRepository) FindByPostIDs(ctx context.Context, postIDs []uint) ([]entity.PostL10n, error)
- func (r PostL10nRepository) FindByPostIDsWithLanguage(ctx context.Context, postIDs []uint, lngID uint) ([]entity.PostL10n, error)
- func (r PostL10nRepository) Update(ctx context.Context, i *entity.PostL10n) error
- func (r PostL10nRepository) UpdateMultiple(ctx context.Context, items []entity.PostL10n) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostL10nRepository ¶
type PostL10nRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New(env *env.Postgres) PostL10nRepository
func (PostL10nRepository) CreateMultiple ¶
func (PostL10nRepository) DeleteByPostID ¶
func (r PostL10nRepository) DeleteByPostID(ctx context.Context, postID uint) error
func (PostL10nRepository) DeleteMultiple ¶
func (PostL10nRepository) FindByPostID ¶
func (PostL10nRepository) FindByPostIDWithLanguage ¶
func (PostL10nRepository) FindByPostIDs ¶
func (PostL10nRepository) FindByPostIDsWithLanguage ¶
func (PostL10nRepository) UpdateMultiple ¶
Click to show internal directories.
Click to hide internal directories.