我想通过 Api 将已删除对象的列表发送到后端,我该怎么做?
public deleteOrders(orderr: Order): Observable<string> {
return this.http.delete<string>(url, order); >>> Error
error : Type 'Order' has no properties in common with type '{ headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: "body"; params?: HttpParams | { [param: string]: string | string[]; }; reportProgress?: boolean; responseType?: "json"; withCredentials?: boolean; }'