Documentation ¶
Index ¶
- type BlogArticleDao
- func (b *BlogArticleDao) CreateArticle(ctx context.Context, article *model.Article) error
- func (b *BlogArticleDao) DeleteArticleById(ctx context.Context, id string) (bool, error)
- func (b *BlogArticleDao) GetArticleById(ctx context.Context, id string) (article *model.Article, err error)
- func (b *BlogArticleDao) UpdateArticle(ctx context.Context, article *model.Article) error
- func (b *BlogArticleDao) UpdateArticleSample(ctx context.Context, article *model.UpdateArticleModel) error
- type IBlogArticleDao
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogArticleDao ¶
func NewBlogArticleDao ¶
func NewBlogArticleDao(ndb *ndb.NDb, log *nlog.NLog) *BlogArticleDao
func (*BlogArticleDao) CreateArticle ¶
func (*BlogArticleDao) DeleteArticleById ¶
func (*BlogArticleDao) GetArticleById ¶
func (*BlogArticleDao) UpdateArticle ¶
func (*BlogArticleDao) UpdateArticleSample ¶
func (b *BlogArticleDao) UpdateArticleSample(ctx context.Context, article *model.UpdateArticleModel) error
type IBlogArticleDao ¶
type IBlogArticleDao interface { CreateArticle(ctx context.Context, article *model.Article) error DeleteArticleById(ctx context.Context, id string) (bool, error) UpdateArticle(ctx context.Context, article *model.Article) error UpdateArticleSample(ctx context.Context, article *model.UpdateArticleModel) error GetArticleById(ctx context.Context, id string) (*model.Article, error) }
Click to show internal directories.
Click to hide internal directories.