Thanks for the invitation, but I really don’t understand what your problem is?
"Write a delete function"? Haven't you already written it?
"He did not delete the data on the server side", then you should look at how your IntentServ.delete method is implemented, whether the backend receives the parameters correctly and whether the backend reports an error! ?
You probably don’t lack this function, but you don’t know whether this function is working properly! ?
First of all, the data you see is obtained from the backend, that is to say, it is useless for you to just operate the foreground data, that is, you need to transfer the data you have completed to the backend and save it (to the database, etc.), so , you should pass the ID or other unique identifier of the data that needs to be deleted to the background, let the background perform the deletion operation, and then re-obtain the data after the operation is completed~ Such a process.
Your front-end controller and service seem to be written correctly. It may be that the parameters are not matched or the server is not working well. You can run Delete Service in Postman first. If it works, the parameters are wrong. You can just ask the server directly how to adjust the interface to delete it.
Thanks for the invitation, but I really don’t understand what your problem is?
"Write a delete function"? Haven't you already written it?
"He did not delete the data on the server side", then you should look at how your
IntentServ.delete
method is implemented, whether the backend receives the parameters correctly and whether the backend reports an error! ?You probably don’t lack this function, but you don’t know whether this function is working properly! ?
First of all, the data you see is obtained from the backend, that is to say, it is useless for you to just operate the foreground data, that is, you need to transfer the data you have completed to the backend and save it (to the database, etc.), so , you should pass the ID or other unique identifier of the data that needs to be deleted to the background, let the background perform the deletion operation, and then re-obtain the data after the operation is completed~ Such a process.
Your front-end controller and service seem to be written correctly. It may be that the parameters are not matched or the server is not working well. You can run Delete Service in Postman first. If it works, the parameters are wrong. You can just ask the server directly how to adjust the interface to delete it.