✨ feat(admin): Add application and rule management entries to localization files
This commit is contained in:
@@ -221,3 +221,14 @@ export async function nodeSort(body: API.NodeSortRequest, options?: { [key: stri
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get node tag list GET /v1/admin/server/tag/list */
|
||||
export async function getNodeTagList(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetNodeTagListResponse }>(
|
||||
'/v1/admin/server/tag/list',
|
||||
{
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
+12
-5
@@ -257,7 +257,8 @@ declare namespace API {
|
||||
type CreateRuleGroupRequest = {
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
tags: string[];
|
||||
rules: string;
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
@@ -619,6 +620,10 @@ declare namespace API {
|
||||
list: Server[];
|
||||
};
|
||||
|
||||
type GetNodeTagListResponse = {
|
||||
tags: string[];
|
||||
};
|
||||
|
||||
type GetOrderListParams = {
|
||||
page: number;
|
||||
size: number;
|
||||
@@ -1232,9 +1237,10 @@ declare namespace API {
|
||||
|
||||
type ServerRuleGroup = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
name: string;
|
||||
tags: string[];
|
||||
rules: string;
|
||||
enable: boolean;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
@@ -1574,9 +1580,10 @@ declare namespace API {
|
||||
|
||||
type UpdateRuleGroupRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
name: string;
|
||||
tags: string[];
|
||||
rules: string;
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
|
||||
+3
-2
@@ -639,9 +639,10 @@ declare namespace API {
|
||||
|
||||
type ServerRuleGroup = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
name: string;
|
||||
tags: string[];
|
||||
rules: string;
|
||||
enable: boolean;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
|
||||
Reference in New Issue
Block a user