service

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: GPL-2.0 Imports: 30 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 {
	Collection meowchat_content.IMeowchatContent
	Config     *config.Config
	Sts        platform_sts.IPlatformSts
}

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

func (*CollectionService) SearchCat added in v1.0.2

type CommentService added in v1.0.6

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, user *basic.UserMeta) (*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, user *basic.UserMeta) (*core_api.NewCommentResp, error)
	DeleteComment(ctx context.Context, req *core_api.DeleteCommentReq) (*core_api.DeleteCommentResp, error)
}

type ILikeService added in v1.0.6

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, user *basic.UserMeta) (*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, user *basic.UserMeta) (*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, user *basic.UserMeta) (*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)
}

type IUserService added in v1.0.6

type LikeService added in v1.0.6

type LikeService struct {
	Config  *config.Config
	User    meowchat_user.IMeowchatUser
	Content meowchat_content.IMeowchatContent
}

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) 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
	Moment meowchat_content.IMeowchatContent
	User   meowchat_user.IMeowchatUser
	Sts    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

func (*MomentService) SearchMoment added in v1.0.6

type PlanService added in v1.0.15

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) ListFishByPlan added in v1.0.16

func (*PlanService) NewPlan added in v1.0.15

func (*PlanService) SearchPlan added in v1.0.15

type PostService added in v1.0.6

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) 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) 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) 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) 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

func (*UserService) GetUserInfo added in v1.0.6

func (*UserService) SearchUser added in v1.0.6

func (*UserService) SearchUserForAdmin 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