package
0.0.0-20250110150557-1d33ebcea967
Repository: https://github.com/vviia/golang-ecomerce.git
Documentation: pkg.go.dev
# Functions
function to add the address and limited to 2home and work address
{
"house_name":"jupyterlab",
"street_name":"notebook",
"city_name":"josua",
"pin_code":"685607"
}
The Post Request Url will look like this
POST
http://localhost:8000/addadress?id=user_id*************
*/.
No description provided by the author
function to edit the address put request
{
"house_name":"jupyterlab",
"street_name":"notebook",
"city_name":"mars",
"pin_code":"12231997"
}
PUT
http://localhost:8000/edithomeaddress?id=xxxxxxxxxxxxxxxxxxxxxxxxx
*/.
No description provided by the author
function to get all items in the cart and total price GET request http://localhost:8000/listcart?id=xxxxxxuser_idxxxxxxxxxx help to add dependency injection Any nice way to group together this json response?.
No description provided by the author
function to generate login and check the user to create necessary fields in the db mostly as empty array Accepts a POST
"email":"[email protected]"
"password":"coollcollcoll"
*/.
No description provided by the author
This is function to add productsthis is an admin partjson should look like this post request : http://localhost:8080/admin/addproduct
json
{
"product_name" : "pencil"
"price" : 98
"rating" : 10
"image" : "image-url"
}
*/.
SearchProduct lists all the products in the database paging will be added and fixed soon.
This is the function to search products based on alphabet name.
function to signupaccept a post requestPOST Requesthttp://localhost:8000/users/signnup
"fisrt_name":"joseph",
"last_name":"hermis",
"email":"[email protected]",
"phone":"1156422222",
"password":"hashed:)"
*/.
No description provided by the author
# Variables
No description provided by the author
Again, global vars, try to avoid them and use dependency injection instead.
No description provided by the author
# Structs
No description provided by the author