Documentation ¶
Index ¶
- type IPostDraftRepository
- type PostDraftRepository
- func (r *PostDraftRepository) DeleteById(ctx context.Context, id string) (int64, error)
- func (r *PostDraftRepository) GetById(ctx context.Context, id string) (*domain.PostDraft, error)
- func (r *PostDraftRepository) GetPostDraftPage(ctx context.Context, pageQuery domain.PageQuery) ([]*domain.PostDraft, int64, error)
- func (r *PostDraftRepository) Save(ctx context.Context, postDraft domain.PostDraft) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPostDraftRepository ¶
type IPostDraftRepository interface { Save(ctx context.Context, postDraft domain.PostDraft) (string, error) GetById(ctx context.Context, id string) (*domain.PostDraft, error) DeleteById(ctx context.Context, id string) (int64, error) GetPostDraftPage(ctx context.Context, pageQuery domain.PageQuery) ([]*domain.PostDraft, int64, error) }
type PostDraftRepository ¶
type PostDraftRepository struct {
// contains filtered or unexported fields
}
func NewPostDraftRepository ¶
func NewPostDraftRepository(dao dao.IPostDraftDao) *PostDraftRepository
func (*PostDraftRepository) DeleteById ¶
func (*PostDraftRepository) GetPostDraftPage ¶
Click to show internal directories.
Click to hide internal directories.