Remove List prefixes to match naming of other functions
This commit is contained in:
parent
eaebd96419
commit
9beccacda1
2
admin.go
2
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 {
|
||||
|
@ -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 {
|
||||
|
2
post.go
2
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user