Documentation
¶
Index ¶
- Variables
- type CommentService
- func (s *CommentService) CreateComment(ctx context.Context, req *gencomment.CreateCommentReq) (resp *gencomment.CreateCommentResp, err error)
- func (s *CommentService) DeleteComment(ctx context.Context, req *gencomment.DeleteCommentReq) (resp *gencomment.DeleteCommentResp, err error)
- func (s *CommentService) DeleteCommentWithUserId(ctx context.Context, req *gencomment.DeleteCommentWithUserIdReq) (resp *gencomment.DeleteCommentWithUserIdResp, err error)
- func (s *CommentService) GetComment(ctx context.Context, req *gencomment.GetCommentReq) (resp *gencomment.GetCommentResp, err error)
- func (s *CommentService) GetCommentList(ctx context.Context, req *gencomment.GetCommentListReq) (resp *gencomment.GetCommentListResp, err error)
- func (s *CommentService) SetCommentAttrs(ctx context.Context, req *gencomment.SetCommentAttrsReq, ...) (resp *gencomment.SetCommentAttrsResp, err error)
- func (s *CommentService) UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)
- func (s *CommentService) UpdateComment(ctx context.Context, req *gencomment.UpdateCommentReq) (resp *gencomment.UpdateCommentResp, err error)
- type ICommentService
- type ILabelService
- type ISubjectService
- type LabelService
- func (s *LabelService) CreateLabel(ctx context.Context, req *gencomment.CreateLabelReq) (resp *gencomment.CreateLabelResp, err error)
- func (s *LabelService) DeleteLabel(ctx context.Context, req *gencomment.DeleteLabelReq) (resp *gencomment.DeleteLabelResp, err error)
- func (s *LabelService) GetLabel(ctx context.Context, req *gencomment.GetLabelReq) (resp *gencomment.GetLabelResp, err error)
- func (s *LabelService) GetLabels(ctx context.Context, req *gencomment.GetLabelsReq) (resp *gencomment.GetLabelsResp, err error)
- func (s *LabelService) GetLabelsInBatch(ctx context.Context, req *gencomment.GetLabelsInBatchReq) (resp *gencomment.GetLabelsInBatchResp, err error)
- func (s *LabelService) UpdateLabel(ctx context.Context, req *gencomment.UpdateLabelReq) (resp *gencomment.UpdateLabelResp, err error)
- type SubjectService
- func (s *SubjectService) CreateCommentSubject(ctx context.Context, req *gencomment.CreateCommentSubjectReq) (resp *gencomment.CreateCommentSubjectResp, err error)
- func (s *SubjectService) DeleteCommentSubject(ctx context.Context, req *gencomment.DeleteCommentSubjectReq) (resp *gencomment.DeleteCommentSubjectResp, err error)
- func (s *SubjectService) GetCommentSubject(ctx context.Context, req *gencomment.GetCommentSubjectReq) (resp *gencomment.GetCommentSubjectResp, err error)
- func (s *SubjectService) UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)
- func (s *SubjectService) UpdateCommentSubject(ctx context.Context, req *gencomment.UpdateCommentSubjectReq) (resp *gencomment.UpdateCommentSubjectResp, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentSet = wire.NewSet( wire.Struct(new(CommentService), "*"), wire.Bind(new(ICommentService), new(*CommentService)), )
View Source
var LabelSet = wire.NewSet( wire.Struct(new(LabelService), "*"), wire.Bind(new(ILabelService), new(*LabelService)), )
View Source
var SubjectSet = wire.NewSet( wire.Struct(new(SubjectService), "*"), wire.Bind(new(ISubjectService), new(*SubjectService)), )
Functions ¶
This section is empty.
Types ¶
type CommentService ¶
type CommentService struct {
CommentMongoMapper commentMapper.IMongoMapper
SubjectMongoMapper subjectMapper.IMongoMapper
}
func (*CommentService) CreateComment ¶
func (s *CommentService) CreateComment(ctx context.Context, req *gencomment.CreateCommentReq) (resp *gencomment.CreateCommentResp, err error)
func (*CommentService) DeleteComment ¶
func (s *CommentService) DeleteComment(ctx context.Context, req *gencomment.DeleteCommentReq) (resp *gencomment.DeleteCommentResp, err error)
func (*CommentService) DeleteCommentWithUserId ¶
func (s *CommentService) DeleteCommentWithUserId(ctx context.Context, req *gencomment.DeleteCommentWithUserIdReq) (resp *gencomment.DeleteCommentWithUserIdResp, err error)
func (*CommentService) GetComment ¶
func (s *CommentService) GetComment(ctx context.Context, req *gencomment.GetCommentReq) (resp *gencomment.GetCommentResp, err error)
func (*CommentService) GetCommentList ¶
func (s *CommentService) GetCommentList(ctx context.Context, req *gencomment.GetCommentListReq) (resp *gencomment.GetCommentListResp, err error)
func (*CommentService) SetCommentAttrs ¶
func (s *CommentService) SetCommentAttrs(ctx context.Context, req *gencomment.SetCommentAttrsReq, res *gencomment.GetCommentSubjectResp) (resp *gencomment.SetCommentAttrsResp, err error)
func (*CommentService) UpdateAfterCreateComment ¶
func (s *CommentService) UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)
func (*CommentService) UpdateComment ¶
func (s *CommentService) UpdateComment(ctx context.Context, req *gencomment.UpdateCommentReq) (resp *gencomment.UpdateCommentResp, err error)
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 (s *SubjectService) CreateCommentSubject(ctx context.Context, req *gencomment.CreateCommentSubjectReq) (resp *gencomment.CreateCommentSubjectResp, err error)
func (*SubjectService) DeleteCommentSubject ¶
func (s *SubjectService) DeleteCommentSubject(ctx context.Context, req *gencomment.DeleteCommentSubjectReq) (resp *gencomment.DeleteCommentSubjectResp, err error)
func (*SubjectService) GetCommentSubject ¶
func (s *SubjectService) GetCommentSubject(ctx context.Context, req *gencomment.GetCommentSubjectReq) (resp *gencomment.GetCommentSubjectResp, err error)
func (*SubjectService) UpdateAfterCreateComment ¶
func (s *SubjectService) UpdateAfterCreateComment(ctx context.Context, req *gencomment.Comment)
func (*SubjectService) UpdateCommentSubject ¶
func (s *SubjectService) UpdateCommentSubject(ctx context.Context, req *gencomment.UpdateCommentSubjectReq) (resp *gencomment.UpdateCommentSubjectResp, err error)
Click to show internal directories.
Click to hide internal directories.