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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PageSize int64 = 10

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	Config  *config.Config
	Sts     platform_sts.IPlatformSts
	Content meowchat_content.IMeowchatContent
}

func (*AuthService) SendVerifyCode

func (*AuthService) SetPassword

func (*AuthService) SignIn

type CollectionService

type CollectionService struct {
	MeowchatContent       meowchat_content.IMeowchatContent
	Config                *config.Config
	PlatformSts           platform_sts.IPlatformSts
	CatImageDomainService service.ICatImageDomainService
}

func (*CollectionService) CreateImage added in v1.0.2

func (*CollectionService) DeleteCat added in v1.0.2

func (*CollectionService) DeleteImage added in v1.0.2

func (*CollectionService) GetCatDetail added in v1.0.2

func (*CollectionService) GetCatPreviews

func (*CollectionService) GetImageByCat added in v1.0.2

func (*CollectionService) NewCat added in v1.0.2

type CommentService added in v1.0.6

type CommentService struct {
	Config               *config.Config
	CommentDomainService service.ICommentDomainService
	PlatformComment      platform_comment.IPlatformComment
	PlatformSts          platform_sts.IPlatformSts
	MeowchatContent      meowchat_content.IMeowchatContent
	MeowchatSystem       meowchat_system.IMeowchatSystem
}

func (*CommentService) DeleteComment added in v1.0.6

func (*CommentService) GetComments added in v1.0.6

func (*CommentService) NewComment added in v1.0.6

type IAuthService

type IAuthService interface {
	SignIn(ctx context.Context, req *core_api.SignInReq) (*core_api.SignInResp, error)
	SetPassword(ctx context.Context, req *core_api.SetPasswordReq) (*core_api.SetPasswordResp, error)
	SendVerifyCode(ctx context.Context, req *core_api.SendVerifyCodeReq) (*core_api.SendVerifyCodeResp, error)
}

type ICommentService added in v1.0.6

type ICommentService interface {
	GetComments(ctx context.Context, req *core_api.GetCommentsReq) (*core_api.GetCommentsResp, error)
	NewComment(ctx context.Context, req *core_api.NewCommentReq) (*core_api.NewCommentResp, error)
	DeleteComment(ctx context.Context, req *core_api.DeleteCommentReq) (*core_api.DeleteCommentResp, error)
}

type IIncentiveService added in v1.0.76

type IIncentiveService interface {
	CheckIn(ctx context.Context, req *core_api.CheckInReq) (*core_api.CheckInResp, error)
	GetMission(ctx context.Context, req *core_api.GetMissionReq) (*core_api.GetMissionResp, error)
}

type IMomentService added in v1.0.6

type IPostService added in v1.0.6

type IStsService added in v1.0.6

type IStsService interface {
	ApplySignedUrl(ctx context.Context, req *core_api.ApplySignedUrlReq) (*core_api.ApplySignedUrlResp, error)
	ApplySignedUrlAsCommunity(ctx context.Context, req *core_api.ApplySignedUrlAsCommunityReq) (*core_api.ApplySignedUrlAsCommunityResp, error)
}

type ISystemService added in v1.0.6

