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.
- Loading branch information
Showing
4 changed files
with
35 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,23 @@ export function getFeedCommentPinneds(after = 0) { | |
}); | ||
} | ||
|
||
/** | ||
* 评论申请置顶 | ||
* @author mutoe <[email protected]> | ||
* @export | ||
* @param {Object} payload 第一个参数 | ||
* @param {Number} payload.feedId | ||
* @param {Number} payload.commentId | ||
* @param {Object} data post入参 | ||
* @param {Number} data.amount 置顶总价 | ||
* @param {Number} data.day 置顶天数 | ||
* @returns Promise | ||
*/ | ||
export function applyTopFeedComment({ feedId, commentId }, data) { | ||
const url = `/feeds/${feedId}/comments/${commentId}/currency-pinneds`; | ||
return api.post(url, data, { validateStatus: s => s === 201 }); | ||
} | ||
|
||
/** | ||
* 删除动态评论 | ||
* @author mutoe <[email protected]> | ||
|
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