Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v0.0.0-...-c6ee93b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminLogin

func AdminLogin(ctx *gin.Context)

AdminLogin 管理员登录

func AdminLoginPage

func AdminLoginPage(ctx *gin.Context)

AdminLoginPage 管理员登录页面

func Delete

func Delete(ctx *gin.Context)

Delete 删除商品

func Index

func Index(ctx *gin.Context)

Index 首页展示和逻辑处理

func Insert

func Insert(ctx *gin.Context)

Insert 增加商品

func Login

func Login(ctx *gin.Context)

Login 用户登录

func LoginPage

func LoginPage(ctx *gin.Context)

LoginPage 用户登录页面

func ProductPage

func ProductPage(ctx *gin.Context)

ProductPage 单个产品秒杀页面

func Register

func Register(ctx *gin.Context)

Register 用户注册

func RegisterPage

func RegisterPage(ctx *gin.Context)

RegisterPage 用户注册页面

func Search(ctx *gin.Context)

Search 查找商品

func SecKill

func SecKill(ctx *gin.Context)

SecKill 秒杀逻辑

func SetSecKillProduct

func SetSecKillProduct(ctx *gin.Context)

SetSecKillProduct 将商品设为秒杀商品

func TransSecKillProduct

func TransSecKillProduct(ctx *gin.Context, productID uint, timeDuration time.Duration) bool

TransSecKillProduct 将mysql中的秒杀商品转移到redis中

func Update

func Update(ctx *gin.Context)

Update 修改商品

Types

This section is empty.

Jump to

Keyboard shortcuts

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