type ISystemService interface {
	CreateApply(ctx context.Context, req *core_api.CreateApplyReq) (*core_api.CreateApplyResp, error)
	DeleteAdmin(ctx context.Context, req *core_api.DeleteAdminReq) (*core_api.DeleteAdminResp, error)
	DeleteCommunity(ctx context.Context, req *core_api.DeleteCommunityReq) (*core_api.DeleteCommunityResp, error)
	DeleteNews(ctx context.Context, req *core_api.DeleteNewsReq) (*core_api.DeleteNewsResp, error)
	DeleteNotice(ctx context.Context, req *core_api.DeleteNoticeReq) (*core_api.DeleteNoticeResp, error)
	GetAdmins(ctx context.Context, req *core_api.GetAdminsReq) (*core_api.GetAdminsResp, error)
	GetNews(ctx context.Context, req *core_api.GetNewsReq) (*core_api.GetNewsResp, error)
	GetNotices(ctx context.Context, req *core_api.GetNoticesReq) (*core_api.GetNoticesResp, error)
	GetUserByRole(ctx context.Context, req *core_api.RetrieveUserPreviewReq) (*core_api.RetrieveUserPreviewResp, error)
	GetUserRoles(ctx context.Context, req *core_api.GetUserRolesReq) (*core_api.GetUserRolesResp, error)
	HandleApply(ctx context.Context, req *core_api.HandleApplyReq) (*core_api.HandleApplyResp, error)
	ListApply(ctx context.Context, req *core_api.ListApplyReq) (*core_api.ListApplyResp, error)
	ListCommunity(ctx context.Context, req *core_api.ListCommunityReq) (*core_api.ListCommunityResp, error)
	NewAdmin(ctx context.Context, req *core_api.NewAdminReq) (*core_api.NewAdminResp, error)
	NewCommunity(ctx context.Context, req *core_api.NewCommunityReq) (*core_api.NewCommunityResp, error)
	NewNews(ctx context.Context, req *core_api.NewNewsReq) (*core_api.NewNewsResp, error)
	NewNotice(ctx context.Context, req *core_api.NewNoticeReq) (*core_api.NewNoticeResp, error)
	UpdateCommunityAdmin(ctx context.Context, req *core_api.UpdateCommunityAdminReq) (*core_api.UpdateCommunityAdminResp, error)
	UpdateSuperAdmin(ctx context.Context, req *core_api.UpdateSuperAdminReq) (*core_api.UpdateSuperAdminResp, error)
	UpdateRole(ctx context.Context, req *core_api.UpdateRoleReq) (*core_api.UpdateRoleResp, error)
	GetMinVersion(ctx context.Context, req *core_api.GetMinVersionReq) (*core_api.GetMinVersionResp, error)
	ListNotification(ctx context.Context, req *core_api.ListNotificationReq) (*core_api.ListNotificationResp, error)
	ReadNotification(ctx context.Context, req *core_api.ReadNotificationReq) (*core_api.ReadNotificationResp, error)
	CountNotification(ctx context.Context, req *core_api.CountNotificationReq) (*core_api.CountNotificationResp, error)
	CleanNotification(ctx context.Context, req *core_api.CleanNotificationReq) (*core_api.CleanNotificationResp, error)
}

type IUserService added in v1.0.6

type IUserService interface {
	GetUserInfo(ctx context.Context, req *core_api.GetUserInfoReq) (*core_api.GetUserInfoResp, error)
	SearchUser(ctx context.Context, req *core_api.SearchUserReq) (*core_api.SearchUserResp, error)
	UpdateUserInfo(ctx context.Context, req *core_api.UpdateUserInfoReq) (*core_api.UpdateUserInfoResp, error)
}

type IncentiveService added in v1.0.76

type IncentiveService struct {
	Config          *config.Config
	MeowchatContent meowchat_content.IMeowchatContent
}

func (*IncentiveService) CheckIn added in v1.0.76

func (*IncentiveService) GetMission added in v1.0.76

type LikeService added in v1.0.6

type LikeService struct {
	Config               *config.Config
	MeowchatUser         meowchat_user.IMeowchatUser
	MeowchatContent      meowchat_content.IMeowchatContent
	PlatformComment      platform_comment.IPlatformComment
	UserDomainService    service.IUserDomainService
	PostDomainService    service.IPostDomainService
	MomentDomainService  service.IMomentDomainService
	CommentDomainService service.ICommentDomainService
	MeowchatSystem       meowchat_system.IMeowchatSystem
}

func (*LikeService) DoLike added in v1.0.6

func (*LikeService) GetLikedCount added in v1.0.6

func (*LikeService) GetLikedUsers added in v1.0.6

func (*LikeService) GetUserLikeContents added in v1.0.50

func (*LikeService) GetUserLiked added in v1.0.6

func (*LikeService) GetUserLikes added in v1.0.6

type MomentService added in v1.0.6

type MomentService struct {
	Config              *config.Config
	MomentDomainService service.IMomentDomainService
	MeowchatContent     meowchat_content.IMeowchatContent
	MeowchatUser        meowchat_user.IMeowchatUser
	PlatformSts         platform_sts.IPlatformSts
}

func (*MomentService) DeleteMoment added in v1.0.6

func (*MomentService) GetMomentDetail added in v1.0.6

func (*MomentService) GetMomentPreviews added in v1.0.6

func (*MomentService) NewMoment added in v1.0.6

type PlanService added in v1.0.15

func (*PlanService) CountDonateByPlan added in v1.0.39

func (*PlanService) CountDonateByUser added in v1.0.39

func (*PlanService) DeletePlan added in v1.0.15

func (*PlanService) DonateFish added in v1.0.16

func (*PlanService) GetPlanDetail added in v1.0.15

func (*PlanService) GetPlanPreviews added in v1.0.15

func (*PlanService) GetUserFish added in v1.0.16

func (*PlanService) ListDonateByUser added in v1.0.39

func (*PlanService) ListFishByPlan added in v1.0.16

func (*PlanService) NewPlan added in v1.0.15

type PostService added in v1.0.6

type PostService struct {
	Config            *config.Config
	PostDomainService service.IPostDomainService
	MeowchatContent   meowchat_content.IMeowchatContent
	PlatformSts       platform_sts.IPlatformSts
}

func (*PostService) DeletePost added in v1.0.6

func (*PostService) GetPostDetail added in v1.0.6

func (*PostService) GetPostPreviews added in v1.0.6

func (*PostService) NewPost added in v1.0.6

func (*PostService) SetOfficial added in v1.0.6

type StsService added in v1.0.6

type StsService struct {
	PlatformSts platform_sts.IPlatformSts
}

func (*StsService) ApplySignedUrl added in v1.0.6

func (*StsService) ApplySignedUrlAsCommunity added in v1.0.6

type SystemService added in v1.0.6

type SystemService struct {
	Config *config.Config
	System meowchat_system.IMeowchatSystem
	User   meowchat_user.IMeowchatUser
}

func (*SystemService) CleanNotification added in v1.0.45

func (*SystemService) CountNotification added in v1.0.45

func (*SystemService) CreateApply added in v1.0.6

func (*SystemService) DeleteAdmin added in v1.0.6

func (*SystemService) DeleteCommunity added in v1.0.6

func (*SystemService) DeleteNews added in v1.0.6

func (*SystemService) DeleteNotice added in v1.0.6

func (*SystemService) GetAdmins added in v1.0.6

func (*SystemService) GetMinVersion added in v1.0.32

func (*SystemService) GetNews added in v1.0.6

func (*SystemService) GetNotices added in v1.0.6

func (*SystemService) GetOneUser added in v1.0.6

func (s *SystemService) GetOneUser(userid string, wg *sync.WaitGroup, i int, Users []*user1.UserPreview, chan1 chan error, ctx context.Context) (err error)

func (*SystemService) GetUserByRole added in v1.0.6

func (*SystemService) GetUserRoles added in v1.0.6

func (*SystemService) HandleApply added in v1.0.6

func (*SystemService) ListApply added in v1.0.6

func (*SystemService) ListCommunity added in v1.0.6

func (*SystemService) ListNotification added in v1.0.45

func (*SystemService) NewAdmin added in v1.0.6

func (*SystemService) NewCommunity added in v1.0.6

func (*SystemService) NewNews added in v1.0.6

func (*SystemService) NewNotice added in v1.0.6

func (*SystemService) ReadNotification added in v1.0.45

func (*SystemService) UpdateCommunityAdmin added in v1.0.6

func (*SystemService) UpdateRole added in v1.0.11

func (*SystemService) UpdateSuperAdmin added in v1.0.6

type UserService added in v1.0.6

type UserService struct {
	Config       *config.Config
	UserService  service.IUserDomainService
	MeowchatUser meowchat_user.IMeowchatUser
	PlatformSts  platform_sts.IPlatformSts
}

func (*UserService) GetUserInfo added in v1.0.6

func (*UserService) SearchUser added in v1.0.6

func (*UserService) UpdateUserInfo added in v1.0.6

Jump to

Keyboard shortcuts

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