后台组织管理

This commit is contained in:
chenjing
2023-02-21 17:38:09 +08:00
committed by xxq250
parent a35e24468c
commit 8e547c178a
17 changed files with 325 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
class Admins::OrganizationsController < Admins::BaseController
before_action :finder_org, except: [:index]
def index
@orgs = paginate Organization.all
end
def show
end
def destroy
@org.destroy!
Admins::DeleteOrganizationService.call(@org.login)
render_delete_success
end
private
def finder_org
@org = Organization.find(params[:id])
end
end