|
|
@ -87,6 +87,17 @@ module Mobile
|
|
|
|
present :status, 0
|
|
|
|
present :status, 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
desc '课程留言列表'
|
|
|
|
|
|
|
|
params do
|
|
|
|
|
|
|
|
optional :token, type: String
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
get ':id/course_message' do
|
|
|
|
|
|
|
|
cs = CommentService.new
|
|
|
|
|
|
|
|
jours = cs.course_messages params,(current_user.nil? ? User.find(2):current_user)
|
|
|
|
|
|
|
|
present :data, jours, with: Mobile::Entities::Jours
|
|
|
|
|
|
|
|
present :status, 0
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|