Documentation ¶
Index ¶
- type FileInfo
- type Service
- func (svc *Service) CheckAuth(param *protocol.AuthRequest) error
- func (svc *Service) CountArticles(param *protocol.CountArticleRequest) (int, error)
- func (svc *Service) CountTag(param *protocol.CountTagRequest) (int, error)
- func (svc *Service) CreateArticle(param *protocol.CreateArticleRequest) error
- func (svc *Service) CreateTag(param *protocol.CreateTagRequest) error
- func (svc *Service) DeleteArticle(param *protocol.DeleteArticleRequest) error
- func (svc *Service) DeleteTag(param *protocol.DeleteTagRequest) error
- func (svc *Service) GetArticleList(param *protocol.ArticleListRequest, pager *app.Pager) ([]*model.Article, error)
- func (svc *Service) GetSingleArticle(param *protocol.ArticleSingleRequest) (*model.Article, error)
- func (svc *Service) GetTagList(param *protocol.TagListRequest, pager *app.Pager) ([]*model.Tag, error)
- func (svc *Service) UpdateArticle(param *protocol.UpdateArticleRequest) error
- func (svc *Service) UpdateTag(param *protocol.UpdateTagRequest) error
- func (svc *Service) UploadFile(fileType upload.FileType, file multipart.File, ...) (*FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CountArticles ¶
func (svc *Service) CountArticles(param *protocol.CountArticleRequest) (int, error)
func (*Service) CountTag ¶
func (svc *Service) CountTag(param *protocol.CountTagRequest) (int, error)
func (*Service) CreateArticle ¶
func (svc *Service) CreateArticle(param *protocol.CreateArticleRequest) error
func (*Service) DeleteArticle ¶
func (svc *Service) DeleteArticle(param *protocol.DeleteArticleRequest) error
func (*Service) GetArticleList ¶
func (*Service) GetSingleArticle ¶
func (*Service) GetTagList ¶
func (*Service) UpdateArticle ¶
func (svc *Service) UpdateArticle(param *protocol.UpdateArticleRequest) error
Click to show internal directories.
Click to hide internal directories.