refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components
This commit is contained in:
@@ -6,6 +6,7 @@ import type {
|
||||
AgentAdminUserListData,
|
||||
AgentAdminUserRoleSyncPayload,
|
||||
AgentNodeCreatePayload,
|
||||
AgentNodeListData,
|
||||
AgentNodeRow,
|
||||
AgentNodeUpdatePayload,
|
||||
AgentProfilePayload,
|
||||
@@ -26,6 +27,12 @@ export async function getAgentTree(adminSiteId?: number): Promise<AgentTreeData>
|
||||
});
|
||||
}
|
||||
|
||||
export async function getAgentNodes(adminSiteId?: number): Promise<AgentNodeListData> {
|
||||
return adminRequest.get<AgentNodeListData>(`${A}/agent-nodes`, {
|
||||
params: adminSiteId ? { admin_site_id: adminSiteId } : undefined,
|
||||
});
|
||||
}
|
||||
|
||||
export async function postAgentNode(body: AgentNodeCreatePayload): Promise<AgentNodeRow> {
|
||||
return adminRequest.post<AgentNodeRow>(`${A}/agent-nodes`, body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user