This repository has been archived by the owner on Nov 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
增加api的部分方法
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import api, { get } from "./api.js"; | ||
import api, { get, limit } from "./api.js"; | ||
import vuex from "@/stores/index.js"; | ||
|
||
/** | ||
|
@@ -168,3 +168,27 @@ export function likeGroupPost(postID, status) { | |
const method = status ? "delete" : "post"; | ||
return api({ method, url, validateStatus: s => s === 201 || s === 204 }); | ||
} | ||
|
||
/** | ||
* 获取待审核的帖子置顶申请 | ||
* @Author Wayne | ||
* @DateTime 2018-05-04 | ||
* @Email [email protected] | ||
* @param {Number} after [description] | ||
* @return {[type]} [description] | ||
*/ | ||
export function getPostAudits({ after = 0, group = 0 }) { | ||
return get("/plus-group/pinned/posts", { | ||
after, | ||
limit, | ||
group | ||
}); | ||
} | ||
|
||
export function getPostCommentAudits({ after = 0, post = 0 }) { | ||
return get("/plus-group/pinned/comments", { | ||
after, | ||
limit, | ||
post | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters