controllers

package
v0.0.0-...-5a81b42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAddress

func AddAddress(c *gin.Context)

func AddBrands

func AddBrands(c *gin.Context)

Admin add the brand

func AddCategories

func AddCategories(c *gin.Context)

Adding the catogery by admin

func AddImages

func AddImages(c *gin.Context)

Add image of the product by admin

func AddProduct

func AddProduct(c *gin.Context)

>>>>>>>>>>>>>> Add products <<<<<<<<<<<<<<<<<<<<<<<<<<

func AddToCart

func AddToCart(c *gin.Context)

Adding the product to the cart

func AddToWishlist

func AddToWishlist(c *gin.Context)

func AdminBlockUser

func AdminBlockUser(c *gin.Context)

func AdminLogin

func AdminLogin(c *gin.Context)

func AdminOrderManagement

func AdminOrderManagement(c *gin.Context)

func AdminProfile

func AdminProfile(c *gin.Context)

>>>>>>>>>>> Admin profile <<<<<<<<<<<<<<<<<<<<<<<

func AdminSearchUser

func AdminSearchUser(c *gin.Context)

func AdminSignout

func AdminSignout(c *gin.Context)

func AdminSignup

func AdminSignup(c *gin.Context)

func CashOnDelivery

func CashOnDelivery(c *gin.Context)

func ChangePassword

func ChangePassword(c *gin.Context)

Reseting the password

func CheckOut

func CheckOut(c *gin.Context)

func CovertingExelToPdf

func CovertingExelToPdf(c *gin.Context)

func DeleteUserAddress

func DeleteUserAddress(c *gin.Context)

func DownloadExcel

func DownloadExcel(c *gin.Context)

func DownloadPDF

func DownloadPDF(c *gin.Context)

func EditAddressPage

func EditAddressPage(c *gin.Context)

>>>>>>>>>>>>>> Edit Address <<<<<<<<<<<<<<<<<<<<<

func EditBrand

func EditBrand(c *gin.Context)

Edit brand by admin

func EditProduct

func EditProduct(c *gin.Context)

func EditProductPage

func EditProductPage(c *gin.Context)

func EditUserAddress

func EditUserAddress(c *gin.Context)

func EditUserProfileByadmin

func EditUserProfileByadmin(c *gin.Context)

func EditUserProfilePage

func EditUserProfilePage(c *gin.Context)

>>>>>>>>>>> Edit user profile <<<<<<<<<<<<<<<<<<<<<<<<<<<<<

func EditUserProfilebyUser

func EditUserProfilebyUser(c *gin.Context)

func EmptyCart

func EmptyCart(c *gin.Context)

func GetUserProfile

func GetUserProfile(c *gin.Context)

>>>>>>>>>> Get user profile <<<<<<<<<<<<<<<<<<<<<<<<<

func InvoiceF

func InvoiceF(c *gin.Context)

Templates for creating the pdf

func OtpValidation

func OtpValidation(c *gin.Context)

-------Otp validtioin------------->

func Razorpay

func Razorpay(c *gin.Context)

func RazorpaySuccess

func RazorpaySuccess(c *gin.Context)

func RemoveFromCart

func RemoveFromCart(c *gin.Context)

func RemoveFromWishlist

func RemoveFromWishlist(c *gin.Context)

func SalesReport

func SalesReport(c *gin.Context)

func SearchProductByAdmin

func SearchProductByAdmin(c *gin.Context)

func SetDefaultAddress

func SetDefaultAddress(c *gin.Context)

>>>>>>>>>>>>>> Set Default <<<<<<<<<<<<<<<<<<<<<

func ShowAddress

func ShowAddress(c *gin.Context)

>>>>>>>>>>>>> show address <<<<<<<<<<<<<<<<<<<<<

func ShowOrder

func ShowOrder(c *gin.Context)

func ShowUserDetails

func ShowUserDetails(c *gin.Context)

>>>>>>>>>>>>Veiw user profile <<<<<<<<<<<<<<<<<<<<<<<<<<

func UpdateCart

func UpdateCart(c *gin.Context)

func UpdateOrderStatus

func UpdateOrderStatus(c *gin.Context)

func UpdatePaymentStatus

func UpdatePaymentStatus(c *gin.Context)

Update payment status by admin

func Updatepassword

func Updatepassword(c *gin.Context, id int, newPassword string)

>>>>>>>>>>>>> updating new user <<<<<<<<<<<<<<<<<<<<<<

func UserChangePassword

func UserChangePassword(c *gin.Context)

func UserHome

func UserHome(c *gin.Context)

func UserLogin

func UserLogin(c *gin.Context)

func UserSignUP

func UserSignUP(c *gin.Context)

func UserSignout

func UserSignout(c *gin.Context)

func UserValidate

func UserValidate(c *gin.Context)

>>>>>>>>>>>>>>> Validate <<<<<<<<<<<<<<<<<<<<<<<<<<<<

func ValidateAdmin

func ValidateAdmin(c *gin.Context)

func VerifyOTP

func VerifyOTP(email string) string

func ViewAllUser

func ViewAllUser(c *gin.Context)

func ViewBrand

func ViewBrand(c *gin.Context)

view brand

func ViewCart

func ViewCart(c *gin.Context)

View cart items using user id

func ViewProducts

func ViewProducts(c *gin.Context)

>>>>>>>>>>>>>> View products <<<<<<<<<<<<<<<<<<<<<<<<<<

func Wishlist

func Wishlist(c *gin.Context)

Types

type ProfileData

type ProfileData struct {
	Firstname   string `form:"firstname" binding:"required"`
	Lastname    string `form:"lastname" binding:"required"`
	PhoneNumber string `form:"phone" binding:"required"`
}

>>>>>>>>>>>>>>> Edit user profile <<<<<<<<<<<<<<<<<<

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址