Subversion Repositories SmartDukaan

Rev

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

Rev 7808 Rev 7888
Line 207... Line 207...
207
     - logisticsLocationInfoList
207
     - logisticsLocationInfoList
208
     - runCompleteUpdate
208
     - runCompleteUpdate
209
    """
209
    """
210
    pass
210
    pass
211
 
211
 
-
 
212
  def adjustDeliveryDays(self, startDate, days):
-
 
213
    """
-
 
214
    Parameters:
-
 
215
     - startDate
-
 
216
     - days
-
 
217
    """
-
 
218
    pass
-
 
219
 
212
 
220
 
213
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
221
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
214
  def __init__(self, iprot, oprot=None):
222
  def __init__(self, iprot, oprot=None):
215
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
223
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
216
 
224
 
Line 901... Line 909...
901
    result = runLogisticsLocationInfoUpdate_result()
909
    result = runLogisticsLocationInfoUpdate_result()
902
    result.read(self._iprot)
910
    result.read(self._iprot)
903
    self._iprot.readMessageEnd()
911
    self._iprot.readMessageEnd()
904
    return
912
    return
905
 
913
 
-
 
914
  def adjustDeliveryDays(self, startDate, days):
-
 
915
    """
-
 
916
    Parameters:
-
 
917
     - startDate
-
 
918
     - days
-
 
919
    """
-
 
920
    self.send_adjustDeliveryDays(startDate, days)
-
 
921
    return self.recv_adjustDeliveryDays()
-
 
922
 
-
 
923
  def send_adjustDeliveryDays(self, startDate, days):
-
 
924
    self._oprot.writeMessageBegin('adjustDeliveryDays', TMessageType.CALL, self._seqid)
-
 
925
    args = adjustDeliveryDays_args()
-
 
926
    args.startDate = startDate
-
 
927
    args.days = days
-
 
928
    args.write(self._oprot)
-
 
929
    self._oprot.writeMessageEnd()
-
 
930
    self._oprot.trans.flush()
-
 
931
 
-
 
932
  def recv_adjustDeliveryDays(self, ):
-
 
933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
934
    if mtype == TMessageType.EXCEPTION:
-
 
935
      x = TApplicationException()
-
 
936
      x.read(self._iprot)
-
 
937
      self._iprot.readMessageEnd()
-
 
938
      raise x
-
 
939
    result = adjustDeliveryDays_result()
-
 
940
    result.read(self._iprot)
-
 
941
    self._iprot.readMessageEnd()
-
 
942
    if result.success is not None:
-
 
943
      return result.success
-
 
944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
-
 
945
 
906
 
946
 
907
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
947
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
908
  def __init__(self, handler):
948
  def __init__(self, handler):
909
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
949
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
910
    self._processMap["getProvider"] = Processor.process_getProvider
950
    self._processMap["getProvider"] = Processor.process_getProvider
Line 925... Line 965...
925
    self._processMap["getPickupStoreByHotspotId"] = Processor.process_getPickupStoreByHotspotId
965
    self._processMap["getPickupStoreByHotspotId"] = Processor.process_getPickupStoreByHotspotId
926
    self._processMap["addPincode"] = Processor.process_addPincode
966
    self._processMap["addPincode"] = Processor.process_addPincode
927
    self._processMap["updatePincode"] = Processor.process_updatePincode
967
    self._processMap["updatePincode"] = Processor.process_updatePincode
928
    self._processMap["addNewAwbs"] = Processor.process_addNewAwbs
968
    self._processMap["addNewAwbs"] = Processor.process_addNewAwbs
929
    self._processMap["runLogisticsLocationInfoUpdate"] = Processor.process_runLogisticsLocationInfoUpdate
969
    self._processMap["runLogisticsLocationInfoUpdate"] = Processor.process_runLogisticsLocationInfoUpdate
-
 
970
    self._processMap["adjustDeliveryDays"] = Processor.process_adjustDeliveryDays
930
 
971
 
931
  def process(self, iprot, oprot):
972
  def process(self, iprot, oprot):
932
    (name, type, seqid) = iprot.readMessageBegin()
973
    (name, type, seqid) = iprot.readMessageBegin()
933
    if name not in self._processMap:
974
    if name not in self._processMap:
934
      iprot.skip(TType.STRUCT)
975
      iprot.skip(TType.STRUCT)
Line 1191... Line 1232...
1191
    oprot.writeMessageBegin("runLogisticsLocationInfoUpdate", TMessageType.REPLY, seqid)
1232
    oprot.writeMessageBegin("runLogisticsLocationInfoUpdate", TMessageType.REPLY, seqid)
1192
    result.write(oprot)
1233
    result.write(oprot)
1193
    oprot.writeMessageEnd()
1234
    oprot.writeMessageEnd()
1194
    oprot.trans.flush()
1235
    oprot.trans.flush()
1195
 
1236
 
-
 
1237
  def process_adjustDeliveryDays(self, seqid, iprot, oprot):
-
 
1238
    args = adjustDeliveryDays_args()
-
 
1239
    args.read(iprot)
-
 
1240
    iprot.readMessageEnd()
-
 
1241
    result = adjustDeliveryDays_result()
-
 
1242
    result.success = self._handler.adjustDeliveryDays(args.startDate, args.days)
-
 
1243
    oprot.writeMessageBegin("adjustDeliveryDays", TMessageType.REPLY, seqid)
-
 
1244
    result.write(oprot)
-
 
1245
    oprot.writeMessageEnd()
-
 
1246
    oprot.trans.flush()
-
 
1247
 
1196
 
1248
 
1197
# HELPER FUNCTIONS AND STRUCTURES
1249
# HELPER FUNCTIONS AND STRUCTURES
1198
 
