Documentation ¶
Index ¶
- type BlogRepository
- func (r *BlogRepository) Delete(ctx context.Context, id uint64) (err error)
- func (r *BlogRepository) GetAll(ctx context.Context) (res []model.Blog, err error)
- func (r *BlogRepository) GetByID(ctx context.Context, id uint64) (res model.Blog, err error)
- func (r *BlogRepository) Insert(ctx context.Context, data *model.Blog) (err error)
- func (r *BlogRepository) Update(ctx context.Context, id uint64, data *model.Blog) (err error)
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogRepository ¶
func NewBlogRepository ¶
func NewBlogRepository(c *core.Core) *BlogRepository
func (*BlogRepository) Delete ¶
func (r *BlogRepository) Delete(ctx context.Context, id uint64) (err error)
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository(c *core.Core) *UserRepository
func (*UserRepository) GetByEmail ¶
Click to show internal directories.
Click to hide internal directories.