service

package
v1.0.78 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 CatImageDomainService added in v1.0.70

type CatImageDomainService struct {
	MeowchatContent meowchat_content.IMeowchatContent
	MeowchatUser    meowchat_user.IMeowchatUser
}

func (*CatImageDomainService) LoadIsCurrentUserLiked added in v1.0.70

func (s *CatImageDomainService) LoadIsCurrentUserLiked(ctx context.Context, image *core_api.Image, userId string) error

LoadIsCurrentUserLiked 当前用户是否点赞

func (*CatImageDomainService) LoadLikeCount added in v1.0.70

func (s *CatImageDomainService) LoadLikeCount(ctx context.Context, image *core_api.Image) error

type CommentDomainService

type CommentDomainService struct {
	MeowchatContent meowchat_content.IMeowchatContent
	MeowchatUser    meowchat_user.IMeowchatUser
	PlatformComment platform_comment.IPlatformComment
}

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 ICatImageDomainService added in v1.0.70

type ICatImageDomainService interface {
	LoadLikeCount(ctx context.Context, image *core_api.Image) error
	LoadIsCurrentUserLiked(ctx context.Context, image *core_api.Image, 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
	LoadIsFollowing(ctx context.Context, u *core_api.User, userId string) 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
	PlatformComment platform_comment.IPlatformComment
}

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
	PlatformComment platform_comment.IPlatformComment
}

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) LoadIsFollowing added in v1.0.70

func (s *UserDomainService) LoadIsFollowing(ctx context.Context, u *core_api.User, userId string) 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