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.

Commit24dd58b

Browse files
authored
refactor(article-comments): comments reply gq workflow && re-org (#341)
* refactor(article-comment): wip* refactor(article-comment): wip* refactor(article-comment): wip* chore(comments): tests for job* refactor(article-comment): wip* refactor(article-comment): wip* chore(comments): tests re-org
1 parent50692b4 commit24dd58b

21 files changed

+2347
-491
lines changed

‎lib/groupher_server/cms/cms.ex‎

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ defmodule GroupherServer.CMS do
1313
ArticleOperation,
1414
ArticleReaction,
1515
ArticleComment,
16+
ArticleCommentAction,
1617
ArticleCommentEmotion,
1718
CommentCURD,
1819
CommunitySync,
@@ -129,20 +130,24 @@ defmodule GroupherServer.CMS do
129130
defdelegateupdate_article_comment(comment,content),to:ArticleComment
130131
defdelegatedelete_article_comment(comment),to:ArticleComment
131132

132-
defdelegateupvote_article_comment(comment_id,user),to:ArticleComment
133-
defdelegateundo_upvote_article_comment(comment_id,user),to:ArticleComment
134-
defdelegatereply_article_comment(comment_id,args,user),to:ArticleComment
133+
defdelegateupvote_article_comment(comment_id,user),to:ArticleCommentAction
134+
defdelegateundo_upvote_article_comment(comment_id,user),to:ArticleCommentAction
135+
defdelegatereply_article_comment(comment_id,args,user),to:ArticleCommentAction
135136

136-
defdelegatepin_article_comment(comment_id),to:ArticleComment
137-
defdelegateundo_pin_article_comment(comment_id),to:ArticleComment
137+
defdelegatepin_article_comment(comment_id),to:ArticleCommentAction
138+
defdelegateundo_pin_article_comment(comment_id),to:ArticleCommentAction
139+
140+
defdelegatefold_article_comment(comment_id,user),to:ArticleCommentAction
141+
defdelegateunfold_article_comment(comment_id,user),to:ArticleCommentAction
142+
defdelegatereport_article_comment(comment_id,user),to:ArticleCommentAction
143+
defdelegateunreport_article_comment(comment_id,user),to:ArticleCommentAction
138144

139145
defdelegateemotion_to_comment(comment_id,args,user),to:ArticleCommentEmotion
140146
defdelegateundo_emotion_to_comment(comment_id,args,user),to:ArticleCommentEmotion
141-
defdelegatefold_article_comment(comment_id,user),to:ArticleComment
142-
defdelegateunfold_article_comment(comment_id,user),to:ArticleComment
143-
defdelegatereport_article_comment(comment_id,user),to:ArticleComment
144-
defdelegateunreport_article_comment(comment_id,user),to:ArticleComment
145-
147+
###################
148+
###################
149+
###################
150+
###################
146151
defdelegatecreate_comment(thread,content_id,args,user),to:CommentCURD
147152
defdelegateupdate_comment(thread,id,args,user),to:CommentCURD
148153
defdelegatedelete_comment(thread,content_id),to:CommentCURD

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp