service

package
v0.0.0-...-5952180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context) Service

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 (svc *Service) ArticleDetail(id int, res *model.Article) *errcode.Error

func (*Service) ArticleDetailAdmin

func (svc *Service) ArticleDetailAdmin(id int, res *model.Article) *errcode.Error

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 (svc *Service) CommentDetail(id int, res *model.Comment) *errcode.Error

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) TagAll

func (svc *Service) TagAll(res *fmtApiV1.TagAllRes) *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) TagDetail

func (svc *Service) TagDetail(id int, res *model.Tag) *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 (svc *Service) UploadFile(fileType upload.FileType, file multipart.File, fileHeader *multipart.FileHeader) (*upload.FileInfo, error)

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) UserDetail

func (svc *Service) UserDetail(id int, res *model.User) *errcode.Error

func (*Service) UserListAdmin

func (svc *Service) UserListAdmin(req *fmtAdminV1.UserListReq, res *fmtAdminV1.UserListRes) *errcode.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL