user

package
v0.0.0-...-41aeeaa Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditInfo

func EditInfo(pg *db.DB, mc *minio.MC, logger *zap.SugaredLogger) echo.HandlerFunc

@Summary User Edit Info @Description Edit user information @Tags User @Param name formData string true "name of coupon" @Param address formData string true "user address" @Param email formData string true "email" @Param image formData file true "image file" @Accept json @Produce json @success 200 {object} db.UserUpdateInfoRow @Failure 400 {object} echo.HTTPError @Failure 500 {object} echo.HTTPError @Router /user/info [patch]

func EditPassword

func EditPassword(pg *db.DB, logger *zap.SugaredLogger) echo.HandlerFunc

@Summary User Edit Password @Description Change user password @Tags User @Param password body updatePasswordParams true "password" @Accept json @Produce json @success 200 {object} db.UserUpdatePasswordRow @Failure 400 {object} echo.HTTPError @Failure 401 {object} echo.HTTPError @Failure 500 {object} echo.HTTPError @Router /user/security/password [post]

func GetCreditCard

func GetCreditCard(pg *db.DB, logger *zap.SugaredLogger) echo.HandlerFunc

@Summary User Get Credit Card @Description Get all credit cards of the user @Tags CreditCard @Accept json @Produce json @Success 200 {object} json.RawMessage @Failure 500 {object} echo.HTTPError @Router /user/security/credit_card [get]

func GetInfo

func GetInfo(pg *db.DB, mc *minio.MC, logger *zap.SugaredLogger) echo.HandlerFunc

@Summary User Get Info @Description Get user information @Tags User @Accept json @Produce json @success 200 {object} db.UserGetInfoRow @Failure 500 {object} echo.HTTPError @Router /user/info [get]

func UpdateCreditCard

func UpdateCreditCard(pg *db.DB, logger *zap.SugaredLogger) echo.HandlerFunc

@Summary User Delete Credit Card @Description Delete a credit card by its ID @Tags CreditCard @Accept json @Produce json @Param credit_card body interface{} true "Credit Card" @Success 200 {object} json.RawMessage @Failure 400 {object} echo.HTTPError @Failure 500 {object} echo.HTTPError @Router /user/security/credit_card [patch]

Types

This section is empty.

Jump to

Keyboard shortcuts

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