You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/controllers/shixun_lists_controller.rb

15 lines
444 B

5 years ago
class ShixunListsController < ApplicationController
def index
5 years ago
# 去除开头标点符号
@reg = /^[,。?:;‘’!“”—……、]/
# 附件的替换
@atta_reg = /!\[.*]\(\/api\/attachments\/\d+\)/
5 years ago
@results = ShixunSearchService.call(search_params, current_laboratory)
5 years ago
end
private
5 years ago
5 years ago
def search_params
5 years ago
params.permit(:keyword, :type, :page, :limit, :order, :status, :diff, :sort, :no_jupyter)
5 years ago
end
end