Front and back end value transfer problem

background:
the frontend needs to pass two values of projectId and fileList [] to the backend.

normally, I just need to encapsulate these two values in a data and pass them to the backend, which will receive them. But now, the back-end interface method looks like this:
clipboard.png

:

  1. fileLsit[]projectId?()
  2. postdata

:
clipboard.png

my little partner (back end) and I are both novices, and we are not very familiar with each other in many places. I hope you can give me more advice. Thank you.

Jul.15,2021

it is recommended to see the difference between get and post first.
you will know that the parameters of get are just after url . As for your framework, you can directly wrap the parameters with objects


commonly used methods, in addition to data, you can also splice the parameters at the back of the URL, but this is not important, the important thing is why the two parameters can not be passed? Why not make these two parameters into an object and write them in data? Several parameters are not important, as long as you correspond the parameters given at the back end and put them in data. The


get method can only transmit values through url. The post backend can either take those on url or put them in that body, or it is recommended to put them directly into body and use post to pass


front end to the following array is more troublesome, if you use get, to pass the array to the back. Then you need a delimiter to format the data
for example, what is the request data you formatted? PID=XXXXX&filelist=XXXXX,XXXXX,XXXXX
it is more convenient

if you use post.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea3f84-1c9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea3f84-1c9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?