Subversion Repositories SmartDukaan

Rev

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

Rev 3032 Rev 3293
Line 293... Line 293...
293
    Parameters:
293
    Parameters:
294
     - id
294
     - id
295
    """
295
    """
296
    pass
296
    pass
297
 
297
 
298
  def getTrackLogsByAffiliate(self, affiliateId):
298
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
299
    """
299
    """
300
    Parameters:
300
    Parameters:
301
     - affiliateId
301
     - affiliateId
-
 
302
     - startDate
-
 
303
     - endDate
302
    """
304
    """
303
    pass
305
    pass
304
 
306
 
305
  def getTrackLogsByUser(self, userId):
307
  def getTrackLogsByUser(self, userId):
306
    """
308
    """
Line 1806... Line 1808...
1806
      return result.success
1808
      return result.success
1807
    if result.utx != None:
1809
    if result.utx != None:
1808
      raise result.utx
1810
      raise result.utx
1809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1810
 
1812
 
1811
  def getTrackLogsByAffiliate(self, affiliateId):
1813
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1812
    """
1814
    """
1813
    Parameters:
1815
    Parameters:
1814
     - affiliateId
1816
     - affiliateId
-
 
1817
     - startDate
-
 
1818
     - endDate
1815
    """
1819
    """
1816
    self.send_getTrackLogsByAffiliate(affiliateId)
1820
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1817
    return self.recv_getTrackLogsByAffiliate()
1821
    return self.recv_getTrackLogsByAffiliate()
1818
 
1822
 
1819
  def send_getTrackLogsByAffiliate(self, affiliateId):
1823
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1820
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1824
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1821
    args = getTrackLogsByAffiliate_args()
1825
    args = getTrackLogsByAffiliate_args()
1822
    args.affiliateId = affiliateId
1826
    args.affiliateId = affiliateId
-
 
1827
    args.startDate = startDate
-
 
1828
    args.endDate = endDate
1823
    args.write(self._oprot)
1829
    args.write(self._oprot)
1824
    self._oprot.writeMessageEnd()
1830
    self._oprot.writeMessageEnd()
1825
    self._oprot.trans.flush()
1831
    self._oprot.trans.flush()
1826
 
1832
 
1827
  def recv_getTrackLogsByAffiliate(self, ):
1833
  def recv_getTrackLogsByAffiliate(self, ):
Line 3469... Line 3475...
3469
    args = getTrackLogsByAffiliate_args()
3475
    args = getTrackLogsByAffiliate_args()
3470
    args.read(iprot)
3476
    args.read(iprot)
3471
    iprot.readMessageEnd()
3477
    iprot.readMessageEnd()
3472
    result = getTrackLogsByAffiliate_result()
3478
    result = getTrackLogsByAffiliate_result()
3473
    try:
3479
    try:
3474
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId)
3480
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
3475
    except UserAffiliateException, utx:
3481
    except UserAffiliateException, utx:
3476
      result.utx = utx
3482
      result.utx = utx
3477
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
3483
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
3478
    result.write(oprot)
3484
    result.write(oprot)
3479
    oprot.writeMessageEnd()
3485
    oprot.writeMessageEnd()
Line 8768... Line 8774...
8768
 
8774
 
8769
class getTrackLogsByAffiliate_args:
8775
class getTrackLogsByAffiliate_args:
8770
  """
8776
  """
8771
  Attributes:
8777
  Attributes:
8772
   - affiliateId
8778
   - affiliateId
-
 
8779
   - startDate
-
 
8780
   - endDate
8773
  """
8781
  """
8774
 
8782
 
8775
  thrift_spec = (
8783
  thrift_spec = (
8776
    None, # 0
8784
    None, # 0
8777
    (1, TType.I64, 'affiliateId', None, None, ), # 1
8785
    (1, TType.I64, 'affiliateId', None, None, ), # 1
-
 
8786
    (2, TType.I64, 'startDate', None, None, ), # 2
-
 
8787
    (3, TType.I64, 'endDate', None, None, ), # 3
8778
  )
8788
  )
8779
 
8789
 
8780
  def __init__(self, affiliateId=None,):
8790
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
8781
    self.affiliateId = affiliateId
8791
    self.affiliateId = affiliateId
-
 
8792
    self.startDate = startDate
-
 
8793
    self.endDate = endDate
8782
 
8794
 
8783
  def read(self, iprot):
8795
  def read(self, iprot):
8784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8786
      return
8798
      return
Line 8792... Line 8804...
8792
      if fid == 1:
8804
      if fid == 1:
8793
        if ftype == TType.I64:
8805
        if ftype == TType.I64:
8794
          self.affiliateId = iprot.readI64();
8806
          self.affiliateId = iprot.readI64();
8795
        else:
8807
        else:
8796
          iprot.skip(ftype)
8808
          iprot.skip(ftype)
-
 
8809
      elif fid == 2:
-
 
8810
        if ftype == TType.I64:
-
 
8811
          self.startDate = iprot.readI64();
-
 
8812
        else:
-
 
8813
          iprot.skip(ftype)
-
 
8814
      elif fid == 3:
-
 
8815
        if ftype == TType.I64:
-
 
8816
          self.endDate = iprot.readI64();
-
 
8817
        else:
-
 
8818
          iprot.skip(ftype)
8797
      else:
8819
      else:
8798
        iprot.skip(ftype)
8820
        iprot.skip(ftype)
8799
      iprot.readFieldEnd()
8821
      iprot.readFieldEnd()
8800
    iprot.readStructEnd()
8822
    iprot.readStructEnd()
8801
 
8823
 
Line 8806... Line 8828...
8806
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
8828
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
8807
    if self.affiliateId != None:
8829
    if self.affiliateId != None:
8808
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8830
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8809
      oprot.writeI64(self.affiliateId)
8831
      oprot.writeI64(self.affiliateId)
8810
      oprot.writeFieldEnd()
8832
      oprot.writeFieldEnd()
-
 
8833
    if self.startDate != None:
-
 
8834
      oprot.writeFieldBegin('startDate', TType.I64, 2)
-
 
8835
      oprot.writeI64(self.startDate)
-
 
8836
      oprot.writeFieldEnd()
-
 
8837
    if self.endDate != None:
-
 
8838
      oprot.writeFieldBegin('endDate', TType.I64, 3)
-
 
8839
      oprot.writeI64(self.endDate)
-
 
8840
      oprot.writeFieldEnd()
8811
    oprot.writeFieldStop()
8841
    oprot.writeFieldStop()
8812
    oprot.writeStructEnd()
8842
    oprot.writeStructEnd()
8813
 
8843
 
8814
  def __repr__(self):
8844
  def __repr__(self):
8815
    L = ['%s=%r' % (key, value)
8845
    L = ['%s=%r' % (key, value)