chore(channels): drop admin-side available channels view

Remove the admin-side "Available Channels" aggregate view — admins
already see full channel configuration (groups, pricing, model
mappings) in the channel edit dialog, making a read-only admin
aggregate view redundant. The user-side "可用渠道" remains.

Backend:
- Delete handler/admin/available_channel_handler.go (+ test)
- Drop AdminHandlers.AvailableChannel field and wire injection
- Remove /admin/channels/available route

Frontend:
- Delete views/admin/AvailableChannelsView.vue
- Drop /admin/available-channels router entry
- Strip AvailableChannel types + listAvailable from api/admin/channels.ts
This commit is contained in:
erio
2026-04-21 17:18:37 +08:00
parent 4a3652ec09
commit 59290e39f9
9 changed files with 2 additions and 373 deletions

View File

@@ -370,18 +370,6 @@ const routes: RouteRecordRaw[] = [
descriptionKey: 'admin.groups.description'
}
},
{
path: '/admin/available-channels',
name: 'AdminAvailableChannels',
component: () => import('@/views/admin/AvailableChannelsView.vue'),
meta: {
requiresAuth: true,
requiresAdmin: true,
title: 'Available Channels',
titleKey: 'admin.availableChannels.title',
descriptionKey: 'admin.availableChannels.description'
}
},
{
path: '/admin/channels',
redirect: '/admin/channels/pricing'