Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserAuthMiddleware *jwt.HertzJWTMiddleware ShopAuthMiddleware *jwt.HertzJWTMiddleware )
Functions ¶
func SendResponse ¶
func SendResponse(c *app.RequestContext, err error, data interface{})
SendResponse pack response
Types ¶
type AddProductRequest ¶
type CancelOrderReq ¶
type CancelOrderReq struct {
OrderId string `json:"order_id"`
}
type CreateOrderReq ¶
type EditProductRequest ¶
type EditProductRequest struct { ProductId string `json:"product_id"` Name *string `json:"name"` Pic *string `json:"pic"` Description *string `json:"description"` ISBN *string `json:"isbn"` SpuName *string `json:"spu_name"` SpuPrice *int64 `json:"spu_price"` Price *int64 `json:"price"` Stock *int64 `json:"stock"` }
type ListOrderReq ¶
type ListOrderReq struct {
Status *int64 `json:"status"`
}
type ListProductReq ¶
type LoginResponse ¶
type OperateProductReq ¶
type OperateProductReq struct {
ProductId string `json:"product_id"`
}
type SearchProductReq ¶
Click to show internal directories.
Click to hide internal directories.