json.(@bank, :id, :name, :description, :task_type, :is_public) # 附件 json.authorize @bank.user_id == current_user.id || current_user.admin? json.attachments @bank_attachments do |attachment| json.partial! "attachments/attachment_simple", locals: {attachment: attachment} end # 分组要求 if @bank.task_type == 2 json.group_info do json.max_number @bank.max_num json.min_number @bank.min_num json.base_on_project @bank.base_on_project end end