Subversion Repositories SmartDukaan

Rev

Rev 19912 | Rev 19980 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19912 Rev 19973
Line 2630... Line 2630...
2630
    Parameters:
2630
    Parameters:
2631
     - storeId
2631
     - storeId
2632
    """
2632
    """
2633
    pass
2633
    pass
2634
 
2634
 
-
 
2635
  def getSellerInfo(self, sellerId):
-
 
2636
    """
-
 
2637
    Parameters:
-
 
2638
     - sellerId
-
 
2639
    """
-
 
2640
    pass
-
 
2641
 
2635
 
2642
 
2636
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2643
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2637
  def __init__(self, iprot, oprot=None):
2644
  def __init__(self, iprot, oprot=None):
2638
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2645
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2639
 
2646
 
Line 12581... Line 12588...
12581
    self._iprot.readMessageEnd()
12588
    self._iprot.readMessageEnd()
12582
    if result.success is not None:
12589
    if result.success is not None:
12583
      return result.success
12590
      return result.success
12584
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingStoreOrders failed: unknown result");
12591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingStoreOrders failed: unknown result");
12585
 
12592
 
-
 
12593
  def getSellerInfo(self, sellerId):
-
 
12594
    """
-
 
12595
    Parameters:
-
 
12596
     - sellerId
-
 
12597
    """
-
 
12598
    self.send_getSellerInfo(sellerId)
-
 
12599
    return self.recv_getSellerInfo()
-
 
12600
 
-
 
12601
  def send_getSellerInfo(self, sellerId):
-
 
12602
    self._oprot.writeMessageBegin('getSellerInfo', TMessageType.CALL, self._seqid)
-
 
12603
    args = getSellerInfo_args()
-
 
12604
    args.sellerId = sellerId
-
 
12605
    args.write(self._oprot)
-
 
12606
    self._oprot.writeMessageEnd()
-
 
12607
    self._oprot.trans.flush()
-
 
12608
 
-
 
12609
  def recv_getSellerInfo(self, ):
-
 
12610
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12611
    if mtype == TMessageType.EXCEPTION:
-
 
12612
      x = TApplicationException()
-
 
12613
      x.read(self._iprot)
-
 
12614
      self._iprot.readMessageEnd()
-
 
12615
      raise x
-
 
12616
    result = getSellerInfo_result()
-
 
12617
    result.read(self._iprot)
-
 
12618
    self._iprot.readMessageEnd()
-
 
12619
    if result.success is not None:
-
 
12620
      return result.success
-
 
12621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSellerInfo failed: unknown result");
-
 
12622
 
12586
 
12623
 
12587
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12624
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12588
  def __init__(self, handler):
12625
  def __init__(self, handler):
12589
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12626
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12590
    self._processMap["createTransaction"] = Processor.process_createTransaction
12627
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 12884... Line 12921...
12884
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12921
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12885
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12922
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12886
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
12923
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
12887
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
12924
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
12888
    self._processMap["getPendingStoreOrders"] = Processor.process_getPendingStoreOrders
12925
    self._processMap["getPendingStoreOrders"] = Processor.process_getPendingStoreOrders
-
 
12926
    self._processMap["getSellerInfo"] = Processor.process_getSellerInfo
12889
 
12927
 
12890
  def process(self, iprot, oprot):
12928
  def process(self, iprot, oprot):
12891
    (name, type, seqid) = iprot.readMessageBegin()
12929
    (name, type, seqid) = iprot.readMessageBegin()
12892
    if name not in self._processMap:
12930
    if name not in self._processMap:
12893
      iprot.skip(TType.STRUCT)
12931
      iprot.skip(TType.STRUCT)
Line 16606... Line 16644...
16606
    oprot.writeMessageBegin("getPendingStoreOrders", TMessageType.REPLY, seqid)
16644
    oprot.writeMessageBegin("getPendingStoreOrders", TMessageType.REPLY, seqid)
16607
    result.write(oprot)
16645
    result.write(oprot)
16608
    oprot.writeMessageEnd()
16646
    oprot.writeMessageEnd()
16609
    oprot.trans.flush()
16647
    oprot.trans.flush()
16610
 
16648
 
-
 
16649
  def process_getSellerInfo(self, seqid, iprot, oprot):
-
 
16650
    args = getSellerInfo_args()
-
 
16651
    args.read(iprot)
-
 
16652
    iprot.readMessageEnd()
-
 
16653
    result = getSellerInfo_result()
-
 
16654
    result.success = self._handler.getSellerInfo(args.sellerId)
-
 
16655
    oprot.writeMessageBegin("getSellerInfo", TMessageType.REPLY, seqid)
-
 
16656
    result.write(oprot)
-
 
16657
    oprot.writeMessageEnd()
-
 
16658
    oprot.trans.flush()
-
 
16659
 
16611
 
16660
 
16612
# HELPER FUNCTIONS AND STRUCTURES
16661
# HELPER FUNCTIONS AND STRUCTURES
16613
 
16662
 
16614
class createTransaction_args:
16663
class createTransaction_args:
16615
  """
16664
  """
