commit
05f92fd3a0
@ -1 +1,2 @@
|
|||||||
|
json.status 0
|
||||||
json.code @code
|
json.code @code
|
@ -1,7 +1,14 @@
|
|||||||
json.(memo, :id, :subject, :is_md, :content, :sticky, :reward, :viewed_count)
|
json.memo do
|
||||||
|
json.id memo.id
|
||||||
json.tag memo.tag_repertoires.map(&:name)
|
json.subject memo.subject
|
||||||
json.time memo.created_at
|
json.is_md memo.is_md
|
||||||
json.replies_count memo.all_replies_count
|
json.content memo.content
|
||||||
json.user_praise memo.praise_treads.user_liker(@user.try(:id)) ? true : false
|
json.sticky memo.sticky
|
||||||
json.memo_praise_count memo.praise_treads.liker.count
|
json.reward memo.reward
|
||||||
|
json.viewed_count memo.viewed_count
|
||||||
|
json.tag memo.tag_repertoires.map(&:name)
|
||||||
|
json.time memo.created_at
|
||||||
|
json.replies_count memo.all_replies_count
|
||||||
|
json.user_praise memo.praise_treads.user_liker(@user.try(:id)) ? true : false
|
||||||
|
json.memo_praise_count memo.praise_treads.liker.count
|
||||||
|
end
|
||||||
|
Loading…
Reference in new issue