🐛 fix: Remove GroupTable and related components, simplify SubscribeTable and update language handling in subscription forms
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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 || {}),
|
||||
},
|
||||
);
|
||||
|
||||
Vendored
+9
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user