goodsStockController

package
v0.0.0-...-4e87d69 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGoodsStock

func AddGoodsStock(c *gin.Context)

@Summary 添加商品库存 @tags 商品库存 @Accept application/json @Produce json @Param body body entity.AddGoodsStock true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/admin/goodsStock/addGoodsStock [POST] @Security ApiKeyAuth

func QueryByGoodsStockID

func QueryByGoodsStockID(c *gin.Context)

@Summary 查看商品库存详情 @tags 商品库存 @Accept application/json @Produce json @Param id query string true "商品库存ID" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/admin/goodsStock/queryByGoodsStockID [GET] @Security ApiKeyAuth

func QueryGoodsStocksByLimitOffset

func QueryGoodsStocksByLimitOffset(c *gin.Context)

@Summary 分页查询商品库存(默认前100条) 并返回总记录数 @tags 商品库存 @Accept application/x-www-form-urlencoded @Produce json @Param pageSize query string false "页大小" @Param page query string false "页数" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/admin/goodsStock/queryGoodsStocksByLimitOffset [GET] @Security ApiKeyAuth

func UpdateGoodsStock

func UpdateGoodsStock(c *gin.Context)

@Summary 增加商品库存、总数量 @tags 商品库存 @Accept application/json @Produce json @Param body body entity.UpdateGoodsStock true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/admin/goodsStock/updateGoodsStock [PUT] @Security ApiKeyAuth

Types

This section is empty.

Jump to

Keyboard shortcuts

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