Add function to get goods information from server and upload goods
information to the server