1250
 
1199
class getProvider_args:
1251
class getProvider_args:
1200
  """
1252
  """
Line 3979... Line 4031...
3979
    oprot.writeFieldStop()
4031
    oprot.writeFieldStop()
3980
    oprot.writeStructEnd()
4032
    oprot.writeStructEnd()
3981
 
4033
 
3982
  def validate(self):
4034
  def validate(self):
3983
    return
4035
    return
-
 
4036
 
-
 
4037
 
-
 
4038
  def __repr__(self):
-
 
4039
    L = ['%s=%r' % (key, value)
-
 
4040
      for key, value in self.__dict__.iteritems()]
-
 
4041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4042
 
-
 
4043
  def __eq__(self, other):
-
 
4044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4045
 
-
 
4046
  def __ne__(self, other):
-
 
4047
    return not (self == other)
-
 
4048
 
-
 
4049
class adjustDeliveryDays_args:
-
 
4050
  """
-
 
4051
  Attributes:
-
 
4052
   - startDate
-
 
4053
   - days
-
 
4054
  """
-
 
4055
 
-
 
4056
  thrift_spec = (
-
 
4057
    None, # 0
-
 
4058
    (1, TType.I64, 'startDate', None, None, ), # 1
-
 
4059
    (2, TType.I64, 'days', None, None, ), # 2
-
 
4060
  )
-
 
4061
 
-
 
4062
  def __init__(self, startDate=None, days=None,):
-
 
4063
    self.startDate = startDate
-
 
4064
    self.days = days
-
 
4065
 
-
 
4066
  def read(self, iprot):
-
 
4067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4069
      return
-
 
4070
    iprot.readStructBegin()
-
 
4071
    while True:
-
 
4072
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4073
      if ftype == TType.STOP:
-
 
4074
        break
-
 
4075
      if fid == 1:
-
 
4076
        if ftype == TType.I64:
-
 
4077
          self.startDate = iprot.readI64();
-
 
4078
        else:
-
 
4079
          iprot.skip(ftype)
-
 
4080
      elif fid == 2:
-
 
4081
        if ftype == TType.I64:
-
 
4082
          self.days = iprot.readI64();
-
 
4083
        else:
-
 
4084
          iprot.skip(ftype)
-
 
4085
      else:
-
 
4086
        iprot.skip(ftype)
-
 
4087
      iprot.readFieldEnd()
-
 
4088
    iprot.readStructEnd()
-
 
4089
 
-
 
4090
  def write(self, oprot):
-
 
4091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4093
      return
-
 
4094
    oprot.writeStructBegin('adjustDeliveryDays_args')
-
 
4095
    if self.startDate is not None:
-
 
4096
      oprot.writeFieldBegin('startDate', TType.I64, 1)
-
 
4097
      oprot.writeI64(self.startDate)
-
 
4098
      oprot.writeFieldEnd()
-
 
4099
    if self.days is not None:
-
 
4100
      oprot.writeFieldBegin('days', TType.I64, 2)
-
 
4101
      oprot.writeI64(self.days)
-
 
4102
      oprot.writeFieldEnd()
-
 
4103
    oprot.writeFieldStop()
-
 
4104
    oprot.writeStructEnd()
-
 
4105
 
-
 
4106
  def validate(self):
-
 
4107
    return
-
 
4108
 
-
 
4109
 
-
 
4110
  def __repr__(self):
-
 
4111
    L = ['%s=%r' % (key, value)
-
 
4112
      for key, value in self.__dict__.iteritems()]
-
 
4113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4114
 
-
 
4115
  def __eq__(self, other):
-
 
4116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4117
 
-
 
4118
  def __ne__(self, other):
-
 
4119
    return not (self == other)
-
 
4120
 
-
 
4121
class adjustDeliveryDays_result:
-
 
4122
  """
-
 
4123
  Attributes:
-
 
4124
   - success
-
 
4125
  """
-
 
4126
 
-
 
4127
  thrift_spec = (
-
 
4128
    (0, TType.I64, 'success', None, None, ), # 0
-
 
4129
  )
-
 
4130
 
-
 
4131
  def __init__(self, success=None,):
-
 
4132
    self.success = success
-
 
4133
 
-
 
4134
  def read(self, iprot):
-
 
4135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4137
      return
-
 
4138
    iprot.readStructBegin()
-
 
4139
    while True:
-
 
4140
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4141
      if ftype == TType.STOP:
-
 
4142
        break
-
 
4143
      if fid == 0:
-
 
4144
        if ftype == TType.I64:
-
 
4145
          self.success = iprot.readI64();
-
 
4146
        else:
-
 
4147
          iprot.skip(ftype)
-
 
4148
      else:
-
 
4149
        iprot.skip(ftype)
-
 
4150
      iprot.readFieldEnd()
-
 
4151
    iprot.readStructEnd()
-
 
4152
 
-
 
4153
  def write(self, oprot):
-
 
4154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4156
      return
-
 
4157
    oprot.writeStructBegin('adjustDeliveryDays_result')
-
 
4158
    if self.success is not None:
-
 
4159
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
4160
      oprot.writeI64(self.success)
-
 
4161
      oprot.writeFieldEnd()
-
 
4162
    oprot.writeFieldStop()
-
 
4163
    oprot.writeStructEnd()
-
 
4164
 
-
 
4165
  def validate(self):
-
 
4166
    return
3984
 
4167
 
3985
 
4168
 
3986
  def __repr__(self):
4169
  def __repr__(self):
3987
    L = ['%s=%r' % (key, value)
4170
    L = ['%s=%r' % (key, value)
3988
      for key, value in self.__dict__.iteritems()]
4171
      for key, value in self.__dict__.iteritems()]