service

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CommentService

type CommentService struct {
	CommentMongoMapper commentMapper.IMongoMapper
	SubjectMongoMapper subjectMapper.IMongoMapper
}

func (*CommentService) CreateComment

func (*CommentService) DeleteComment

func (*CommentService) DeleteCommentWithUserId

func (*CommentService) GetComment

func (s *CommentService) GetComment(ctx context.Context, req *gencomment.GetCommentReq) (resp *gencomment.GetCommentResp, err error)

func (*CommentService) GetCommentList

func (*CommentService) SetCommentAttrs

func (*CommentService) UpdateAfterCreateComment

func (s *CommentService) UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)

func (*CommentService) UpdateComment

type ICommentService

type ICommentService interface {
	UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)
	GetComment(ctx context.Context, req *gencomment.GetCommentReq) (resp *gencomment.GetCommentResp, err error)
	GetCommentList(ctx context.Context, req *gencomment.GetCommentListReq) (resp *gencomment.GetCommentListResp, err error)
	CreateComment(ctx context.Context, req *gencomment.CreateCommentReq) (resp *gencomment.CreateCommentResp, err error)
	UpdateComment(ctx context.Context, req *gencomment.UpdateCommentReq) (resp *gencomment.UpdateCommentResp, err error)
	DeleteComment(ctx context.Context, req *gencomment.DeleteCommentReq) (resp *gencomment.DeleteCommentResp, err error)
	DeleteCommentWithUserId(ctx context.Context, req *gencomment.DeleteCommentWithUserIdReq) (resp *gencomment.DeleteCommentWithUserIdResp, err error)
	SetCommentAttrs(ctx context.Context, req *gencomment.SetCommentAttrsReq, res *gencomment.GetCommentSubjectResp) (resp *gencomment.SetCommentAttrsResp, err error)
}

type ILabelService

type ILabelService interface {
	CreateLabel(ctx context.Context, req *gencomment.CreateLabelReq) (resp *gencomment.CreateLabelResp, err error)
	DeleteLabel(ctx context.Context, req *gencomment.DeleteLabelReq) (resp *gencomment.DeleteLabelResp, err error)
	GetLabel(ctx context.Context, req *gencomment.GetLabelReq) (resp *gencomment.GetLabelResp, err error)
	GetLabelsInBatch(ctx context.Context, req *gencomment.GetLabelsInBatchReq) (resp *gencomment.GetLabelsInBatchResp, err error)
	UpdateLabel(ctx context.Context, req *gencomment.UpdateLabelReq) (resp *gencomment.UpdateLabelResp, err error)
	GetLabels(ctx context.Context, req *gencomment.GetLabelsReq) (resp *gencomment.GetLabelsResp, err error)
}

type ISubjectService

type ISubjectService interface {
	UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)
	GetCommentSubject(ctx context.Context, req *gencomment.GetCommentSubjectReq) (resp *gencomment.GetCommentSubjectResp, err error)
	CreateCommentSubject(ctx context.Context, req *gencomment.CreateCommentSubjectReq) (resp *gencomment.CreateCommentSubjectResp, err error)
	UpdateCommentSubject(ctx context.Context, req *gencomment.UpdateCommentSubjectReq) (resp *gencomment.UpdateCommentSubjectResp, err error)
	DeleteCommentSubject(ctx context.Context, req *gencomment.DeleteCommentSubjectReq) (resp *gencomment.DeleteCommentSubjectResp, err error)
}

type LabelService

type LabelService struct {
	LabelEsMapper    labelMapper.IEsMapper
	LabelMongoMapper labelMapper.IMongoMapper
}

func (*LabelService) CreateLabel

func (s *LabelService) CreateLabel(ctx context.Context, req *gencomment.CreateLabelReq) (resp *gencomment.CreateLabelResp, err error)

func (*LabelService) DeleteLabel

func (s *LabelService) DeleteLabel(ctx context.Context, req *gencomment.DeleteLabelReq) (resp *gencomment.DeleteLabelResp, err error)

func (*LabelService) GetLabel

func (s *LabelService) GetLabel(ctx context.Context, req *gencomment.GetLabelReq) (resp *gencomment.GetLabelResp, err error)

func (*LabelService) GetLabels

func (s *LabelService) GetLabels(ctx context.Context, req *gencomment.GetLabelsReq) (resp *gencomment.GetLabelsResp, err error)

func (*LabelService) GetLabelsInBatch

func (s *LabelService) GetLabelsInBatch(ctx context.Context, req *gencomment.GetLabelsInBatchReq) (resp *gencomment.GetLabelsInBatchResp, err error)

func (*LabelService) UpdateLabel

func (s *LabelService) UpdateLabel(ctx context.Context, req *gencomment.UpdateLabelReq) (resp *gencomment.UpdateLabelResp, err error)

type SubjectService

type SubjectService struct {
	SubjectMongoMapper subjectMapper.IMongoMapper
}

func (*SubjectService) CreateCommentSubject

func (*SubjectService) DeleteCommentSubject

func (*SubjectService) GetCommentSubject

func (*SubjectService) UpdateAfterCreateComment

func (s *SubjectService) UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)

func (*SubjectService) UpdateCommentSubject

Jump to

Keyboard shortcuts

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