remove deprecated api
This commit is contained in:
+1
-11
@@ -1,4 +1,4 @@
|
||||
import { CaptchaData, Comment, CommentReply, Page, PageResult } from "../types";
|
||||
import { CaptchaData, Comment, Page, PageResult } from "../types";
|
||||
import { axios } from "./BaseAPI";
|
||||
|
||||
const BASE_URI = "/comment";
|
||||
@@ -11,17 +11,7 @@ async function create(captchaData: CaptchaData<Comment>): Promise<void> {
|
||||
return axios.post(`${BASE_URI}/create`, captchaData);
|
||||
}
|
||||
|
||||
async function pageReply(page: Page<CommentReply>): Promise<PageResult<CommentReply>> {
|
||||
return axios.post(`${BASE_URI}/reply/list`, page);
|
||||
}
|
||||
|
||||
async function createReply(captchaData: CaptchaData<CommentReply>): Promise<void> {
|
||||
return axios.post(`${BASE_URI}/reply/create`, captchaData);
|
||||
}
|
||||
|
||||
export default {
|
||||
page,
|
||||
create,
|
||||
createReply,
|
||||
pageReply
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user