/// <summary> /// 构造函数 /// </summary> /// <param name="orderRepo"></param> /// <param name="orderMgr"></param> /// <param name="whseRestClient"></param> /// <param name="maintRestClient"></param> public OrderAppService( IEfBasicRepository <Order> orderRepo , OrderManager orderMgr , IWhseRestClient whseRestClient , IMaintRestClient maintRestClient) { _orderRepo = orderRepo; _orderMgr = orderMgr; _whseRestClient = whseRestClient; _maintRestClient = maintRestClient; }
/// <summary> /// 商品管理构造函数 /// </summary> /// <param name="productRepo"></param> /// <param name="warehouseInfoRepo"></param> /// <param name="maintRestClient"></param> /// <param name="productMgr"></param> public ProductAppService( IEfBasicRepository <Product> productRepo , IEfBasicRepository <Warehouse> warehouseInfoRepo , IMaintRestClient maintRestClient , ProductManager productMgr) { _productMgr = productMgr; _productRepo = productRepo; _warehouseInfoRepo = warehouseInfoRepo; _maintRestClient = maintRestClient; }
public RestAndGrpcClientDemoController(IUsrRestClient usrRestClient , IMaintRestClient maintRestClient , IWhseRestClient whseRestClient , UsrGrpc.UsrGrpcClient usrGrpcClient , MaintGrpc.MaintGrpcClient maintGrpcClient , WhseGrpc.WhseGrpcClient whseGrpcClient) { _usrRestClient = usrRestClient; _maintRestClient = maintRestClient; _whseRestClient = whseRestClient; _usrGrpcClient = usrGrpcClient; _maintGrpcClient = maintGrpcClient; _whseGrpcClient = whseGrpcClient; }