From 9beccacda17829cebfd16cbde1c98b933d64f7fd Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sat, 10 Dec 2022 12:15:14 -0800 Subject: [PATCH] Remove List prefixes to match naming of other functions --- admin.go | 2 +- comment.go | 2 +- post.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin.go b/admin.go index 077bd69..9047fdf 100644 --- a/admin.go +++ b/admin.go @@ -52,7 +52,7 @@ func (c *Client) UnreadRegistrationApplicationCount(ctx context.Context, d types return ar, nil } -func (c *Client) ListRegistrationApplications(ctx context.Context, d types.ListRegistrationApplications) (*types.ListRegistrationApplicationsResponse, error) { +func (c *Client) RegistrationApplications(ctx context.Context, d types.ListRegistrationApplications) (*types.ListRegistrationApplicationsResponse, error) { ar := &types.ListRegistrationApplicationsResponse{} res, err := c.getReq(ctx, http.MethodGet, "/admin/registration_application/list", d, &ar) if err != nil { diff --git a/comment.go b/comment.go index 768cf34..b6f116e 100644 --- a/comment.go +++ b/comment.go @@ -112,7 +112,7 @@ func (c *Client) LikeComment(ctx context.Context, d types.CreateCommentLike) (*t return ar, nil } -func (c *Client) ListCommentReports(ctx context.Context, d types.ListCommentReports) (*types.ListCommentReportsResponse, error) { +func (c *Client) CommentReports(ctx context.Context, d types.ListCommentReports) (*types.ListCommentReportsResponse, error) { ar := &types.ListCommentReportsResponse{} res, err := c.getReq(ctx, http.MethodGet, "/comments/report/list", d, &ar) if err != nil { diff --git a/post.go b/post.go index 7bbccb0..8a5efc8 100644 --- a/post.go +++ b/post.go @@ -142,7 +142,7 @@ func (c *Client) LikePost(ctx context.Context, d types.CreatePostLike) (*types.P return ar, nil } -func (c *Client) ListPostReports(ctx context.Context, d types.ListPostReports) (*types.ListPostReportsResponse, error) { +func (c *Client) PostReports(ctx context.Context, d types.ListPostReports) (*types.ListPostReportsResponse, error) { ar := &types.ListPostReportsResponse{} res, err := c.getReq(ctx, http.MethodGet, "/post/report/list", d, &ar) if err != nil {