feat: sale manager
This commit is contained in:
@@ -102,6 +102,12 @@ func (s *ProductServer) Number(ctx context.Context, in *product.NumberReq) (*emp
|
||||
return l.Number(in)
|
||||
}
|
||||
|
||||
// 批量增减库存(服务内按 id 排序后在同一事务中执行,防死锁)
|
||||
func (s *ProductServer) NumberItems(ctx context.Context, in *product.NumberItemsReq) (*emptypb.Empty, error) {
|
||||
l := logic.NewNumberItemsLogic(ctx, s.svcCtx)
|
||||
return l.NumberItems(in)
|
||||
}
|
||||
|
||||
func (s *ProductServer) InfoById(ctx context.Context, in *product.InfoByIdReq) (*product.Item, error) {
|
||||
l := logic.NewInfoByIdLogic(ctx, s.svcCtx)
|
||||
return l.InfoById(in)
|
||||
|
||||
Reference in New Issue
Block a user