Line 58245... Line 58294...
58245
      oprot.writeFieldEnd()
58294
      oprot.writeFieldEnd()
58246
    oprot.writeFieldStop()
58295
    oprot.writeFieldStop()
58247
    oprot.writeStructEnd()
58296
    oprot.writeStructEnd()
58248
 
58297
 
58249
  def validate(self):
58298
  def validate(self):
-
 
58299
    return
-
 
58300
 
-
 
58301
 
-
 
58302
  def __repr__(self):
-
 
58303
    L = ['%s=%r' % (key, value)
-
 
58304
      for key, value in self.__dict__.iteritems()]
-
 
58305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58306
 
-
 
58307
  def __eq__(self, other):
-
 
58308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58309
 
-
 
58310
  def __ne__(self, other):
-
 
58311
    return not (self == other)
-
 
58312
 
-
 
58313
class getSellerInfo_args:
-
 
58314
  """
-
 
58315
  Attributes:
-
 
58316
   - sellerId
-
 
58317
  """
-
 
58318
 
-
 
58319
  thrift_spec = (
-
 
58320
    None, # 0
-
 
58321
    (1, TType.I64, 'sellerId', None, None, ), # 1
-
 
58322
  )
-
 
58323
 
-
 
58324
  def __init__(self, sellerId=None,):
-
 
58325
    self.sellerId = sellerId
-
 
58326
 
-
 
58327
  def read(self, iprot):
-
 
58328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58330
      return
-
 
58331
    iprot.readStructBegin()
-
 
58332
    while True:
-
 
58333
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58334
      if ftype == TType.STOP:
-
 
58335
        break
-
 
58336
      if fid == 1:
-
 
58337
        if ftype == TType.I64:
-
 
58338
          self.sellerId = iprot.readI64();
-
 
58339
        else:
-
 
58340
          iprot.skip(ftype)
-
 
58341
      else:
-
 
58342
        iprot.skip(ftype)
-
 
58343
      iprot.readFieldEnd()
-
 
58344
    iprot.readStructEnd()
-
 
58345
 
-
 
58346
  def write(self, oprot):
-
 
58347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58349
      return
-
 
58350
    oprot.writeStructBegin('getSellerInfo_args')
-
 
58351
    if self.sellerId is not None:
-
 
58352
      oprot.writeFieldBegin('sellerId', TType.I64, 1)
-
 
58353
      oprot.writeI64(self.sellerId)
-
 
58354
      oprot.writeFieldEnd()
-
 
58355
    oprot.writeFieldStop()
-
 
58356
    oprot.writeStructEnd()
-
 
58357
 
-
 
58358
  def validate(self):
-
 
58359
    return
-
 
58360
 
-
 
58361
 
-
 
58362
  def __repr__(self):
-
 
58363
    L = ['%s=%r' % (key, value)
-
 
58364
      for key, value in self.__dict__.iteritems()]
-
 
58365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58366
 
-
 
58367
  def __eq__(self, other):
-
 
58368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58369
 
-
 
58370
  def __ne__(self, other):
-
 
58371
    return not (self == other)
-
 
58372
 
-
 
58373
class getSellerInfo_result:
-
 
58374
  """
-
 
58375
  Attributes:
-
 
58376
   - success
-
 
58377
  """
-
 
58378
 
-
 
58379
  thrift_spec = (
-
 
58380
    (0, TType.STRUCT, 'success', (SellerInfo, SellerInfo.thrift_spec), None, ), # 0
-
 
58381
  )
-
 
58382
 
-
 
58383
  def __init__(self, success=None,):
-
 
58384
    self.success = success
-
 
58385
 
-
 
58386
  def read(self, iprot):
-
 
58387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58389
      return
-
 
58390
    iprot.readStructBegin()
-
 
58391
    while True:
-
 
58392
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58393
      if ftype == TType.STOP:
-
 
58394
        break
-
 
58395
      if fid == 0:
-
 
58396
        if ftype == TType.STRUCT:
-
 
58397
          self.success = SellerInfo()
-
 
58398
          self.success.read(iprot)
-
 
58399
        else:
-
 
58400
          iprot.skip(ftype)
-
 
58401
      else:
-
 
58402
        iprot.skip(ftype)
-
 
58403
      iprot.readFieldEnd()
-
 
58404
    iprot.readStructEnd()
-
 
58405
 
-
 
58406
  def write(self, oprot):
-
 
58407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58409
      return
-
 
58410
    oprot.writeStructBegin('getSellerInfo_result')
-
 
58411
    if self.success is not None:
-
 
58412
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
58413
      self.success.write(oprot)
-
 
58414
      oprot.writeFieldEnd()
-
 
58415
    oprot.writeFieldStop()
-
 
58416
    oprot.writeStructEnd()
-
 
58417
 
-
 
58418
  def validate(self):
58250
    return
58419
    return
58251
 
58420
 
58252
 
58421
 
58253
  def __repr__(self):
58422
  def __repr__(self):
58254
    L = ['%s=%r' % (key, value)
58423
    L = ['%s=%r' % (key, value)