Interface: CommentApiClientInterface
services/comment.CommentApiClientInterface
Methods
createComment
▸ createComment(data
, config?
): Promise
<SCCommentType
>
Parameters
Name | Type |
---|---|
data | CommentCreateParams |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCCommentType
>
Defined in
deleteComment
▸ deleteComment(id
, config?
): Promise
<any
>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Defined in
flagComment
▸ flagComment(id
, flagType
, config?
): Promise
<any
>
Parameters
Name | Type |
---|---|
id | string | number |
flagType | SCFlagTypeEnum |
config? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Defined in
getASpecificComment
▸ getASpecificComment(id
, config?
): Promise
<SCCommentType
>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCCommentType
>
Defined in
getAllComments
▸ getAllComments(params
, config?
): Promise
<SCPaginatedResponse
<SCCommentType
>>
Parameters
Name | Type |
---|---|
params | CommentListParams |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCCommentType
>>
Defined in
getSpecificCommentFlagStatus
▸ getSpecificCommentFlagStatus(id
, config?
): Promise
<SCFlagType
>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCFlagType
>
Defined in
getSpecificCommentFlags
▸ getSpecificCommentFlags(id
, config?
): Promise
<SCPaginatedResponse
<SCFlagType
>>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCFlagType
>>
Defined in
getSpecificCommentVotesList
▸ getSpecificCommentVotesList(id
, config?
): Promise
<SCPaginatedResponse
<SCVoteType
>>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCVoteType
>>
Defined in
restoreComment
▸ restoreComment(id
, config?
): Promise
<any
>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Defined in
updateComment
▸ updateComment(id
, text
, config?
): Promise
<SCCommentType
>
Parameters
Name | Type |
---|---|
id | string | number |
text | string |
config? | AxiosRequestConfig <any > |
Returns
Promise
<SCCommentType
>
Defined in
upvoteComment
▸ upvoteComment(id
, config?
): Promise
<any
>
Parameters
Name | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig <any > |
Returns
Promise
<any
>