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.
15 lines
366 B
15 lines
366 B
5 years ago
|
class AddDepartmentAppliesController < ApplicationController
|
||
|
before_action :require_login
|
||
|
|
||
|
def create
|
||
|
CreateAddDepartmentApplyService.call(current_user, create_params)
|
||
|
render_ok
|
||
|
rescue CreateAddDepartmentApplyService::Error => ex
|
||
|
render_error(ex.message)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
def create_params
|
||
|
params.permit(:name, :school_id, :remarks)
|
||
|
end
|
||
|
end
|