|
|
|
@ -1,8 +1,7 @@
|
|
|
|
|
class Admins::ShixunSettingsController < Admins::BaseController
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
params[:sort_by] = params[:sort_by].presence || 'created_on'
|
|
|
|
|
params[:sort_direction] = params[:sort_direction].presence || 'desc'
|
|
|
|
|
default_sort('created_at', 'desc')
|
|
|
|
|
|
|
|
|
|
shixun_settings = Admins::ShixunSettingsQuery.call(params)
|
|
|
|
|
@editing_shixuns = shixun_settings.where(status:0).size
|
|
|
|
|