Documentation ¶
Index ¶
- Variables
- type CommentDomainService
- func (s *CommentDomainService) LoadAuthor(ctx context.Context, comment *core_api.Comment, userId string) error
- func (s *CommentDomainService) LoadCommentCount(ctx context.Context, comment *core_api.Comment) error
- func (s *CommentDomainService) LoadIsCurrentUserLiked(ctx context.Context, comment *core_api.Comment, userId string) error
- func (s *CommentDomainService) LoadLikeCount(ctx context.Context, comment *core_api.Comment) error
- func (s *CommentDomainService) LoadReplyUser(ctx context.Context, comment *core_api.Comment, userId string) error
- type ICommentDomainService
- type IMomentDomainService
- type IPostDomainService
- type IUserDomainService
- type MomentDomainService
- func (s *MomentDomainService) LoadAuthor(ctx context.Context, moment *core_api.Moment, userId string) error
- func (s *MomentDomainService) LoadCats(ctx context.Context, moment *core_api.Moment, catIds []string) error
- func (s *MomentDomainService) LoadCommentCount(ctx context.Context, moment *core_api.Moment) error
- func (s *MomentDomainService) LoadIsCurrentUserLiked(ctx context.Context, moment *core_api.Moment, userId string) error
- func (s *MomentDomainService) LoadLikeCount(ctx context.Context, moment *core_api.Moment) error
- type PostDomainService
- func (s *PostDomainService) LoadAuthor(ctx context.Context, post *core_api.Post, userId string) error
- func (s *PostDomainService) LoadCommentCount(ctx context.Context, post *core_api.Post) error
- func (s *PostDomainService) LoadIsCurrentUserLiked(ctx context.Context, post *core_api.Post, userId string) error
- func (s *PostDomainService) LoadLikeCount(ctx context.Context, post *core_api.Post) error
- type UserDomainService
- func (s *UserDomainService) LoadArticle(ctx context.Context, u *core_api.User) error
- func (s *UserDomainService) LoadEnableDebug(ctx context.Context, u *core_api.User) error
- func (s *UserDomainService) LoadFollower(ctx context.Context, u *core_api.User) error
- func (s *UserDomainService) LoadFollowing(ctx context.Context, u *core_api.User) error
- func (s *UserDomainService) LoadRoles(ctx context.Context, u *core_api.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentDomainServiceSet = wire.NewSet( wire.Struct(new(CommentDomainService), "*"), wire.Bind(new(ICommentDomainService), new(*CommentDomainService)), )
View Source
var MomentDomainServiceSet = wire.NewSet( wire.Struct(new(MomentDomainService), "*"), wire.Bind(new(IMomentDomainService), new(*MomentDomainService)), )
View Source
var PostDomainServiceSet = wire.NewSet( wire.Struct(new(PostDomainService), "*"), wire.Bind(new(IPostDomainService), new(*PostDomainService)), )
View Source
var UserDomainServiceSet = wire.NewSet( wire.Struct(new(UserDomainService), "*"), wire.Bind(new(IUserDomainService), new(*UserDomainService)), )
Functions ¶
This section is empty.
Types ¶
type CommentDomainService ¶
type CommentDomainService struct { MeowchatContent meowchat_content.IMeowchatContent MeowchatUser meowchat_user.IMeowchatUser PlatformCommment platform_comment.IPlatformCommment }
func (*CommentDomainService) LoadAuthor ¶
func (s *CommentDomainService) LoadAuthor(ctx context.Context, comment *core_api.Comment, userId string) error
LoadAuthor 评论作者信息
func (*CommentDomainService) LoadCommentCount ¶
func (*CommentDomainService) LoadIsCurrentUserLiked ¶
func (s *CommentDomainService) LoadIsCurrentUserLiked(ctx context.Context, comment *core_api.Comment, userId string) error
LoadIsCurrentUserLiked 当前用户是否点赞
func (*CommentDomainService) LoadLikeCount ¶
func (*CommentDomainService) LoadReplyUser ¶
type ICommentDomainService ¶
type ICommentDomainService interface { LoadAuthor(ctx context.Context, comment *core_api.Comment, userId string) error LoadReplyUser(ctx context.Context, comment *core_api.Comment, userId string) error LoadCommentCount(ctx context.Context, comment *core_api.Comment) error LoadLikeCount(ctx context.Context, comment *core_api.Comment) error LoadIsCurrentUserLiked(ctx context.Context, comment *core_api.Comment, userId string) error }
type IMomentDomainService ¶
type IMomentDomainService interface { LoadCats(ctx context.Context, moment *core_api.Moment, catIds []string) error LoadAuthor(ctx context.Context, moment *core_api.Moment, userId string) error LoadCommentCount(ctx context.Context, moment *core_api.Moment) error LoadLikeCount(ctx context.Context, moment *core_api.Moment) error LoadIsCurrentUserLiked(ctx context.Context, moment *core_api.Moment, userId string) error }
type IPostDomainService ¶
type IPostDomainService interface { LoadAuthor(ctx context.Context, post *core_api.Post, userId string) error LoadCommentCount(ctx context.Context, post *core_api.Post) error LoadLikeCount(ctx context.Context, post *core_api.Post) error LoadIsCurrentUserLiked(ctx context.Context, post *core_api.Post, userId string) error }
type IUserDomainService ¶
type IUserDomainService interface { LoadFollower(ctx context.Context, u *core_api.User) error LoadFollowing(ctx context.Context, u *core_api.User) error LoadRoles(ctx context.Context, u *core_api.User) error LoadEnableDebug(ctx context.Context, u *core_api.User) error LoadArticle(ctx context.Context, u *core_api.User) error }
type MomentDomainService ¶
type MomentDomainService struct { MeowchatContent meowchat_content.IMeowchatContent MeowchatUser meowchat_user.IMeowchatUser PlatformCommment platform_comment.IPlatformCommment }
func (*MomentDomainService) LoadAuthor ¶
func (*MomentDomainService) LoadCommentCount ¶
func (*MomentDomainService) LoadIsCurrentUserLiked ¶
func (*MomentDomainService) LoadLikeCount ¶
type PostDomainService ¶
type PostDomainService struct { MeowchatUser meowchat_user.IMeowchatUser PlatformCommment platform_comment.IPlatformCommment }
func (*PostDomainService) LoadAuthor ¶
func (*PostDomainService) LoadCommentCount ¶
func (*PostDomainService) LoadIsCurrentUserLiked ¶
func (*PostDomainService) LoadLikeCount ¶
type UserDomainService ¶
type UserDomainService struct { MeowchatUser meowchat_user.IMeowchatUser MeowchatContent meowchat_content.IMeowchatContent MeowchatSystem meowchat_system.IMeowchatSystem }
func (*UserDomainService) LoadArticle ¶
func (*UserDomainService) LoadEnableDebug ¶
func (*UserDomainService) LoadFollower ¶
func (*UserDomainService) LoadFollowing ¶
Click to show internal directories.
Click to hide internal directories.