feat: Add queryNodeTag function and integrate tag retrieval in NodeForm and SubscribeForm components

This commit is contained in:
web
2025-09-03 09:59:54 -07:00
parent 9e01f4f590
commit 4563c570ac
4 changed files with 60 additions and 12 deletions
+8
View File
@@ -141,6 +141,14 @@ export async function toggleNodeStatus(
});
}
/** Query all node tags GET /v1/admin/server/node/tags */
export async function queryNodeTag(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.QueryNodeTagResponse }>('/v1/admin/server/node/tags', {
method: 'GET',
...(options || {}),
});
}
/** Update Node POST /v1/admin/server/node/update */
export async function updateNode(body: API.UpdateNodeRequest, options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>('/v1/admin/server/node/update', {
+4
View File
@@ -1551,6 +1551,10 @@ declare namespace API {
list: Document[];
};
type QueryNodeTagResponse = {
tags: string[];
};
type QueryOrderDetailRequest = {
order_no: string;
};