Documentation ¶
Index ¶
- type SkuStockServiceServer
- func (s *SkuStockServiceServer) LockSkuStockLock(ctx context.Context, in *pmsclient.LockSkuStockLockReq) (*pmsclient.LockSkuStockLockResp, error)
- func (s *SkuStockServiceServer) QuerySkuStockByProductSkuId(ctx context.Context, in *pmsclient.QuerySkuStockByProductSkuIdReq) (*pmsclient.SkuStockListData, error)
- func (s *SkuStockServiceServer) ReleaseSkuStockLock(ctx context.Context, in *pmsclient.ReleaseSkuStockLockReq) (*pmsclient.ReleaseSkuStockLockResp, error)
- func (s *SkuStockServiceServer) SkuStockAdd(ctx context.Context, in *pmsclient.SkuStockAddReq) (*pmsclient.SkuStockAddResp, error)
- func (s *SkuStockServiceServer) SkuStockDelete(ctx context.Context, in *pmsclient.SkuStockDeleteReq) (*pmsclient.SkuStockDeleteResp, error)
- func (s *SkuStockServiceServer) SkuStockList(ctx context.Context, in *pmsclient.SkuStockListReq) (*pmsclient.SkuStockListResp, error)
- func (s *SkuStockServiceServer) SkuStockUpdate(ctx context.Context, in *pmsclient.SkuStockUpdateReq) (*pmsclient.SkuStockUpdateResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkuStockServiceServer ¶
type SkuStockServiceServer struct { pmsclient.UnimplementedSkuStockServiceServer // contains filtered or unexported fields }
func NewSkuStockServiceServer ¶
func NewSkuStockServiceServer(svcCtx *svc.ServiceContext) *SkuStockServiceServer
func (*SkuStockServiceServer) LockSkuStockLock ¶
func (s *SkuStockServiceServer) LockSkuStockLock(ctx context.Context, in *pmsclient.LockSkuStockLockReq) (*pmsclient.LockSkuStockLockResp, error)
下单的时候,锁定库存
func (*SkuStockServiceServer) QuerySkuStockByProductSkuId ¶
func (s *SkuStockServiceServer) QuerySkuStockByProductSkuId(ctx context.Context, in *pmsclient.QuerySkuStockByProductSkuIdReq) (*pmsclient.SkuStockListData, error)
根据ProductSkuId查询sku
func (*SkuStockServiceServer) ReleaseSkuStockLock ¶
func (s *SkuStockServiceServer) ReleaseSkuStockLock(ctx context.Context, in *pmsclient.ReleaseSkuStockLockReq) (*pmsclient.ReleaseSkuStockLockResp, error)
取消订单的时候,释放库存
func (*SkuStockServiceServer) SkuStockAdd ¶
func (s *SkuStockServiceServer) SkuStockAdd(ctx context.Context, in *pmsclient.SkuStockAddReq) (*pmsclient.SkuStockAddResp, error)
func (*SkuStockServiceServer) SkuStockDelete ¶
func (s *SkuStockServiceServer) SkuStockDelete(ctx context.Context, in *pmsclient.SkuStockDeleteReq) (*pmsclient.SkuStockDeleteResp, error)
func (*SkuStockServiceServer) SkuStockList ¶
func (s *SkuStockServiceServer) SkuStockList(ctx context.Context, in *pmsclient.SkuStockListReq) (*pmsclient.SkuStockListResp, error)
func (*SkuStockServiceServer) SkuStockUpdate ¶
func (s *SkuStockServiceServer) SkuStockUpdate(ctx context.Context, in *pmsclient.SkuStockUpdateReq) (*pmsclient.SkuStockUpdateResp, error)
Click to show internal directories.
Click to hide internal directories.