Documentation ¶
Index ¶
- type Impl
- func (i *Impl) CreateBlog(ctx context.Context, req *blog.CreateBlogRequest) (*blog.Blog, error)
- func (i *Impl) DB() *gorm.DB
- func (i *Impl) DeleteBlog(ctx context.Context, req *blog.DeleteBlogRequest) (*blog.Blog, error)
- func (i *Impl) DescribeBlog(ctx context.Context, req *blog.DescribeBlogRequest) (*blog.Blog, error)
- func (i *Impl) Init() error
- func (i *Impl) Name() string
- func (i *Impl) QueryBlog(ctx context.Context, req *blog.QueryBlogRequest) (*blog.BlogSet, error)
- func (i *Impl) UpdateBlog(ctx context.Context, req *blog.UpdateBlogRequest) (*blog.Blog, error)
- func (i *Impl) UpdateBlogStatus(ctx context.Context, req *blog.UpdateBlogStatusRequest) (*blog.Blog, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
依赖MySQL连接, 能与MySQL交互 负责实现Blog Service
func (*Impl) CreateBlog ¶
新建文章
func (*Impl) DeleteBlog ¶
文章的删除 为什么删除后,还要返回数据, 方便前端和事件总线使用
func (*Impl) DescribeBlog ¶
func (i *Impl) DescribeBlog(ctx context.Context, req *blog.DescribeBlogRequest) ( *blog.Blog, error)
文章详情
func (*Impl) UpdateBlog ¶
func (*Impl) UpdateBlogStatus ¶
func (i *Impl) UpdateBlogStatus(ctx context.Context, req *blog.UpdateBlogStatusRequest) ( *blog.Blog, error)
更新文章的状态
Click to show internal directories.
Click to hide internal directories.