Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

refactor(article-comments): comments reply gq workflow && tests#342

Merged
mydearxym merged 7 commits intodevfromcomments-reply-gq-workflow
May 9, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletionslib/groupher_server/cms/cms.ex
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,6 +13,7 @@ defmodule GroupherServer.CMS do
ArticleOperation,
ArticleReaction,
ArticleComment,
ArticleCommentAction,
ArticleCommentEmotion,
CommentCURD,
CommunitySync,
Expand DownExpand Up@@ -129,20 +130,24 @@ defmodule GroupherServer.CMS do
defdelegate update_article_comment(comment, content), to: ArticleComment
defdelegate delete_article_comment(comment), to: ArticleComment

defdelegate upvote_article_comment(comment_id, user), to:ArticleComment
defdelegate undo_upvote_article_comment(comment_id, user), to:ArticleComment
defdelegate reply_article_comment(comment_id, args, user), to:ArticleComment
defdelegate upvote_article_comment(comment_id, user), to:ArticleCommentAction
defdelegate undo_upvote_article_comment(comment_id, user), to:ArticleCommentAction
defdelegate reply_article_comment(comment_id, args, user), to:ArticleCommentAction

defdelegate pin_article_comment(comment_id), to: ArticleComment
defdelegate undo_pin_article_comment(comment_id), to: ArticleComment
defdelegate pin_article_comment(comment_id), to: ArticleCommentAction
defdelegate undo_pin_article_comment(comment_id), to: ArticleCommentAction

defdelegate fold_article_comment(comment_id, user), to: ArticleCommentAction
defdelegate unfold_article_comment(comment_id, user), to: ArticleCommentAction
defdelegate report_article_comment(comment_id, user), to: ArticleCommentAction
defdelegate unreport_article_comment(comment_id, user), to: ArticleCommentAction

defdelegate emotion_to_comment(comment_id, args, user), to: ArticleCommentEmotion
defdelegate undo_emotion_to_comment(comment_id, args, user), to: ArticleCommentEmotion
defdelegate fold_article_comment(comment_id, user), to: ArticleComment
defdelegate unfold_article_comment(comment_id, user), to: ArticleComment
defdelegate report_article_comment(comment_id, user), to: ArticleComment
defdelegate unreport_article_comment(comment_id, user), to: ArticleComment

###################
###################
###################
###################
defdelegate create_comment(thread, content_id, args, user), to: CommentCURD
defdelegate update_comment(thread, id, args, user), to: CommentCURD
defdelegate delete_comment(thread, content_id), to: CommentCURD
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp