admins org list

This commit is contained in:
chenjing
2023-02-21 17:38:09 +08:00
parent 12eaec0319
commit b9e2a3736c
17 changed files with 324 additions and 2 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