service

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (s *CommentDomainService) LoadCommentCount(ctx context.Context, comment *core_api.Comment) error

func (*CommentDomainService) LoadIsCurrentUserLiked

func (s *CommentDomainService) LoadIsCurrentUserLiked(ctx context.Context, comment *core_api.Comment, userId string) error

LoadIsCurrentUserLiked 当前用户是否点赞

func (*CommentDomainService) LoadLikeCount

func (s *CommentDomainService) LoadLikeCount(ctx context.Context, comment *core_api.Comment) error

func (*CommentDomainService) LoadReplyUser

func (s *CommentDomainService) LoadReplyUser(ctx context.Context, comment *core_api.Comment, userId string) error

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 (s *MomentDomainService) LoadAuthor(ctx context.Context, moment *core_api.Moment, userId string) error

func (*MomentDomainService) LoadCats

func (s *MomentDomainService) LoadCats(ctx context.Context, moment *core_api.Moment, catIds []string) error

func (*MomentDomainService) LoadCommentCount

func (s *MomentDomainService) LoadCommentCount(ctx context.Context, moment *core_api.Moment) error

func (*MomentDomainService) LoadIsCurrentUserLiked

func (s *MomentDomainService) LoadIsCurrentUserLiked(ctx context.Context, moment *core_api.Moment, userId string) error

func (*MomentDomainService) LoadLikeCount

func (s *MomentDomainService) LoadLikeCount(ctx context.Context, moment *core_api.Moment) error

type PostDomainService

type PostDomainService struct {
	MeowchatUser     meowchat_user.IMeowchatUser
	PlatformCommment platform_comment.IPlatformCommment
}

func (*PostDomainService) LoadAuthor

func (s *PostDomainService) LoadAuthor(ctx context.Context, post *core_api.Post, userId string) error

func (*PostDomainService) LoadCommentCount

func (s *PostDomainService) LoadCommentCount(ctx context.Context, post *core_api.Post) error

func (*PostDomainService) LoadIsCurrentUserLiked

func (s *PostDomainService) LoadIsCurrentUserLiked(ctx context.Context, post *core_api.Post, userId string) error

func (*PostDomainService) LoadLikeCount

func (s *PostDomainService) LoadLikeCount(ctx context.Context, post *core_api.Post) error

type UserDomainService

type UserDomainService struct {
	MeowchatUser    meowchat_user.IMeowchatUser
	MeowchatContent meowchat_content.IMeowchatContent
	MeowchatSystem  meowchat_system.IMeowchatSystem
}

func (*UserDomainService) LoadArticle

func (s *UserDomainService) LoadArticle(ctx context.Context, u *core_api.User) error

func (*UserDomainService) LoadEnableDebug

func (s *UserDomainService) LoadEnableDebug(ctx context.Context, u *core_api.User) error

func (*UserDomainService) LoadFollower

func (s *UserDomainService) LoadFollower(ctx context.Context, u *core_api.User) error

func (*UserDomainService) LoadFollowing

func (s *UserDomainService) LoadFollowing(ctx context.Context, u *core_api.User) error

func (*UserDomainService) LoadRoles

func (s *UserDomainService) LoadRoles(ctx context.Context, u *core_api.User) error

Jump to

Keyboard shortcuts

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