🐛 fix: Remove GroupTable and related components, simplify SubscribeTable and update language handling in subscription forms

This commit is contained in:
web
2025-09-03 15:46:36 -07:00
parent 4563c570ac
commit 1ab9b39e8a
14 changed files with 135 additions and 552 deletions
+1 -1
View File
@@ -731,6 +731,7 @@ declare namespace API {
type Subscribe = {
id: number;
name: string;
language: string;
description: string;
unit_price: number;
unit_time: string;
@@ -741,7 +742,6 @@ declare namespace API {
speed_limit: number;
device_limit: number;
quota: number;
group_id: number;
nodes: number[];
node_tags: string[];
show: boolean;
+8 -12
View File
@@ -2,23 +2,19 @@
/* eslint-disable */
import request from '@/utils/request';
/** Get subscribe group list GET /v1/public/subscribe/group/list */
export async function querySubscribeGroupList(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.QuerySubscribeGroupListResponse }>(
'/v1/public/subscribe/group/list',
{
method: 'GET',
...(options || {}),
},
);
}
/** Get subscribe list GET /v1/public/subscribe/list */
export async function querySubscribeList(options?: { [key: string]: any }) {
export async function querySubscribeList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.QuerySubscribeListParams,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.QuerySubscribeListResponse }>(
'/v1/public/subscribe/list',
{
method: 'GET',
params: {
...params,
},
...(options || {}),
},
);
+9 -1
View File
@@ -642,6 +642,14 @@ declare namespace API {
total: number;
};
type QuerySubscribeListParams = {
language: string;
};
type QuerySubscribeListRequest = {
language: string;
};
type QuerySubscribeListResponse = {
list: Subscribe[];
total: number;
@@ -821,6 +829,7 @@ declare namespace API {
type Subscribe = {
id: number;
name: string;
language: string;
description: string;
unit_price: number;
unit_time: string;
@@ -831,7 +840,6 @@ declare namespace API {
speed_limit: number;
device_limit: number;
quota: number;
group_id: number;
nodes: number[];
node_tags: string[];
show: boolean;