Remove List prefixes to match naming of other functions

This commit is contained in:
Elara 2022-12-10 12:15:14 -08:00
parent eaebd96419
commit 9beccacda1
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {