(mapID: string, params: CreateNodeRequest)
| 29 | |
| 30 | // 创建节点 |
| 31 | export async function createNode(mapID: string, params: CreateNodeRequest): Promise<CreateNodeResponse> { |
| 32 | return post(API_ENDPOINTS.NODE.CREATE.replace(':mapID', mapID), params); |
| 33 | } |
| 34 | |
| 35 | // 更新节点 |
| 36 | export async function updateNode(mapID: string, nodeID: string, params: UpdateNodeRequest): Promise<UpdateNodeResponse> { |
no test coverage detected