Documentation ¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) SendVerifyCode(ctx context.Context, req *core_api.SendVerifyCodeReq) (*core_api.SendVerifyCodeResp, error)
- func (s *AuthService) SetPassword(ctx context.Context, req *core_api.SetPasswordReq, user *basic.UserMeta) (*core_api.SetPasswordResp, error)
- func (s *AuthService) SignIn(ctx context.Context, req *core_api.SignInReq) (*core_api.SignInResp, error)
- type CollectionService
- func (s *CollectionService) CreateImage(ctx context.Context, req *core_api.CreateImageReq, user *basic.UserMeta) (*core_api.CreateImageResp, error)
- func (s *CollectionService) DeleteCat(ctx context.Context, req *core_api.DeleteCatReq) (*core_api.DeleteCatResp, error)
- func (s *CollectionService) DeleteImage(ctx context.Context, req *core_api.DeleteImageReq) (*core_api.DeleteImageResp, error)
- func (s *CollectionService) GetCatDetail(ctx context.Context, req *core_api.GetCatDetailReq) (*core_api.GetCatDetailResp, error)
- func (s *CollectionService) GetCatPreviews(ctx context.Context, req *core_api.GetCatPreviewsReq) (*core_api.GetCatPreviewsResp, error)
- func (s *CollectionService) GetImageByCat(ctx context.Context, req *core_api.GetImageByCatReq) (*core_api.GetImageByCatResp, error)
- func (s *CollectionService) NewCat(ctx context.Context, req *core_api.NewCatReq) (*core_api.NewCatResp, error)
- type CommentService
- func (s *CommentService) DeleteComment(ctx context.Context, req *core_api.DeleteCommentReq) (*core_api.DeleteCommentResp, error)
- func (s *CommentService) GetComments(ctx context.Context, req *core_api.GetCommentsReq, userMeta *basic.UserMeta) (*core_api.GetCommentsResp, error)
- func (s *CommentService) NewComment(ctx context.Context, req *core_api.NewCommentReq, user *basic.UserMeta) (*core_api.NewCommentResp, error)
- type IAuthService
- type ICollectionService
- type ICommentService
- type ILikeService
- type IMomentService
- type IPlanService
- type IPostService
- type IStsService
- type ISystemService
- type IUserService
- type LikeService
- func (s *LikeService) DoLike(ctx context.Context, req *core_api.DoLikeReq, user *basic.UserMeta) (*core_api.DoLikeResp, error)
- func (s *LikeService) GetLikedCount(ctx context.Context, req *core_api.GetLikedCountReq) (*core_api.GetLikedCountResp, error)
- func (s *LikeService) GetLikedUsers(ctx context.Context, req *core_api.GetLikedUsersReq) (*core_api.GetLikedUsersResp, error)
- func (s *LikeService) GetUserLiked(ctx context.Context, req *core_api.GetUserLikedReq, user *basic.UserMeta) (*core_api.GetUserLikedResp, error)
- func (s *LikeService) GetUserLikes(ctx context.Context, req *core_api.GetUserLikesReq) (*core_api.GetUserLikesResp, error)
- type MomentService
- func (s *MomentService) DeleteMoment(ctx context.Context, req *core_api.DeleteMomentReq) (*core_api.DeleteMomentResp, error)
- func (s *MomentService) GetMomentDetail(ctx context.Context, req *core_api.GetMomentDetailReq, ...) (*core_api.GetMomentDetailResp, error)
- func (s *MomentService) GetMomentPreviews(ctx context.Context, req *core_api.GetMomentPreviewsReq) (*core_api.GetMomentPreviewsResp, error)
- func (s *MomentService) NewMoment(ctx context.Context, req *core_api.NewMomentReq, user *genbasic.UserMeta) (*core_api.NewMomentResp, error)
- type PlanService
- func (s *PlanService) DeletePlan(ctx context.Context, req *core_api.DeletePlanReq) (*core_api.DeletePlanResp, error)
- func (s *PlanService) DonateFish(ctx context.Context, req *core_api.DonateFishReq, user *basic.UserMeta) (*core_api.DonateFishResp, error)
- func (s *PlanService) GetPlanDetail(ctx context.Context, req *core_api.GetPlanDetailReq) (*core_api.GetPlanDetailResp, error)
- func (s *PlanService) GetPlanPreviews(ctx context.Context, req *core_api.GetPlanPreviewsReq) (*core_api.GetPlanPreviewsResp, error)
- func (s *PlanService) GetUserFish(ctx context.Context, req *core_api.GetUserFishReq, user *basic.UserMeta) (*core_api.GetUserFishResp, error)
- func (s *PlanService) ListFishByPlan(ctx context.Context, req *core_api.ListFishByPlanReq) (*core_api.ListFishByPlanResp, error)
- func (s *PlanService) NewPlan(ctx context.Context, req *core_api.NewPlanReq, user *basic.UserMeta) (*core_api.NewPlanResp, error)
- type PostService
- func (s *PostService) DeletePost(ctx context.Context, req *core_api.DeletePostReq) (*core_api.DeletePostResp, error)
- func (s *PostService) GetPostDetail(ctx context.Context, req *core_api.GetPostDetailReq, ...) (*core_api.GetPostDetailResp, error)
- func (s *PostService) GetPostPreviews(ctx context.Context, req *core_api.GetPostPreviewsReq) (*core_api.GetPostPreviewsResp, error)
- func (s *PostService) NewPost(ctx context.Context, req *core_api.NewPostReq, user *genbasic.UserMeta) (*core_api.NewPostResp, error)
- func (s *PostService) SetOfficial(ctx context.Context, req *core_api.SetOfficialReq) (*core_api.SetOfficialResp, error)
- type StsService
- func (s *StsService) ApplySignedUrl(ctx context.Context, req *core_api.ApplySignedUrlReq, user *basic.UserMeta) (*core_api.ApplySignedUrlResp, error)
- func (s *StsService) ApplySignedUrlAsCommunity(ctx context.Context, req *core_api.ApplySignedUrlAsCommunityReq) (*core_api.ApplySignedUrlAsCommunityResp, error)
- type SystemService
- func (s *SystemService) CreateApply(ctx context.Context, req *core_api.CreateApplyReq, user *basic.UserMeta) (*core_api.CreateApplyResp, error)
- func (s *SystemService) DeleteAdmin(ctx context.Context, req *core_api.DeleteAdminReq) (*core_api.DeleteAdminResp, error)
- func (s *SystemService) DeleteCommunity(ctx context.Context, req *core_api.DeleteCommunityReq) (*core_api.DeleteCommunityResp, error)
- func (s *SystemService) DeleteNews(ctx context.Context, req *core_api.DeleteNewsReq) (*core_api.DeleteNewsResp, error)
- func (s *SystemService) DeleteNotice(ctx context.Context, req *core_api.DeleteNoticeReq) (*core_api.DeleteNoticeResp, error)
- func (s *SystemService) GetAdmins(ctx context.Context, req *core_api.GetAdminsReq) (*core_api.GetAdminsResp, error)
- func (s *SystemService) GetNews(ctx context.Context, req *core_api.GetNewsReq) (*core_api.GetNewsResp, error)
- func (s *SystemService) GetNotices(ctx context.Context, req *core_api.GetNoticesReq) (*core_api.GetNoticesResp, error)
- func (s *SystemService) GetOneUser(userid string, wg *sync.WaitGroup, i int, Users []*user1.UserPreview, ...) (err error)
- func (s *SystemService) GetUserByRole(ctx context.Context, req *core_api.RetrieveUserPreviewReq) (*core_api.RetrieveUserPreviewResp, error)
- func (s *SystemService) GetUserRoles(ctx context.Context, req *core_api.GetUserRolesReq, user *basic.UserMeta) (*core_api.GetUserRolesResp, error)
- func (s *SystemService) HandleApply(ctx context.Context, req *core_api.HandleApplyReq) (*core_api.HandleApplyResp, error)
- func (s *SystemService) ListApply(ctx context.Context, req *core_api.ListApplyReq) (*core_api.ListApplyResp, error)
- func (s *SystemService) ListCommunity(ctx context.Context, req *core_api.ListCommunityReq) (*core_api.ListCommunityResp, error)
- func (s *SystemService) NewAdmin(ctx context.Context, req *core_api.NewAdminReq) (*core_api.NewAdminResp, error)
- func (s *SystemService) NewCommunity(ctx context.Context, req *core_api.NewCommunityReq) (*core_api.NewCommunityResp, error)
- func (s *SystemService) NewNews(ctx context.Context, req *core_api.NewNewsReq) (*core_api.NewNewsResp, error)
- func (s *SystemService) NewNotice(ctx context.Context, req *core_api.NewNoticeReq) (*core_api.NewNoticeResp, error)
- func (s *SystemService) UpdateCommunityAdmin(ctx context.Context, req *core_api.UpdateCommunityAdminReq) (*core_api.UpdateCommunityAdminResp, error)
- func (s *SystemService) UpdateRole(ctx context.Context, req *core_api.UpdateRoleReq) (*core_api.UpdateRoleResp, error)
- func (s *SystemService) UpdateSuperAdmin(ctx context.Context, req *core_api.UpdateSuperAdminReq) (*core_api.UpdateSuperAdminResp, error)
- type UserService
- func (s *UserService) GetUserInfo(ctx context.Context, req *core_api.GetUserInfoReq, user *basic.UserMeta) (*core_api.GetUserInfoResp, error)
- func (s *UserService) SearchUser(ctx context.Context, req *core_api.SearchUserReq) (*core_api.SearchUserResp, error)
- func (s *UserService) UpdateUserInfo(ctx context.Context, req *core_api.UpdateUserInfoReq, user *basic.UserMeta) (*core_api.UpdateUserInfoResp, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthServiceSet = wire.NewSet( wire.Struct(new(AuthService), "*"), wire.Bind(new(IAuthService), new(*AuthService)), )
View Source
var CollectionServiceSet = wire.NewSet( wire.Struct(new(CollectionService), "*"), wire.Bind(new(ICollectionService), new(*CollectionService)), )
View Source
var CommentServiceSet = wire.NewSet( wire.Struct(new(CommentService), "*"), wire.Bind(new(ICommentService), new(*CommentService)), )
View Source
var LikeServiceSet = wire.NewSet( wire.Struct(new(LikeService), "*"), wire.Bind(new(ILikeService), new(*LikeService)), )
View Source
var MomentServiceSet = wire.NewSet( wire.Struct(new(MomentService), "*"), wire.Bind(new(IMomentService), new(*MomentService)), )
View Source
var PageSize int64 = 10
View Source
var PlanServiceSet = wire.NewSet( wire.Struct(new(PlanService), "*"), wire.Bind(new(IPlanService), new(*PlanService)), )
View Source
var PostServiceSet = wire.NewSet( wire.Struct(new(PostService), "*"), wire.Bind(new(IPostService), new(*PostService)), )
View Source
var StsServiceSet = wire.NewSet( wire.Struct(new(StsService), "*"), wire.Bind(new(IStsService), new(*StsService)), )
View Source
var SystemServiceSet = wire.NewSet( wire.Struct(new(SystemService), "*"), wire.Bind(new(ISystemService), new(*SystemService)), )
View Source
var UserServiceSet = wire.NewSet( wire.Struct(new(UserService), "*"), wire.Bind(new(IUserService), new(*UserService)), )
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 (s *AuthService) SendVerifyCode(ctx context.Context, req *core_api.SendVerifyCodeReq) (*core_api.SendVerifyCodeResp, error)
func (*AuthService) SetPassword ¶
func (s *AuthService) SetPassword(ctx context.Context, req *core_api.SetPasswordReq, user *basic.UserMeta) (*core_api.SetPasswordResp, error)
func (*AuthService) SignIn ¶
func (s *AuthService) SignIn(ctx context.Context, req *core_api.SignInReq) (*core_api.SignInResp, error)
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 (s *CollectionService) CreateImage(ctx context.Context, req *core_api.CreateImageReq, user *basic.UserMeta) (*core_api.CreateImageResp, error)
func (*CollectionService) DeleteCat ¶ added in v1.0.2
func (s *CollectionService) DeleteCat(ctx context.Context, req *core_api.DeleteCatReq) (*core_api.DeleteCatResp, error)
func (*CollectionService) DeleteImage ¶ added in v1.0.2
func (s *CollectionService) DeleteImage(ctx context.Context, req *core_api.DeleteImageReq) (*core_api.DeleteImageResp, error)
func (*CollectionService) GetCatDetail ¶ added in v1.0.2
func (s *CollectionService) GetCatDetail(ctx context.Context, req *core_api.GetCatDetailReq) (*core_api.GetCatDetailResp, error)
func (*CollectionService) GetCatPreviews ¶
func (s *CollectionService) GetCatPreviews(ctx context.Context, req *core_api.GetCatPreviewsReq) (*core_api.GetCatPreviewsResp, error)
func (*CollectionService) GetImageByCat ¶ added in v1.0.2
func (s *CollectionService) GetImageByCat(ctx context.Context, req *core_api.GetImageByCatReq) (*core_api.GetImageByCatResp, error)
func (*CollectionService) NewCat ¶ added in v1.0.2
func (s *CollectionService) NewCat(ctx context.Context, req *core_api.NewCatReq) (*core_api.NewCatResp, error)
type CommentService ¶ added in v1.0.6
type CommentService struct { Config *config.Config CommentDomainService service.ICommentDomainService PlatformComment platform_comment.IPlatformCommment PlatformSts platform_sts.IPlatformSts MeowchatContent meowchat_content.IMeowchatContent }
func (*CommentService) DeleteComment ¶ added in v1.0.6
func (s *CommentService) DeleteComment(ctx context.Context, req *core_api.DeleteCommentReq) (*core_api.DeleteCommentResp, error)
func (*CommentService) GetComments ¶ added in v1.0.6
func (s *CommentService) GetComments(ctx context.Context, req *core_api.GetCommentsReq, userMeta *basic.UserMeta) (*core_api.GetCommentsResp, error)
func (*CommentService) NewComment ¶ added in v1.0.6
func (s *CommentService) NewComment(ctx context.Context, req *core_api.NewCommentReq, user *basic.UserMeta) (*core_api.NewCommentResp, error)
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 ICollectionService ¶
type ICollectionService interface { GetCatPreviews(ctx context.Context, req *core_api.GetCatPreviewsReq) (*core_api.GetCatPreviewsResp, error) GetCatDetail(ctx context.Context, req *core_api.GetCatDetailReq) (*core_api.GetCatDetailResp, error) NewCat(ctx context.Context, req *core_api.NewCatReq) (*core_api.NewCatResp, error) DeleteCat(ctx context.Context, req *core_api.DeleteCatReq) (*core_api.DeleteCatResp, error) CreateImage(ctx context.Context, req *core_api.CreateImageReq, user *basic.UserMeta) (*core_api.CreateImageResp, error) DeleteImage(ctx context.Context, req *core_api.DeleteImageReq) (*core_api.DeleteImageResp, error) GetImageByCat(ctx context.Context, req *core_api.GetImageByCatReq) (*core_api.GetImageByCatResp, error) }
type ICommentService ¶ added in v1.0.6
type ICommentService interface { GetComments(ctx context.Context, req *core_api.GetCommentsReq, user *basic.UserMeta) (*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 ILikeService interface { DoLike(ctx context.Context, req *core_api.DoLikeReq, user *basic.UserMeta) (*core_api.DoLikeResp, error) GetLikedCount(ctx context.Context, req *core_api.GetLikedCountReq) (*core_api.GetLikedCountResp, error) GetLikedUsers(ctx context.Context, req *core_api.GetLikedUsersReq) (*core_api.GetLikedUsersResp, error) GetUserLiked(ctx context.Context, req *core_api.GetUserLikedReq, user *basic.UserMeta) (*core_api.GetUserLikedResp, error) GetUserLikes(ctx context.Context, req *core_api.GetUserLikesReq) (*core_api.GetUserLikesResp, error) }
type IMomentService ¶ added in v1.0.6
type IMomentService interface { DeleteMoment(ctx context.Context, req *core_api.DeleteMomentReq) (*core_api.DeleteMomentResp, error) GetMomentDetail(ctx context.Context, req *core_api.GetMomentDetailReq, userMeta *genbasic.UserMeta) (*core_api.GetMomentDetailResp, error) GetMomentPreviews(ctx context.Context, req *core_api.GetMomentPreviewsReq) (*core_api.GetMomentPreviewsResp, error) NewMoment(ctx context.Context, req *core_api.NewMomentReq, user *genbasic.UserMeta) (*core_api.NewMomentResp, error) }
type IPlanService ¶ added in v1.0.15
type IPlanService interface { DeletePlan(ctx context.Context, req *core_api.DeletePlanReq) (*core_api.DeletePlanResp, error) GetPlanDetail(ctx context.Context, req *core_api.GetPlanDetailReq) (*core_api.GetPlanDetailResp, error) GetPlanPreviews(ctx context.Context, req *core_api.GetPlanPreviewsReq) (*core_api.GetPlanPreviewsResp, error) NewPlan(ctx context.Context, req *core_api.NewPlanReq, user *basic.UserMeta) (*core_api.NewPlanResp, error) DonateFish(ctx context.Context, req *core_api.DonateFishReq, user *basic.UserMeta) (*core_api.DonateFishResp, error) GetUserFish(ctx context.Context, req *core_api.GetUserFishReq, user *basic.UserMeta) (*core_api.GetUserFishResp, error) ListFishByPlan(ctx context.Context, req *core_api.ListFishByPlanReq) (*core_api.ListFishByPlanResp, error) }
type IPostService ¶ added in v1.0.6
type IPostService interface { DeletePost(ctx context.Context, req *core_api.DeletePostReq) (*core_api.DeletePostResp, error) GetPostDetail(ctx context.Context, req *core_api.GetPostDetailReq, userMeta *genbasic.UserMeta) (*core_api.GetPostDetailResp, error) GetPostPreviews(ctx context.Context, req *core_api.GetPostPreviewsReq) (*core_api.GetPostPreviewsResp, error) NewPost(ctx context.Context, req *core_api.NewPostReq, user *genbasic.UserMeta) (*core_api.NewPostResp, error) SetOfficial(ctx context.Context, req *core_api.SetOfficialReq) (*core_api.SetOfficialResp, error) }
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 IUserService interface { GetUserInfo(ctx context.Context, req *core_api.GetUserInfoReq, user *basic.UserMeta) (*core_api.GetUserInfoResp, error) SearchUser(ctx context.Context, req *core_api.SearchUserReq) (*core_api.SearchUserResp, error) UpdateUserInfo(ctx context.Context, req *core_api.UpdateUserInfoReq, user *basic.UserMeta) (*core_api.UpdateUserInfoResp, error) }
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 (s *LikeService) DoLike(ctx context.Context, req *core_api.DoLikeReq, user *basic.UserMeta) (*core_api.DoLikeResp, error)
func (*LikeService) GetLikedCount ¶ added in v1.0.6
func (s *LikeService) GetLikedCount(ctx context.Context, req *core_api.GetLikedCountReq) (*core_api.GetLikedCountResp, error)
func (*LikeService) GetLikedUsers ¶ added in v1.0.6
func (s *LikeService) GetLikedUsers(ctx context.Context, req *core_api.GetLikedUsersReq) (*core_api.GetLikedUsersResp, error)
func (*LikeService) GetUserLiked ¶ added in v1.0.6
func (s *LikeService) GetUserLiked(ctx context.Context, req *core_api.GetUserLikedReq, user *basic.UserMeta) (*core_api.GetUserLikedResp, error)
func (*LikeService) GetUserLikes ¶ added in v1.0.6
func (s *LikeService) GetUserLikes(ctx context.Context, req *core_api.GetUserLikesReq) (*core_api.GetUserLikesResp, error)
type MomentService ¶ added in v1.0.6
type MomentService struct { Config *config.Config MomentDomainService service.IMomentDomainService MeowchatContent meowchat_content.IMeowchatContent MeowchatUser meowchat_user.IMeowchatUser PlatformCommment platform_comment.IPlatformCommment PlatformSts platform_sts.IPlatformSts }
func (*MomentService) DeleteMoment ¶ added in v1.0.6
func (s *MomentService) DeleteMoment(ctx context.Context, req *core_api.DeleteMomentReq) (*core_api.DeleteMomentResp, error)
func (*MomentService) GetMomentDetail ¶ added in v1.0.6
func (s *MomentService) GetMomentDetail(ctx context.Context, req *core_api.GetMomentDetailReq, userMeta *genbasic.UserMeta) (*core_api.GetMomentDetailResp, error)
func (*MomentService) GetMomentPreviews ¶ added in v1.0.6
func (s *MomentService) GetMomentPreviews(ctx context.Context, req *core_api.GetMomentPreviewsReq) (*core_api.GetMomentPreviewsResp, error)
func (*MomentService) NewMoment ¶ added in v1.0.6
func (s *MomentService) NewMoment(ctx context.Context, req *core_api.NewMomentReq, user *genbasic.UserMeta) (*core_api.NewMomentResp, error)
type PlanService ¶ added in v1.0.15
type PlanService struct { Config *config.Config Plan meowchat_content.IMeowchatContent User meowchat_user.IMeowchatUser Sts platform_sts.IPlatformSts }
func (*PlanService) DeletePlan ¶ added in v1.0.15
func (s *PlanService) DeletePlan(ctx context.Context, req *core_api.DeletePlanReq) (*core_api.DeletePlanResp, error)
func (*PlanService) DonateFish ¶ added in v1.0.16
func (s *PlanService) DonateFish(ctx context.Context, req *core_api.DonateFishReq, user *basic.UserMeta) (*core_api.DonateFishResp, error)
func (*PlanService) GetPlanDetail ¶ added in v1.0.15
func (s *PlanService) GetPlanDetail(ctx context.Context, req *core_api.GetPlanDetailReq) (*core_api.GetPlanDetailResp, error)
func (*PlanService) GetPlanPreviews ¶ added in v1.0.15
func (s *PlanService) GetPlanPreviews(ctx context.Context, req *core_api.GetPlanPreviewsReq) (*core_api.GetPlanPreviewsResp, error)
func (*PlanService) GetUserFish ¶ added in v1.0.16
func (s *PlanService) GetUserFish(ctx context.Context, req *core_api.GetUserFishReq, user *basic.UserMeta) (*core_api.GetUserFishResp, error)
func (*PlanService) ListFishByPlan ¶ added in v1.0.16
func (s *PlanService) ListFishByPlan(ctx context.Context, req *core_api.ListFishByPlanReq) (*core_api.ListFishByPlanResp, error)
func (*PlanService) NewPlan ¶ added in v1.0.15
func (s *PlanService) NewPlan(ctx context.Context, req *core_api.NewPlanReq, user *basic.UserMeta) (*core_api.NewPlanResp, error)
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 (s *PostService) DeletePost(ctx context.Context, req *core_api.DeletePostReq) (*core_api.DeletePostResp, error)
func (*PostService) GetPostDetail ¶ added in v1.0.6
func (s *PostService) GetPostDetail(ctx context.Context, req *core_api.GetPostDetailReq, userMeta *genbasic.UserMeta) (*core_api.GetPostDetailResp, error)
func (*PostService) GetPostPreviews ¶ added in v1.0.6
func (s *PostService) GetPostPreviews(ctx context.Context, req *core_api.GetPostPreviewsReq) (*core_api.GetPostPreviewsResp, error)
func (*PostService) NewPost ¶ added in v1.0.6
func (s *PostService) NewPost(ctx context.Context, req *core_api.NewPostReq, user *genbasic.UserMeta) (*core_api.NewPostResp, error)
func (*PostService) SetOfficial ¶ added in v1.0.6
func (s *PostService) SetOfficial(ctx context.Context, req *core_api.SetOfficialReq) (*core_api.SetOfficialResp, error)
type StsService ¶ added in v1.0.6
type StsService struct {
PlatformSts platform_sts.IPlatformSts
}
func (*StsService) ApplySignedUrl ¶ added in v1.0.6
func (s *StsService) ApplySignedUrl(ctx context.Context, req *core_api.ApplySignedUrlReq, user *basic.UserMeta) (*core_api.ApplySignedUrlResp, error)
func (*StsService) ApplySignedUrlAsCommunity ¶ added in v1.0.6
func (s *StsService) ApplySignedUrlAsCommunity(ctx context.Context, req *core_api.ApplySignedUrlAsCommunityReq) (*core_api.ApplySignedUrlAsCommunityResp, error)
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 (s *SystemService) CreateApply(ctx context.Context, req *core_api.CreateApplyReq, user *basic.UserMeta) (*core_api.CreateApplyResp, error)
func (*SystemService) DeleteAdmin ¶ added in v1.0.6
func (s *SystemService) DeleteAdmin(ctx context.Context, req *core_api.DeleteAdminReq) (*core_api.DeleteAdminResp, error)
func (*SystemService) DeleteCommunity ¶ added in v1.0.6
func (s *SystemService) DeleteCommunity(ctx context.Context, req *core_api.DeleteCommunityReq) (*core_api.DeleteCommunityResp, error)
func (*SystemService) DeleteNews ¶ added in v1.0.6
func (s *SystemService) DeleteNews(ctx context.Context, req *core_api.DeleteNewsReq) (*core_api.DeleteNewsResp, error)
func (*SystemService) DeleteNotice ¶ added in v1.0.6
func (s *SystemService) DeleteNotice(ctx context.Context, req *core_api.DeleteNoticeReq) (*core_api.DeleteNoticeResp, error)
func (*SystemService) GetAdmins ¶ added in v1.0.6
func (s *SystemService) GetAdmins(ctx context.Context, req *core_api.GetAdminsReq) (*core_api.GetAdminsResp, error)
func (*SystemService) GetNews ¶ added in v1.0.6
func (s *SystemService) GetNews(ctx context.Context, req *core_api.GetNewsReq) (*core_api.GetNewsResp, error)
func (*SystemService) GetNotices ¶ added in v1.0.6
func (s *SystemService) GetNotices(ctx context.Context, req *core_api.GetNoticesReq) (*core_api.GetNoticesResp, error)
func (*SystemService) GetOneUser ¶ added in v1.0.6
func (*SystemService) GetUserByRole ¶ added in v1.0.6
func (s *SystemService) GetUserByRole(ctx context.Context, req *core_api.RetrieveUserPreviewReq) (*core_api.RetrieveUserPreviewResp, error)
func (*SystemService) GetUserRoles ¶ added in v1.0.6
func (s *SystemService) GetUserRoles(ctx context.Context, req *core_api.GetUserRolesReq, user *basic.UserMeta) (*core_api.GetUserRolesResp, error)
func (*SystemService) HandleApply ¶ added in v1.0.6
func (s *SystemService) HandleApply(ctx context.Context, req *core_api.HandleApplyReq) (*core_api.HandleApplyResp, error)
func (*SystemService) ListApply ¶ added in v1.0.6
func (s *SystemService) ListApply(ctx context.Context, req *core_api.ListApplyReq) (*core_api.ListApplyResp, error)
func (*SystemService) ListCommunity ¶ added in v1.0.6
func (s *SystemService) ListCommunity(ctx context.Context, req *core_api.ListCommunityReq) (*core_api.ListCommunityResp, error)
func (*SystemService) NewAdmin ¶ added in v1.0.6
func (s *SystemService) NewAdmin(ctx context.Context, req *core_api.NewAdminReq) (*core_api.NewAdminResp, error)
func (*SystemService) NewCommunity ¶ added in v1.0.6
func (s *SystemService) NewCommunity(ctx context.Context, req *core_api.NewCommunityReq) (*core_api.NewCommunityResp, error)
func (*SystemService) NewNews ¶ added in v1.0.6
func (s *SystemService) NewNews(ctx context.Context, req *core_api.NewNewsReq) (*core_api.NewNewsResp, error)
func (*SystemService) NewNotice ¶ added in v1.0.6
func (s *SystemService) NewNotice(ctx context.Context, req *core_api.NewNoticeReq) (*core_api.NewNoticeResp, error)
func (*SystemService) UpdateCommunityAdmin ¶ added in v1.0.6
func (s *SystemService) UpdateCommunityAdmin(ctx context.Context, req *core_api.UpdateCommunityAdminReq) (*core_api.UpdateCommunityAdminResp, error)
func (*SystemService) UpdateRole ¶ added in v1.0.11
func (s *SystemService) UpdateRole(ctx context.Context, req *core_api.UpdateRoleReq) (*core_api.UpdateRoleResp, error)
func (*SystemService) UpdateSuperAdmin ¶ added in v1.0.6
func (s *SystemService) UpdateSuperAdmin(ctx context.Context, req *core_api.UpdateSuperAdminReq) (*core_api.UpdateSuperAdminResp, error)
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 (s *UserService) GetUserInfo(ctx context.Context, req *core_api.GetUserInfoReq, user *basic.UserMeta) (*core_api.GetUserInfoResp, error)
func (*UserService) SearchUser ¶ added in v1.0.6
func (s *UserService) SearchUser(ctx context.Context, req *core_api.SearchUserReq) (*core_api.SearchUserResp, error)
func (*UserService) UpdateUserInfo ¶ added in v1.0.6
func (s *UserService) UpdateUserInfo(ctx context.Context, req *core_api.UpdateUserInfoReq, user *basic.UserMeta) (*core_api.UpdateUserInfoResp, error)
Click to show internal directories.
Click to hide internal directories.