repository

package
v0.0.0-...-6730fbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 (r *PostDraftRepository) DeleteById(ctx context.Context, id string) (int64, error)

func (*PostDraftRepository) GetById

func (*PostDraftRepository) GetPostDraftPage

func (r *PostDraftRepository) GetPostDraftPage(ctx context.Context, pageQuery domain.PageQuery) ([]*domain.PostDraft, int64, error)

func (*PostDraftRepository) Save

func (r *PostDraftRepository) Save(ctx context.Context, postDraft domain.PostDraft) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL