feat: sale manager

This commit is contained in:
zzw
2026-08-28 10:49:09 +08:00
parent 97eba7ad48
commit 6f567319be
82 changed files with 4491 additions and 182 deletions
@@ -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)