Documentation ¶
Index ¶
- type Service
- func (svc *Service) ArticleCreateAdmin(req *fmtAdminV1.ArticleCreateReq, res *fmtAdminV1.ArticleCreateRes) *errcode.Error
- func (svc *Service) ArticleDeleteAdmin(req *fmtAdminV1.ArticleDeleteReq, res *fmtAdminV1.ArticleDeleteRes) *errcode.Error
- func (svc *Service) ArticleDetail(id int, res *model.Article) *errcode.Error
- func (svc *Service) ArticleDetailAdmin(id int, res *model.Article) *errcode.Error
- func (svc *Service) ArticleList(req *fmtApiV1.ArticleListReq, res *fmtApiV1.ArticleListRes) *errcode.Error
- func (svc *Service) ArticleListAdmin(req *fmtAdminV1.ArticleListReq, res *fmtAdminV1.ArticleListRes) *errcode.Error
- func (svc *Service) ArticleUpdateAdmin(req *fmtAdminV1.ArticleUpdateReq, res *fmtAdminV1.ArticleUpdateRes) *errcode.Error
- func (svc *Service) AuthLogin(userType int, req *fmtApiV0.AuthLoginReq, res *fmtApiV0.AuthLoginRes) *errcode.Error
- func (svc *Service) AuthRegister(req *fmtApiV0.AuthRegisterReq, res *fmtApiV0.AuthRegisterRes) *errcode.Error
- func (svc *Service) CommentCreate(req *fmtApiV1.CommentCreateReq, res *fmtApiV1.CommentCreateRes) *errcode.Error
- func (svc *Service) CommentDeleteAdmin(req *fmtAdminV1.CommentDeleteReq, res *fmtAdminV1.CommentDeleteRes) *errcode.Error
- func (svc *Service) CommentDetail(id int, res *model.Comment) *errcode.Error
- func (svc *Service) CommentList(req *fmtApiV1.CommentListReq, res *fmtApiV1.CommentListRes) *errcode.Error
- func (svc *Service) CommentListAdmin(req *fmtAdminV1.CommentListReq, res *fmtAdminV1.CommentListRes) *errcode.Error
- func (svc *Service) CommentUpdate(req *fmtApiV1.CommentUpdateReq, res *fmtApiV1.CommentUpdateRes) *errcode.Error
- func (svc *Service) TagAll(res *fmtApiV1.TagAllRes) *errcode.Error
- func (svc *Service) TagAllAdmin(res *fmtAdminV1.TagAllRes) *errcode.Error
- func (svc *Service) TagCreateAdmin(req *fmtAdminV1.TagCreateReq, res *fmtAdminV1.TagCreateRes) *errcode.Error
- func (svc *Service) TagDeleteAdmin(req *fmtAdminV1.TagDeleteReq, res *fmtAdminV1.TagDeleteRes) *errcode.Error
- func (svc *Service) TagDetail(id int, res *model.Tag) *errcode.Error
- func (svc *Service) TagList(req *fmtApiV1.TagListReq, res *fmtApiV1.TagListRes) *errcode.Error
- func (svc *Service) TagListAdmin(req *fmtAdminV1.TagListReq, res *fmtAdminV1.TagListRes) *errcode.Error
- func (svc *Service) TagUpdateAdmin(req *fmtAdminV1.TagUpdateReq, res *fmtAdminV1.TagUpdateRes) *errcode.Error
- func (svc *Service) UploadFile(fileType upload.FileType, file multipart.File, ...) (*upload.FileInfo, error)
- func (svc *Service) UserChangePwd(req *fmtApiV1.UserChangePwdReq, res *fmtApiV1.UserChangePwdRes) *errcode.Error
- func (svc *Service) UserDeleteAdmin(req *fmtAdminV1.UserDeleteReq, res *fmtAdminV1.UserDeleteRes) *errcode.Error
- func (svc *Service) UserDetail(id int, res *model.User) *errcode.Error
- func (svc *Service) UserListAdmin(req *fmtAdminV1.UserListReq, res *fmtAdminV1.UserListRes) *errcode.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) ArticleCreateAdmin ¶
func (svc *Service) ArticleCreateAdmin(req *fmtAdminV1.ArticleCreateReq, res *fmtAdminV1.ArticleCreateRes) *errcode.Error
func (*Service) ArticleDeleteAdmin ¶
func (svc *Service) ArticleDeleteAdmin(req *fmtAdminV1.ArticleDeleteReq, res *fmtAdminV1.ArticleDeleteRes) *errcode.Error
func (*Service) ArticleDetail ¶
func (*Service) ArticleDetailAdmin ¶
func (*Service) ArticleList ¶
func (svc *Service) ArticleList(req *fmtApiV1.ArticleListReq, res *fmtApiV1.ArticleListRes) *errcode.Error
func (*Service) ArticleListAdmin ¶
func (svc *Service) ArticleListAdmin(req *fmtAdminV1.ArticleListReq, res *fmtAdminV1.ArticleListRes) *errcode.Error
func (*Service) ArticleUpdateAdmin ¶
func (svc *Service) ArticleUpdateAdmin(req *fmtAdminV1.ArticleUpdateReq, res *fmtAdminV1.ArticleUpdateRes) *errcode.Error
func (*Service) AuthLogin ¶
func (svc *Service) AuthLogin(userType int, req *fmtApiV0.AuthLoginReq, res *fmtApiV0.AuthLoginRes) *errcode.Error
func (*Service) AuthRegister ¶
func (svc *Service) AuthRegister(req *fmtApiV0.AuthRegisterReq, res *fmtApiV0.AuthRegisterRes) *errcode.Error
func (*Service) CommentCreate ¶
func (svc *Service) CommentCreate(req *fmtApiV1.CommentCreateReq, res *fmtApiV1.CommentCreateRes) *errcode.Error
func (*Service) CommentDeleteAdmin ¶
func (svc *Service) CommentDeleteAdmin(req *fmtAdminV1.CommentDeleteReq, res *fmtAdminV1.CommentDeleteRes) *errcode.Error
func (*Service) CommentDetail ¶
func (*Service) CommentList ¶
func (svc *Service) CommentList(req *fmtApiV1.CommentListReq, res *fmtApiV1.CommentListRes) *errcode.Error
func (*Service) CommentListAdmin ¶
func (svc *Service) CommentListAdmin(req *fmtAdminV1.CommentListReq, res *fmtAdminV1.CommentListRes) *errcode.Error
func (*Service) CommentUpdate ¶
func (svc *Service) CommentUpdate(req *fmtApiV1.CommentUpdateReq, res *fmtApiV1.CommentUpdateRes) *errcode.Error
func (*Service) TagAllAdmin ¶
func (svc *Service) TagAllAdmin(res *fmtAdminV1.TagAllRes) *errcode.Error
func (*Service) TagCreateAdmin ¶
func (svc *Service) TagCreateAdmin(req *fmtAdminV1.TagCreateReq, res *fmtAdminV1.TagCreateRes) *errcode.Error
func (*Service) TagDeleteAdmin ¶
func (svc *Service) TagDeleteAdmin(req *fmtAdminV1.TagDeleteReq, res *fmtAdminV1.TagDeleteRes) *errcode.Error
func (*Service) TagList ¶
func (svc *Service) TagList(req *fmtApiV1.TagListReq, res *fmtApiV1.TagListRes) *errcode.Error
func (*Service) TagListAdmin ¶
func (svc *Service) TagListAdmin(req *fmtAdminV1.TagListReq, res *fmtAdminV1.TagListRes) *errcode.Error
func (*Service) TagUpdateAdmin ¶
func (svc *Service) TagUpdateAdmin(req *fmtAdminV1.TagUpdateReq, res *fmtAdminV1.TagUpdateRes) *errcode.Error
func (*Service) UploadFile ¶
func (*Service) UserChangePwd ¶
func (svc *Service) UserChangePwd(req *fmtApiV1.UserChangePwdReq, res *fmtApiV1.UserChangePwdRes) *errcode.Error
func (*Service) UserDeleteAdmin ¶
func (svc *Service) UserDeleteAdmin(req *fmtAdminV1.UserDeleteReq, res *fmtAdminV1.UserDeleteRes) *errcode.Error
func (*Service) UserListAdmin ¶
func (svc *Service) UserListAdmin(req *fmtAdminV1.UserListReq, res *fmtAdminV1.UserListRes) *errcode.Error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.