hehaiqiang 1 год назад
Родитель
Сommit
8fbd6820ec
100 измененных файлов с 0 добавлено и 40993 удалено
  1. 0 0
      cc.txt
  2. 0 220
      extend/vip_sdk/src/com/vip/adp/api/open/service/ActivityInfo.php
  3. 0 249
      extend/vip_sdk/src/com/vip/adp/api/open/service/AfterSaleDetailInfo.php
  4. 0 191
      extend/vip_sdk/src/com/vip/adp/api/open/service/Category.php
  5. 0 154
      extend/vip_sdk/src/com/vip/adp/api/open/service/CategoryRequest.php
  6. 0 173
      extend/vip_sdk/src/com/vip/adp/api/open/service/CategoryResponse.php
  7. 0 249
      extend/vip_sdk/src/com/vip/adp/api/open/service/CommonParams.php
  8. 0 202
      extend/vip_sdk/src/com/vip/adp/api/open/service/CpsUnionPidGenResponse.php
  9. 0 173
      extend/vip_sdk/src/com/vip/adp/api/open/service/CpsUnionPidQueryResponse.php
  10. 0 133
      extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsCommentsInfo.php
  11. 0 1321
      extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsInfo.php
  12. 0 539
      extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsInfoRequest.php
  13. 0 300
      extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsInfoResponse.php
  14. 0 550
      extend/vip_sdk/src/com/vip/adp/api/open/service/OrderDetailInfo.php
  15. 0 811
      extend/vip_sdk/src/com/vip/adp/api/open/service/OrderInfo.php
  16. 0 418
      extend/vip_sdk/src/com/vip/adp/api/open/service/OrderQueryModel.php
  17. 0 231
      extend/vip_sdk/src/com/vip/adp/api/open/service/OrderResponse.php
  18. 0 161
      extend/vip_sdk/src/com/vip/adp/api/open/service/PidGenRequest.php
  19. 0 249
      extend/vip_sdk/src/com/vip/adp/api/open/service/PidInfo.php
  20. 0 219
      extend/vip_sdk/src/com/vip/adp/api/open/service/PidQueryRequest.php
  21. 0 394
      extend/vip_sdk/src/com/vip/adp/api/open/service/PrepayInfo.php
  22. 0 434
      extend/vip_sdk/src/com/vip/adp/api/open/service/PromotionMaterial.php
  23. 0 369
      extend/vip_sdk/src/com/vip/adp/api/open/service/PromotionMaterialRequest.php
  24. 0 231
      extend/vip_sdk/src/com/vip/adp/api/open/service/PromotionMaterialResponse.php
  25. 0 535
      extend/vip_sdk/src/com/vip/adp/api/open/service/QueryGoodsRequest.php
  26. 0 249
      extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderDetail.php
  27. 0 608
      extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderInfo.php
  28. 0 298
      extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderRequest.php
  29. 0 231
      extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderResponse.php
  30. 0 390
      extend/vip_sdk/src/com/vip/adp/api/open/service/SimilarRecommendRequest.php
  31. 0 133
      extend/vip_sdk/src/com/vip/adp/api/open/service/SortField.php
  32. 0 133
      extend/vip_sdk/src/com/vip/adp/api/open/service/StoreInfo.php
  33. 0 133
      extend/vip_sdk/src/com/vip/adp/api/open/service/StoreServiceCapability.php
  34. 0 220
      extend/vip_sdk/src/com/vip/adp/api/open/service/TargetBasicInfo.php
  35. 0 2536
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionGoodsService.php
  36. 0 78
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionGoodsServiceClient.php
  37. 0 22
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionGoodsServiceHelper.php
  38. 0 962
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionOrderService.php
  39. 0 78
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionOrderServiceClient.php
  40. 0 22
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionOrderServiceHelper.php
  41. 0 962
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPidService.php
  42. 0 78
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPidServiceClient.php
  43. 0 22
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPidServiceHelper.php
  44. 0 574
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPromotionMaterialService.php
  45. 0 78
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPromotionMaterialServiceClient.php
  46. 0 22
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPromotionMaterialServiceHelper.php
  47. 0 1766
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionUrlService.php
  48. 0 78
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionUrlServiceClient.php
  49. 0 22
      extend/vip_sdk/src/com/vip/adp/api/open/service/UnionUrlServiceHelper.php
  50. 0 144
      extend/vip_sdk/src/com/vip/adp/api/open/service/UrlGenResponse.php
  51. 0 394
      extend/vip_sdk/src/com/vip/adp/api/open/service/UrlInfo.php
  52. 0 311
      extend/vip_sdk/src/com/vip/adp/api/open/service/UserRecommendRequest.php
  53. 0 125
      extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkCheckReq.php
  54. 0 221
      extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkCheckResp.php
  55. 0 206
      extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkCheckVO.php
  56. 0 40
      extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkTypeEnum.php
  57. 0 365
      extend/vip_sdk/src/com/vip/adp/common/service/PMSCouponInfo.php
  58. 0 129
      extend/vip_sdk/src/com/vip/api/promotion/vis/common/FileFid.php
  59. 0 133
      extend/vip_sdk/src/com/vip/api/promotion/vis/common/NameValueItem.php
  60. 0 133
      extend/vip_sdk/src/com/vip/api/promotion/vis/common/Pager.php
  61. 0 421
      extend/vip_sdk/src/com/vip/api/promotion/vis/common/ResultModel.php
  62. 0 129
      extend/vip_sdk/src/com/vip/api/promotion/vis/common/TimedTaskResultModel.php
  63. 0 133
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ActivityInfoModel.php
  64. 0 202
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ActivityModel.php
  65. 0 112
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BatchProtContractDetailModel.php
  66. 0 197
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BatchProtContractDetailParam.php
  67. 0 336
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BrandGoods.php
  68. 0 133
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BuyAndCutInfo.php
  69. 0 179
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/CheckCaptchaParam.php
  70. 0 568
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/CommodityModel.php
  71. 0 257
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/CouponInfo.php
  72. 0 260
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/DiscountInfoModel.php
  73. 0 326
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ExclusivePrice.php
  74. 0 500
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/FullCutInfo.php
  75. 0 179
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/GetCaptchaParam.php
  76. 0 199
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/MobileInfo.php
  77. 0 158
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/OperatorParams.php
  78. 0 373
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/PrepayInfo.php
  79. 0 6342
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractApiService.php
  80. 0 78
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractApiServiceClient.php
  81. 0 22
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractApiServiceHelper.php
  82. 0 191
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAttachmentModel.php
  83. 0 191
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAttachmentParams.php
  84. 0 305
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAuditParams.php
  85. 0 307
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAuditingLogModel.php
  86. 0 287
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailModel.php
  87. 0 231
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailPageModel.php
  88. 0 194
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailParam.php
  89. 0 162
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailQueryParam.php
  90. 0 149
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailQueryParams.php
  91. 0 1246
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDiscountInfoModel.php
  92. 0 1286
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDiscountInfoParams.php
  93. 0 1750
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractMainInfoModel.php
  94. 0 919
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractMainInfoParams.php
  95. 0 173
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractPageModel.php
  96. 0 899
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractQueryForAuditParam.php
  97. 0 899
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractQueryParam.php
  98. 0 162
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractSalesNameParam.php
  99. 0 136
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractSalesNameResultModel.php
  100. 0 0
      extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractSubmitParam.php

+ 0 - 220
extend/vip_sdk/src/com/vip/adp/api/open/service/ActivityInfo.php

@@ -1,220 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class ActivityInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $actType = null;
17
-	public $actName = null;
18
-	public $beginTime = null;
19
-	public $endTime = null;
20
-	public $foreShowBeginTime = null;
21
-	
22
-	public function __construct($vals=null){
23
-		
24
-		if (!isset(self::$_TSPEC)){
25
-			
26
-			self::$_TSPEC = array(
27
-			1 => array(
28
-			'var' => 'actType'
29
-			),
30
-			2 => array(
31
-			'var' => 'actName'
32
-			),
33
-			3 => array(
34
-			'var' => 'beginTime'
35
-			),
36
-			4 => array(
37
-			'var' => 'endTime'
38
-			),
39
-			5 => array(
40
-			'var' => 'foreShowBeginTime'
41
-			),
42
-			
43
-			);
44
-			
45
-		}
46
-		
47
-		if (is_array($vals)){
48
-			
49
-			
50
-			if (isset($vals['actType'])){
51
-				
52
-				$this->actType = $vals['actType'];
53
-			}
54
-			
55
-			
56
-			if (isset($vals['actName'])){
57
-				
58
-				$this->actName = $vals['actName'];
59
-			}
60
-			
61
-			
62
-			if (isset($vals['beginTime'])){
63
-				
64
-				$this->beginTime = $vals['beginTime'];
65
-			}
66
-			
67
-			
68
-			if (isset($vals['endTime'])){
69
-				
70
-				$this->endTime = $vals['endTime'];
71
-			}
72
-			
73
-			
74
-			if (isset($vals['foreShowBeginTime'])){
75
-				
76
-				$this->foreShowBeginTime = $vals['foreShowBeginTime'];
77
-			}
78
-			
79
-			
80
-		}
81
-		
82
-	}
83
-	
84
-	
85
-	public function getName(){
86
-		
87
-		return 'ActivityInfo';
88
-	}
89
-	
90
-	public function read($input){
91
-		
92
-		$input->readStructBegin();
93
-		while(true){
94
-			
95
-			$schemeField = $input->readFieldBegin();
96
-			if ($schemeField == null) break;
97
-			$needSkip = true;
98
-			
99
-			
100
-			if ("actType" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readI32($this->actType); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("actName" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->actName);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("beginTime" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readI64($this->beginTime); 
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("endTime" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readI64($this->endTime); 
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("foreShowBeginTime" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readI64($this->foreShowBeginTime); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			if($needSkip){
150
-				
151
-				\Osp\Protocol\ProtocolUtil::skip($input);
152
-			}
153
-			
154
-			$input->readFieldEnd();
155
-		}
156
-		
157
-		$input->readStructEnd();
158
-		
159
-		
160
-		
161
-	}
162
-	
163
-	public function write($output){
164
-		
165
-		$xfer = 0;
166
-		$xfer += $output->writeStructBegin();
167
-		
168
-		if($this->actType !== null) {
169
-			
170
-			$xfer += $output->writeFieldBegin('actType');
171
-			$xfer += $output->writeI32($this->actType);
172
-			
173
-			$xfer += $output->writeFieldEnd();
174
-		}
175
-		
176
-		
177
-		if($this->actName !== null) {
178
-			
179
-			$xfer += $output->writeFieldBegin('actName');
180
-			$xfer += $output->writeString($this->actName);
181
-			
182
-			$xfer += $output->writeFieldEnd();
183
-		}
184
-		
185
-		
186
-		if($this->beginTime !== null) {
187
-			
188
-			$xfer += $output->writeFieldBegin('beginTime');
189
-			$xfer += $output->writeI64($this->beginTime);
190
-			
191
-			$xfer += $output->writeFieldEnd();
192
-		}
193
-		
194
-		
195
-		if($this->endTime !== null) {
196
-			
197
-			$xfer += $output->writeFieldBegin('endTime');
198
-			$xfer += $output->writeI64($this->endTime);
199
-			
200
-			$xfer += $output->writeFieldEnd();
201
-		}
202
-		
203
-		
204
-		if($this->foreShowBeginTime !== null) {
205
-			
206
-			$xfer += $output->writeFieldBegin('foreShowBeginTime');
207
-			$xfer += $output->writeI64($this->foreShowBeginTime);
208
-			
209
-			$xfer += $output->writeFieldEnd();
210
-		}
211
-		
212
-		
213
-		$xfer += $output->writeFieldStop();
214
-		$xfer += $output->writeStructEnd();
215
-		return $xfer;
216
-	}
217
-	
218
-}
219
-
220
-?>

+ 0 - 249
extend/vip_sdk/src/com/vip/adp/api/open/service/AfterSaleDetailInfo.php

@@ -1,249 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class AfterSaleDetailInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $afterSaleChangedCommission = null;
17
-	public $afterSaleChangedGoodsCount = null;
18
-	public $afterSaleSn = null;
19
-	public $afterSaleStatus = null;
20
-	public $afterSaleType = null;
21
-	public $afterSaleFinishTime = null;
22
-	
23
-	public function __construct($vals=null){
24
-		
25
-		if (!isset(self::$_TSPEC)){
26
-			
27
-			self::$_TSPEC = array(
28
-			1 => array(
29
-			'var' => 'afterSaleChangedCommission'
30
-			),
31
-			2 => array(
32
-			'var' => 'afterSaleChangedGoodsCount'
33
-			),
34
-			3 => array(
35
-			'var' => 'afterSaleSn'
36
-			),
37
-			4 => array(
38
-			'var' => 'afterSaleStatus'
39
-			),
40
-			5 => array(
41
-			'var' => 'afterSaleType'
42
-			),
43
-			6 => array(
44
-			'var' => 'afterSaleFinishTime'
45
-			),
46
-			
47
-			);
48
-			
49
-		}
50
-		
51
-		if (is_array($vals)){
52
-			
53
-			
54
-			if (isset($vals['afterSaleChangedCommission'])){
55
-				
56
-				$this->afterSaleChangedCommission = $vals['afterSaleChangedCommission'];
57
-			}
58
-			
59
-			
60
-			if (isset($vals['afterSaleChangedGoodsCount'])){
61
-				
62
-				$this->afterSaleChangedGoodsCount = $vals['afterSaleChangedGoodsCount'];
63
-			}
64
-			
65
-			
66
-			if (isset($vals['afterSaleSn'])){
67
-				
68
-				$this->afterSaleSn = $vals['afterSaleSn'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['afterSaleStatus'])){
73
-				
74
-				$this->afterSaleStatus = $vals['afterSaleStatus'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['afterSaleType'])){
79
-				
80
-				$this->afterSaleType = $vals['afterSaleType'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['afterSaleFinishTime'])){
85
-				
86
-				$this->afterSaleFinishTime = $vals['afterSaleFinishTime'];
87
-			}
88
-			
89
-			
90
-		}
91
-		
92
-	}
93
-	
94
-	
95
-	public function getName(){
96
-		
97
-		return 'AfterSaleDetailInfo';
98
-	}
99
-	
100
-	public function read($input){
101
-		
102
-		$input->readStructBegin();
103
-		while(true){
104
-			
105
-			$schemeField = $input->readFieldBegin();
106
-			if ($schemeField == null) break;
107
-			$needSkip = true;
108
-			
109
-			
110
-			if ("afterSaleChangedCommission" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->afterSaleChangedCommission);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("afterSaleChangedGoodsCount" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readI32($this->afterSaleChangedGoodsCount); 
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("afterSaleSn" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readString($this->afterSaleSn);
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("afterSaleStatus" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readI32($this->afterSaleStatus); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("afterSaleType" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readI32($this->afterSaleType); 
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("afterSaleFinishTime" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI64($this->afterSaleFinishTime); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			if($needSkip){
170
-				
171
-				\Osp\Protocol\ProtocolUtil::skip($input);
172
-			}
173
-			
174
-			$input->readFieldEnd();
175
-		}
176
-		
177
-		$input->readStructEnd();
178
-		
179
-		
180
-		
181
-	}
182
-	
183
-	public function write($output){
184
-		
185
-		$xfer = 0;
186
-		$xfer += $output->writeStructBegin();
187
-		
188
-		if($this->afterSaleChangedCommission !== null) {
189
-			
190
-			$xfer += $output->writeFieldBegin('afterSaleChangedCommission');
191
-			$xfer += $output->writeString($this->afterSaleChangedCommission);
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->afterSaleChangedGoodsCount !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('afterSaleChangedGoodsCount');
200
-			$xfer += $output->writeI32($this->afterSaleChangedGoodsCount);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->afterSaleSn !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('afterSaleSn');
209
-			$xfer += $output->writeString($this->afterSaleSn);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->afterSaleStatus !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('afterSaleStatus');
218
-			$xfer += $output->writeI32($this->afterSaleStatus);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		if($this->afterSaleType !== null) {
225
-			
226
-			$xfer += $output->writeFieldBegin('afterSaleType');
227
-			$xfer += $output->writeI32($this->afterSaleType);
228
-			
229
-			$xfer += $output->writeFieldEnd();
230
-		}
231
-		
232
-		
233
-		if($this->afterSaleFinishTime !== null) {
234
-			
235
-			$xfer += $output->writeFieldBegin('afterSaleFinishTime');
236
-			$xfer += $output->writeI64($this->afterSaleFinishTime);
237
-			
238
-			$xfer += $output->writeFieldEnd();
239
-		}
240
-		
241
-		
242
-		$xfer += $output->writeFieldStop();
243
-		$xfer += $output->writeStructEnd();
244
-		return $xfer;
245
-	}
246
-	
247
-}
248
-
249
-?>

+ 0 - 191
extend/vip_sdk/src/com/vip/adp/api/open/service/Category.php

@@ -1,191 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class Category {
14
-	
15
-	static $_TSPEC;
16
-	public $id = null;
17
-	public $name = null;
18
-	public $grade = null;
19
-	public $parentId = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'id'
28
-			),
29
-			2 => array(
30
-			'var' => 'name'
31
-			),
32
-			3 => array(
33
-			'var' => 'grade'
34
-			),
35
-			4 => array(
36
-			'var' => 'parentId'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['id'])){
47
-				
48
-				$this->id = $vals['id'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['name'])){
53
-				
54
-				$this->name = $vals['name'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['grade'])){
59
-				
60
-				$this->grade = $vals['grade'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['parentId'])){
65
-				
66
-				$this->parentId = $vals['parentId'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'Category';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("id" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI64($this->id); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("name" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readString($this->name);
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("grade" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readI32($this->grade); 
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("parentId" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readI64($this->parentId); 
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			if($needSkip){
130
-				
131
-				\Osp\Protocol\ProtocolUtil::skip($input);
132
-			}
133
-			
134
-			$input->readFieldEnd();
135
-		}
136
-		
137
-		$input->readStructEnd();
138
-		
139
-		
140
-		
141
-	}
142
-	
143
-	public function write($output){
144
-		
145
-		$xfer = 0;
146
-		$xfer += $output->writeStructBegin();
147
-		
148
-		if($this->id !== null) {
149
-			
150
-			$xfer += $output->writeFieldBegin('id');
151
-			$xfer += $output->writeI64($this->id);
152
-			
153
-			$xfer += $output->writeFieldEnd();
154
-		}
155
-		
156
-		
157
-		if($this->name !== null) {
158
-			
159
-			$xfer += $output->writeFieldBegin('name');
160
-			$xfer += $output->writeString($this->name);
161
-			
162
-			$xfer += $output->writeFieldEnd();
163
-		}
164
-		
165
-		
166
-		if($this->grade !== null) {
167
-			
168
-			$xfer += $output->writeFieldBegin('grade');
169
-			$xfer += $output->writeI32($this->grade);
170
-			
171
-			$xfer += $output->writeFieldEnd();
172
-		}
173
-		
174
-		
175
-		if($this->parentId !== null) {
176
-			
177
-			$xfer += $output->writeFieldBegin('parentId');
178
-			$xfer += $output->writeI64($this->parentId);
179
-			
180
-			$xfer += $output->writeFieldEnd();
181
-		}
182
-		
183
-		
184
-		$xfer += $output->writeFieldStop();
185
-		$xfer += $output->writeStructEnd();
186
-		return $xfer;
187
-	}
188
-	
189
-}
190
-
191
-?>

+ 0 - 154
extend/vip_sdk/src/com/vip/adp/api/open/service/CategoryRequest.php

@@ -1,154 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class CategoryRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $parentId = null;
17
-	public $grade = null;
18
-	public $requestId = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'parentId'
27
-			),
28
-			2 => array(
29
-			'var' => 'grade'
30
-			),
31
-			3 => array(
32
-			'var' => 'requestId'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['parentId'])){
43
-				
44
-				$this->parentId = $vals['parentId'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['grade'])){
49
-				
50
-				$this->grade = $vals['grade'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['requestId'])){
55
-				
56
-				$this->requestId = $vals['requestId'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'CategoryRequest';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("parentId" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readI64($this->parentId); 
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			
90
-			if ("grade" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI32($this->grade); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("requestId" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readString($this->requestId);
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			if($needSkip){
110
-				
111
-				\Osp\Protocol\ProtocolUtil::skip($input);
112
-			}
113
-			
114
-			$input->readFieldEnd();
115
-		}
116
-		
117
-		$input->readStructEnd();
118
-		
119
-		
120
-		
121
-	}
122
-	
123
-	public function write($output){
124
-		
125
-		$xfer = 0;
126
-		$xfer += $output->writeStructBegin();
127
-		
128
-		$xfer += $output->writeFieldBegin('parentId');
129
-		$xfer += $output->writeI64($this->parentId);
130
-		
131
-		$xfer += $output->writeFieldEnd();
132
-		
133
-		$xfer += $output->writeFieldBegin('grade');
134
-		$xfer += $output->writeI32($this->grade);
135
-		
136
-		$xfer += $output->writeFieldEnd();
137
-		
138
-		if($this->requestId !== null) {
139
-			
140
-			$xfer += $output->writeFieldBegin('requestId');
141
-			$xfer += $output->writeString($this->requestId);
142
-			
143
-			$xfer += $output->writeFieldEnd();
144
-		}
145
-		
146
-		
147
-		$xfer += $output->writeFieldStop();
148
-		$xfer += $output->writeStructEnd();
149
-		return $xfer;
150
-	}
151
-	
152
-}
153
-
154
-?>

+ 0 - 173
extend/vip_sdk/src/com/vip/adp/api/open/service/CategoryResponse.php

@@ -1,173 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class CategoryResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $data = null;
17
-	public $total = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'data'
26
-			),
27
-			2 => array(
28
-			'var' => 'total'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['data'])){
39
-				
40
-				$this->data = $vals['data'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['total'])){
45
-				
46
-				$this->total = $vals['total'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'CategoryResponse';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("data" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				
74
-				$this->data = array();
75
-				$_size0 = 0;
76
-				$input->readListBegin();
77
-				while(true){
78
-					
79
-					try{
80
-						
81
-						$elem0 = null;
82
-						
83
-						$elem0 = new \com\vip\adp\api\open\service\Category();
84
-						$elem0->read($input);
85
-						
86
-						$this->data[$_size0++] = $elem0;
87
-					}
88
-					catch(\Exception $e){
89
-						
90
-						break;
91
-					}
92
-				}
93
-				
94
-				$input->readListEnd();
95
-				
96
-			}
97
-			
98
-			
99
-			
100
-			
101
-			if ("total" == $schemeField){
102
-				
103
-				$needSkip = false;
104
-				$input->readI32($this->total); 
105
-				
106
-			}
107
-			
108
-			
109
-			
110
-			if($needSkip){
111
-				
112
-				\Osp\Protocol\ProtocolUtil::skip($input);
113
-			}
114
-			
115
-			$input->readFieldEnd();
116
-		}
117
-		
118
-		$input->readStructEnd();
119
-		
120
-		
121
-		
122
-	}
123
-	
124
-	public function write($output){
125
-		
126
-		$xfer = 0;
127
-		$xfer += $output->writeStructBegin();
128
-		
129
-		if($this->data !== null) {
130
-			
131
-			$xfer += $output->writeFieldBegin('data');
132
-			
133
-			if (!is_array($this->data)){
134
-				
135
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
136
-			}
137
-			
138
-			$output->writeListBegin();
139
-			foreach ($this->data as $iter0){
140
-				
141
-				
142
-				if (!is_object($iter0)) {
143
-					
144
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
145
-				}
146
-				
147
-				$xfer += $iter0->write($output);
148
-				
149
-			}
150
-			
151
-			$output->writeListEnd();
152
-			
153
-			$xfer += $output->writeFieldEnd();
154
-		}
155
-		
156
-		
157
-		if($this->total !== null) {
158
-			
159
-			$xfer += $output->writeFieldBegin('total');
160
-			$xfer += $output->writeI32($this->total);
161
-			
162
-			$xfer += $output->writeFieldEnd();
163
-		}
164
-		
165
-		
166
-		$xfer += $output->writeFieldStop();
167
-		$xfer += $output->writeStructEnd();
168
-		return $xfer;
169
-	}
170
-	
171
-}
172
-
173
-?>

+ 0 - 249
extend/vip_sdk/src/com/vip/adp/api/open/service/CommonParams.php

@@ -1,249 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class CommonParams {
14
-	
15
-	static $_TSPEC;
16
-	public $plat = null;
17
-	public $deviceType = null;
18
-	public $deviceValue = null;
19
-	public $ip = null;
20
-	public $longitude = null;
21
-	public $latitude = null;
22
-	
23
-	public function __construct($vals=null){
24
-		
25
-		if (!isset(self::$_TSPEC)){
26
-			
27
-			self::$_TSPEC = array(
28
-			1 => array(
29
-			'var' => 'plat'
30
-			),
31
-			2 => array(
32
-			'var' => 'deviceType'
33
-			),
34
-			3 => array(
35
-			'var' => 'deviceValue'
36
-			),
37
-			4 => array(
38
-			'var' => 'ip'
39
-			),
40
-			5 => array(
41
-			'var' => 'longitude'
42
-			),
43
-			6 => array(
44
-			'var' => 'latitude'
45
-			),
46
-			
47
-			);
48
-			
49
-		}
50
-		
51
-		if (is_array($vals)){
52
-			
53
-			
54
-			if (isset($vals['plat'])){
55
-				
56
-				$this->plat = $vals['plat'];
57
-			}
58
-			
59
-			
60
-			if (isset($vals['deviceType'])){
61
-				
62
-				$this->deviceType = $vals['deviceType'];
63
-			}
64
-			
65
-			
66
-			if (isset($vals['deviceValue'])){
67
-				
68
-				$this->deviceValue = $vals['deviceValue'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['ip'])){
73
-				
74
-				$this->ip = $vals['ip'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['longitude'])){
79
-				
80
-				$this->longitude = $vals['longitude'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['latitude'])){
85
-				
86
-				$this->latitude = $vals['latitude'];
87
-			}
88
-			
89
-			
90
-		}
91
-		
92
-	}
93
-	
94
-	
95
-	public function getName(){
96
-		
97
-		return 'CommonParams';
98
-	}
99
-	
100
-	public function read($input){
101
-		
102
-		$input->readStructBegin();
103
-		while(true){
104
-			
105
-			$schemeField = $input->readFieldBegin();
106
-			if ($schemeField == null) break;
107
-			$needSkip = true;
108
-			
109
-			
110
-			if ("plat" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readI32($this->plat); 
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("deviceType" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->deviceType);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("deviceValue" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readString($this->deviceValue);
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("ip" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readString($this->ip);
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("longitude" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->longitude);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("latitude" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->latitude);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			if($needSkip){
170
-				
171
-				\Osp\Protocol\ProtocolUtil::skip($input);
172
-			}
173
-			
174
-			$input->readFieldEnd();
175
-		}
176
-		
177
-		$input->readStructEnd();
178
-		
179
-		
180
-		
181
-	}
182
-	
183
-	public function write($output){
184
-		
185
-		$xfer = 0;
186
-		$xfer += $output->writeStructBegin();
187
-		
188
-		if($this->plat !== null) {
189
-			
190
-			$xfer += $output->writeFieldBegin('plat');
191
-			$xfer += $output->writeI32($this->plat);
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->deviceType !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('deviceType');
200
-			$xfer += $output->writeString($this->deviceType);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->deviceValue !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('deviceValue');
209
-			$xfer += $output->writeString($this->deviceValue);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->ip !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('ip');
218
-			$xfer += $output->writeString($this->ip);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		if($this->longitude !== null) {
225
-			
226
-			$xfer += $output->writeFieldBegin('longitude');
227
-			$xfer += $output->writeString($this->longitude);
228
-			
229
-			$xfer += $output->writeFieldEnd();
230
-		}
231
-		
232
-		
233
-		if($this->latitude !== null) {
234
-			
235
-			$xfer += $output->writeFieldBegin('latitude');
236
-			$xfer += $output->writeString($this->latitude);
237
-			
238
-			$xfer += $output->writeFieldEnd();
239
-		}
240
-		
241
-		
242
-		$xfer += $output->writeFieldStop();
243
-		$xfer += $output->writeStructEnd();
244
-		return $xfer;
245
-	}
246
-	
247
-}
248
-
249
-?>

+ 0 - 202
extend/vip_sdk/src/com/vip/adp/api/open/service/CpsUnionPidGenResponse.php

@@ -1,202 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class CpsUnionPidGenResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $pidInfoList = null;
17
-	public $total = null;
18
-	public $remainPidCount = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'pidInfoList'
27
-			),
28
-			2 => array(
29
-			'var' => 'total'
30
-			),
31
-			3 => array(
32
-			'var' => 'remainPidCount'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['pidInfoList'])){
43
-				
44
-				$this->pidInfoList = $vals['pidInfoList'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['total'])){
49
-				
50
-				$this->total = $vals['total'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['remainPidCount'])){
55
-				
56
-				$this->remainPidCount = $vals['remainPidCount'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'CpsUnionPidGenResponse';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("pidInfoList" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				
84
-				$this->pidInfoList = array();
85
-				$_size0 = 0;
86
-				$input->readListBegin();
87
-				while(true){
88
-					
89
-					try{
90
-						
91
-						$elem0 = null;
92
-						
93
-						$elem0 = new \com\vip\adp\api\open\service\PidInfo();
94
-						$elem0->read($input);
95
-						
96
-						$this->pidInfoList[$_size0++] = $elem0;
97
-					}
98
-					catch(\Exception $e){
99
-						
100
-						break;
101
-					}
102
-				}
103
-				
104
-				$input->readListEnd();
105
-				
106
-			}
107
-			
108
-			
109
-			
110
-			
111
-			if ("total" == $schemeField){
112
-				
113
-				$needSkip = false;
114
-				$input->readI32($this->total); 
115
-				
116
-			}
117
-			
118
-			
119
-			
120
-			
121
-			if ("remainPidCount" == $schemeField){
122
-				
123
-				$needSkip = false;
124
-				$input->readI32($this->remainPidCount); 
125
-				
126
-			}
127
-			
128
-			
129
-			
130
-			if($needSkip){
131
-				
132
-				\Osp\Protocol\ProtocolUtil::skip($input);
133
-			}
134
-			
135
-			$input->readFieldEnd();
136
-		}
137
-		
138
-		$input->readStructEnd();
139
-		
140
-		
141
-		
142
-	}
143
-	
144
-	public function write($output){
145
-		
146
-		$xfer = 0;
147
-		$xfer += $output->writeStructBegin();
148
-		
149
-		if($this->pidInfoList !== null) {
150
-			
151
-			$xfer += $output->writeFieldBegin('pidInfoList');
152
-			
153
-			if (!is_array($this->pidInfoList)){
154
-				
155
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
156
-			}
157
-			
158
-			$output->writeListBegin();
159
-			foreach ($this->pidInfoList as $iter0){
160
-				
161
-				
162
-				if (!is_object($iter0)) {
163
-					
164
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
165
-				}
166
-				
167
-				$xfer += $iter0->write($output);
168
-				
169
-			}
170
-			
171
-			$output->writeListEnd();
172
-			
173
-			$xfer += $output->writeFieldEnd();
174
-		}
175
-		
176
-		
177
-		if($this->total !== null) {
178
-			
179
-			$xfer += $output->writeFieldBegin('total');
180
-			$xfer += $output->writeI32($this->total);
181
-			
182
-			$xfer += $output->writeFieldEnd();
183
-		}
184
-		
185
-		
186
-		if($this->remainPidCount !== null) {
187
-			
188
-			$xfer += $output->writeFieldBegin('remainPidCount');
189
-			$xfer += $output->writeI32($this->remainPidCount);
190
-			
191
-			$xfer += $output->writeFieldEnd();
192
-		}
193
-		
194
-		
195
-		$xfer += $output->writeFieldStop();
196
-		$xfer += $output->writeStructEnd();
197
-		return $xfer;
198
-	}
199
-	
200
-}
201
-
202
-?>

+ 0 - 173
extend/vip_sdk/src/com/vip/adp/api/open/service/CpsUnionPidQueryResponse.php

@@ -1,173 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class CpsUnionPidQueryResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $pidInfoList = null;
17
-	public $total = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'pidInfoList'
26
-			),
27
-			2 => array(
28
-			'var' => 'total'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['pidInfoList'])){
39
-				
40
-				$this->pidInfoList = $vals['pidInfoList'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['total'])){
45
-				
46
-				$this->total = $vals['total'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'CpsUnionPidQueryResponse';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("pidInfoList" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				
74
-				$this->pidInfoList = array();
75
-				$_size0 = 0;
76
-				$input->readListBegin();
77
-				while(true){
78
-					
79
-					try{
80
-						
81
-						$elem0 = null;
82
-						
83
-						$elem0 = new \com\vip\adp\api\open\service\PidInfo();
84
-						$elem0->read($input);
85
-						
86
-						$this->pidInfoList[$_size0++] = $elem0;
87
-					}
88
-					catch(\Exception $e){
89
-						
90
-						break;
91
-					}
92
-				}
93
-				
94
-				$input->readListEnd();
95
-				
96
-			}
97
-			
98
-			
99
-			
100
-			
101
-			if ("total" == $schemeField){
102
-				
103
-				$needSkip = false;
104
-				$input->readI32($this->total); 
105
-				
106
-			}
107
-			
108
-			
109
-			
110
-			if($needSkip){
111
-				
112
-				\Osp\Protocol\ProtocolUtil::skip($input);
113
-			}
114
-			
115
-			$input->readFieldEnd();
116
-		}
117
-		
118
-		$input->readStructEnd();
119
-		
120
-		
121
-		
122
-	}
123
-	
124
-	public function write($output){
125
-		
126
-		$xfer = 0;
127
-		$xfer += $output->writeStructBegin();
128
-		
129
-		if($this->pidInfoList !== null) {
130
-			
131
-			$xfer += $output->writeFieldBegin('pidInfoList');
132
-			
133
-			if (!is_array($this->pidInfoList)){
134
-				
135
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
136
-			}
137
-			
138
-			$output->writeListBegin();
139
-			foreach ($this->pidInfoList as $iter0){
140
-				
141
-				
142
-				if (!is_object($iter0)) {
143
-					
144
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
145
-				}
146
-				
147
-				$xfer += $iter0->write($output);
148
-				
149
-			}
150
-			
151
-			$output->writeListEnd();
152
-			
153
-			$xfer += $output->writeFieldEnd();
154
-		}
155
-		
156
-		
157
-		if($this->total !== null) {
158
-			
159
-			$xfer += $output->writeFieldBegin('total');
160
-			$xfer += $output->writeI32($this->total);
161
-			
162
-			$xfer += $output->writeFieldEnd();
163
-		}
164
-		
165
-		
166
-		$xfer += $output->writeFieldStop();
167
-		$xfer += $output->writeStructEnd();
168
-		return $xfer;
169
-	}
170
-	
171
-}
172
-
173
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsCommentsInfo.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class GoodsCommentsInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $comments = null;
17
-	public $goodCommentsShare = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'comments'
26
-			),
27
-			2 => array(
28
-			'var' => 'goodCommentsShare'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['comments'])){
39
-				
40
-				$this->comments = $vals['comments'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['goodCommentsShare'])){
45
-				
46
-				$this->goodCommentsShare = $vals['goodCommentsShare'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'GoodsCommentsInfo';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("comments" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readI32($this->comments); 
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("goodCommentsShare" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->goodCommentsShare);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->comments !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('comments');
111
-			$xfer += $output->writeI32($this->comments);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->goodCommentsShare !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('goodCommentsShare');
120
-			$xfer += $output->writeString($this->goodCommentsShare);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

Разница между файлами не показана из-за своего большого размера
+ 0 - 1321
extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsInfo.php


+ 0 - 539
extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsInfoRequest.php

@@ -1,539 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class GoodsInfoRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $channelType = null;
17
-	public $page = null;
18
-	public $pageSize = null;
19
-	public $requestId = null;
20
-	public $queryReputation = null;
21
-	public $queryStoreServiceCapability = null;
22
-	public $sourceType = null;
23
-	public $jxCode = null;
24
-	public $fieldName = null;
25
-	public $order = null;
26
-	public $queryStock = null;
27
-	public $queryActivity = null;
28
-	public $queryPrepay = null;
29
-	public $commonParams = null;
30
-	public $vendorCode = null;
31
-	public $chanTag = null;
32
-	
33
-	public function __construct($vals=null){
34
-		
35
-		if (!isset(self::$_TSPEC)){
36
-			
37
-			self::$_TSPEC = array(
38
-			1 => array(
39
-			'var' => 'channelType'
40
-			),
41
-			2 => array(
42
-			'var' => 'page'
43
-			),
44
-			3 => array(
45
-			'var' => 'pageSize'
46
-			),
47
-			4 => array(
48
-			'var' => 'requestId'
49
-			),
50
-			5 => array(
51
-			'var' => 'queryReputation'
52
-			),
53
-			6 => array(
54
-			'var' => 'queryStoreServiceCapability'
55
-			),
56
-			7 => array(
57
-			'var' => 'sourceType'
58
-			),
59
-			8 => array(
60
-			'var' => 'jxCode'
61
-			),
62
-			9 => array(
63
-			'var' => 'fieldName'
64
-			),
65
-			10 => array(
66
-			'var' => 'order'
67
-			),
68
-			11 => array(
69
-			'var' => 'queryStock'
70
-			),
71
-			12 => array(
72
-			'var' => 'queryActivity'
73
-			),
74
-			13 => array(
75
-			'var' => 'queryPrepay'
76
-			),
77
-			14 => array(
78
-			'var' => 'commonParams'
79
-			),
80
-			15 => array(
81
-			'var' => 'vendorCode'
82
-			),
83
-			16 => array(
84
-			'var' => 'chanTag'
85
-			),
86
-			
87
-			);
88
-			
89
-		}
90
-		
91
-		if (is_array($vals)){
92
-			
93
-			
94
-			if (isset($vals['channelType'])){
95
-				
96
-				$this->channelType = $vals['channelType'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['page'])){
101
-				
102
-				$this->page = $vals['page'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['pageSize'])){
107
-				
108
-				$this->pageSize = $vals['pageSize'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['requestId'])){
113
-				
114
-				$this->requestId = $vals['requestId'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['queryReputation'])){
119
-				
120
-				$this->queryReputation = $vals['queryReputation'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['queryStoreServiceCapability'])){
125
-				
126
-				$this->queryStoreServiceCapability = $vals['queryStoreServiceCapability'];
127
-			}
128
-			
129
-			
130
-			if (isset($vals['sourceType'])){
131
-				
132
-				$this->sourceType = $vals['sourceType'];
133
-			}
134
-			
135
-			
136
-			if (isset($vals['jxCode'])){
137
-				
138
-				$this->jxCode = $vals['jxCode'];
139
-			}
140
-			
141
-			
142
-			if (isset($vals['fieldName'])){
143
-				
144
-				$this->fieldName = $vals['fieldName'];
145
-			}
146
-			
147
-			
148
-			if (isset($vals['order'])){
149
-				
150
-				$this->order = $vals['order'];
151
-			}
152
-			
153
-			
154
-			if (isset($vals['queryStock'])){
155
-				
156
-				$this->queryStock = $vals['queryStock'];
157
-			}
158
-			
159
-			
160
-			if (isset($vals['queryActivity'])){
161
-				
162
-				$this->queryActivity = $vals['queryActivity'];
163
-			}
164
-			
165
-			
166
-			if (isset($vals['queryPrepay'])){
167
-				
168
-				$this->queryPrepay = $vals['queryPrepay'];
169
-			}
170
-			
171
-			
172
-			if (isset($vals['commonParams'])){
173
-				
174
-				$this->commonParams = $vals['commonParams'];
175
-			}
176
-			
177
-			
178
-			if (isset($vals['vendorCode'])){
179
-				
180
-				$this->vendorCode = $vals['vendorCode'];
181
-			}
182
-			
183
-			
184
-			if (isset($vals['chanTag'])){
185
-				
186
-				$this->chanTag = $vals['chanTag'];
187
-			}
188
-			
189
-			
190
-		}
191
-		
192
-	}
193
-	
194
-	
195
-	public function getName(){
196
-		
197
-		return 'GoodsInfoRequest';
198
-	}
199
-	
200
-	public function read($input){
201
-		
202
-		$input->readStructBegin();
203
-		while(true){
204
-			
205
-			$schemeField = $input->readFieldBegin();
206
-			if ($schemeField == null) break;
207
-			$needSkip = true;
208
-			
209
-			
210
-			if ("channelType" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readI32($this->channelType); 
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("page" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readI32($this->page); 
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("pageSize" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI32($this->pageSize); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("requestId" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readString($this->requestId);
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("queryReputation" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readBool($this->queryReputation);
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("queryStoreServiceCapability" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readBool($this->queryStoreServiceCapability);
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			
270
-			if ("sourceType" == $schemeField){
271
-				
272
-				$needSkip = false;
273
-				$input->readI32($this->sourceType); 
274
-				
275
-			}
276
-			
277
-			
278
-			
279
-			
280
-			if ("jxCode" == $schemeField){
281
-				
282
-				$needSkip = false;
283
-				$input->readString($this->jxCode);
284
-				
285
-			}
286
-			
287
-			
288
-			
289
-			
290
-			if ("fieldName" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				$input->readString($this->fieldName);
294
-				
295
-			}
296
-			
297
-			
298
-			
299
-			
300
-			if ("order" == $schemeField){
301
-				
302
-				$needSkip = false;
303
-				$input->readI32($this->order); 
304
-				
305
-			}
306
-			
307
-			
308
-			
309
-			
310
-			if ("queryStock" == $schemeField){
311
-				
312
-				$needSkip = false;
313
-				$input->readBool($this->queryStock);
314
-				
315
-			}
316
-			
317
-			
318
-			
319
-			
320
-			if ("queryActivity" == $schemeField){
321
-				
322
-				$needSkip = false;
323
-				$input->readBool($this->queryActivity);
324
-				
325
-			}
326
-			
327
-			
328
-			
329
-			
330
-			if ("queryPrepay" == $schemeField){
331
-				
332
-				$needSkip = false;
333
-				$input->readBool($this->queryPrepay);
334
-				
335
-			}
336
-			
337
-			
338
-			
339
-			
340
-			if ("commonParams" == $schemeField){
341
-				
342
-				$needSkip = false;
343
-				
344
-				$this->commonParams = new \com\vip\adp\api\open\service\CommonParams();
345
-				$this->commonParams->read($input);
346
-				
347
-			}
348
-			
349
-			
350
-			
351
-			
352
-			if ("vendorCode" == $schemeField){
353
-				
354
-				$needSkip = false;
355
-				$input->readString($this->vendorCode);
356
-				
357
-			}
358
-			
359
-			
360
-			
361
-			
362
-			if ("chanTag" == $schemeField){
363
-				
364
-				$needSkip = false;
365
-				$input->readString($this->chanTag);
366
-				
367
-			}
368
-			
369
-			
370
-			
371
-			if($needSkip){
372
-				
373
-				\Osp\Protocol\ProtocolUtil::skip($input);
374
-			}
375
-			
376
-			$input->readFieldEnd();
377
-		}
378
-		
379
-		$input->readStructEnd();
380
-		
381
-		
382
-		
383
-	}
384
-	
385
-	public function write($output){
386
-		
387
-		$xfer = 0;
388
-		$xfer += $output->writeStructBegin();
389
-		
390
-		if($this->channelType !== null) {
391
-			
392
-			$xfer += $output->writeFieldBegin('channelType');
393
-			$xfer += $output->writeI32($this->channelType);
394
-			
395
-			$xfer += $output->writeFieldEnd();
396
-		}
397
-		
398
-		
399
-		$xfer += $output->writeFieldBegin('page');
400
-		$xfer += $output->writeI32($this->page);
401
-		
402
-		$xfer += $output->writeFieldEnd();
403
-		
404
-		if($this->pageSize !== null) {
405
-			
406
-			$xfer += $output->writeFieldBegin('pageSize');
407
-			$xfer += $output->writeI32($this->pageSize);
408
-			
409
-			$xfer += $output->writeFieldEnd();
410
-		}
411
-		
412
-		
413
-		$xfer += $output->writeFieldBegin('requestId');
414
-		$xfer += $output->writeString($this->requestId);
415
-		
416
-		$xfer += $output->writeFieldEnd();
417
-		
418
-		if($this->queryReputation !== null) {
419
-			
420
-			$xfer += $output->writeFieldBegin('queryReputation');
421
-			$xfer += $output->writeBool($this->queryReputation);
422
-			
423
-			$xfer += $output->writeFieldEnd();
424
-		}
425
-		
426
-		
427
-		if($this->queryStoreServiceCapability !== null) {
428
-			
429
-			$xfer += $output->writeFieldBegin('queryStoreServiceCapability');
430
-			$xfer += $output->writeBool($this->queryStoreServiceCapability);
431
-			
432
-			$xfer += $output->writeFieldEnd();
433
-		}
434
-		
435
-		
436
-		if($this->sourceType !== null) {
437
-			
438
-			$xfer += $output->writeFieldBegin('sourceType');
439
-			$xfer += $output->writeI32($this->sourceType);
440
-			
441
-			$xfer += $output->writeFieldEnd();
442
-		}
443
-		
444
-		
445
-		if($this->jxCode !== null) {
446
-			
447
-			$xfer += $output->writeFieldBegin('jxCode');
448
-			$xfer += $output->writeString($this->jxCode);
449
-			
450
-			$xfer += $output->writeFieldEnd();
451
-		}
452
-		
453
-		
454
-		if($this->fieldName !== null) {
455
-			
456
-			$xfer += $output->writeFieldBegin('fieldName');
457
-			$xfer += $output->writeString($this->fieldName);
458
-			
459
-			$xfer += $output->writeFieldEnd();
460
-		}
461
-		
462
-		
463
-		if($this->order !== null) {
464
-			
465
-			$xfer += $output->writeFieldBegin('order');
466
-			$xfer += $output->writeI32($this->order);
467
-			
468
-			$xfer += $output->writeFieldEnd();
469
-		}
470
-		
471
-		
472
-		if($this->queryStock !== null) {
473
-			
474
-			$xfer += $output->writeFieldBegin('queryStock');
475
-			$xfer += $output->writeBool($this->queryStock);
476
-			
477
-			$xfer += $output->writeFieldEnd();
478
-		}
479
-		
480
-		
481
-		if($this->queryActivity !== null) {
482
-			
483
-			$xfer += $output->writeFieldBegin('queryActivity');
484
-			$xfer += $output->writeBool($this->queryActivity);
485
-			
486
-			$xfer += $output->writeFieldEnd();
487
-		}
488
-		
489
-		
490
-		if($this->queryPrepay !== null) {
491
-			
492
-			$xfer += $output->writeFieldBegin('queryPrepay');
493
-			$xfer += $output->writeBool($this->queryPrepay);
494
-			
495
-			$xfer += $output->writeFieldEnd();
496
-		}
497
-		
498
-		
499
-		if($this->commonParams !== null) {
500
-			
501
-			$xfer += $output->writeFieldBegin('commonParams');
502
-			
503
-			if (!is_object($this->commonParams)) {
504
-				
505
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
506
-			}
507
-			
508
-			$xfer += $this->commonParams->write($output);
509
-			
510
-			$xfer += $output->writeFieldEnd();
511
-		}
512
-		
513
-		
514
-		if($this->vendorCode !== null) {
515
-			
516
-			$xfer += $output->writeFieldBegin('vendorCode');
517
-			$xfer += $output->writeString($this->vendorCode);
518
-			
519
-			$xfer += $output->writeFieldEnd();
520
-		}
521
-		
522
-		
523
-		if($this->chanTag !== null) {
524
-			
525
-			$xfer += $output->writeFieldBegin('chanTag');
526
-			$xfer += $output->writeString($this->chanTag);
527
-			
528
-			$xfer += $output->writeFieldEnd();
529
-		}
530
-		
531
-		
532
-		$xfer += $output->writeFieldStop();
533
-		$xfer += $output->writeStructEnd();
534
-		return $xfer;
535
-	}
536
-	
537
-}
538
-
539
-?>

+ 0 - 300
extend/vip_sdk/src/com/vip/adp/api/open/service/GoodsInfoResponse.php

@@ -1,300 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class GoodsInfoResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $goodsInfoList = null;
17
-	public $total = null;
18
-	public $sortFields = null;
19
-	public $page = null;
20
-	public $pageSize = null;
21
-	
22
-	public function __construct($vals=null){
23
-		
24
-		if (!isset(self::$_TSPEC)){
25
-			
26
-			self::$_TSPEC = array(
27
-			1 => array(
28
-			'var' => 'goodsInfoList'
29
-			),
30
-			2 => array(
31
-			'var' => 'total'
32
-			),
33
-			4 => array(
34
-			'var' => 'sortFields'
35
-			),
36
-			5 => array(
37
-			'var' => 'page'
38
-			),
39
-			6 => array(
40
-			'var' => 'pageSize'
41
-			),
42
-			
43
-			);
44
-			
45
-		}
46
-		
47
-		if (is_array($vals)){
48
-			
49
-			
50
-			if (isset($vals['goodsInfoList'])){
51
-				
52
-				$this->goodsInfoList = $vals['goodsInfoList'];
53
-			}
54
-			
55
-			
56
-			if (isset($vals['total'])){
57
-				
58
-				$this->total = $vals['total'];
59
-			}
60
-			
61
-			
62
-			if (isset($vals['sortFields'])){
63
-				
64
-				$this->sortFields = $vals['sortFields'];
65
-			}
66
-			
67
-			
68
-			if (isset($vals['page'])){
69
-				
70
-				$this->page = $vals['page'];
71
-			}
72
-			
73
-			
74
-			if (isset($vals['pageSize'])){
75
-				
76
-				$this->pageSize = $vals['pageSize'];
77
-			}
78
-			
79
-			
80
-		}
81
-		
82
-	}
83
-	
84
-	
85
-	public function getName(){
86
-		
87
-		return 'GoodsInfoResponse';
88
-	}
89
-	
90
-	public function read($input){
91
-		
92
-		$input->readStructBegin();
93
-		while(true){
94
-			
95
-			$schemeField = $input->readFieldBegin();
96
-			if ($schemeField == null) break;
97
-			$needSkip = true;
98
-			
99
-			
100
-			if ("goodsInfoList" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				
104
-				$this->goodsInfoList = array();
105
-				$_size0 = 0;
106
-				$input->readListBegin();
107
-				while(true){
108
-					
109
-					try{
110
-						
111
-						$elem0 = null;
112
-						
113
-						$elem0 = new \com\vip\adp\api\open\service\GoodsInfo();
114
-						$elem0->read($input);
115
-						
116
-						$this->goodsInfoList[$_size0++] = $elem0;
117
-					}
118
-					catch(\Exception $e){
119
-						
120
-						break;
121
-					}
122
-				}
123
-				
124
-				$input->readListEnd();
125
-				
126
-			}
127
-			
128
-			
129
-			
130
-			
131
-			if ("total" == $schemeField){
132
-				
133
-				$needSkip = false;
134
-				$input->readI32($this->total); 
135
-				
136
-			}
137
-			
138
-			
139
-			
140
-			
141
-			if ("sortFields" == $schemeField){
142
-				
143
-				$needSkip = false;
144
-				
145
-				$this->sortFields = array();
146
-				$_size1 = 0;
147
-				$input->readListBegin();
148
-				while(true){
149
-					
150
-					try{
151
-						
152
-						$elem1 = null;
153
-						
154
-						$elem1 = new \com\vip\adp\api\open\service\SortField();
155
-						$elem1->read($input);
156
-						
157
-						$this->sortFields[$_size1++] = $elem1;
158
-					}
159
-					catch(\Exception $e){
160
-						
161
-						break;
162
-					}
163
-				}
164
-				
165
-				$input->readListEnd();
166
-				
167
-			}
168
-			
169
-			
170
-			
171
-			
172
-			if ("page" == $schemeField){
173
-				
174
-				$needSkip = false;
175
-				$input->readI32($this->page); 
176
-				
177
-			}
178
-			
179
-			
180
-			
181
-			
182
-			if ("pageSize" == $schemeField){
183
-				
184
-				$needSkip = false;
185
-				$input->readI32($this->pageSize); 
186
-				
187
-			}
188
-			
189
-			
190
-			
191
-			if($needSkip){
192
-				
193
-				\Osp\Protocol\ProtocolUtil::skip($input);
194
-			}
195
-			
196
-			$input->readFieldEnd();
197
-		}
198
-		
199
-		$input->readStructEnd();
200
-		
201
-		
202
-		
203
-	}
204
-	
205
-	public function write($output){
206
-		
207
-		$xfer = 0;
208
-		$xfer += $output->writeStructBegin();
209
-		
210
-		if($this->goodsInfoList !== null) {
211
-			
212
-			$xfer += $output->writeFieldBegin('goodsInfoList');
213
-			
214
-			if (!is_array($this->goodsInfoList)){
215
-				
216
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
217
-			}
218
-			
219
-			$output->writeListBegin();
220
-			foreach ($this->goodsInfoList as $iter0){
221
-				
222
-				
223
-				if (!is_object($iter0)) {
224
-					
225
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
226
-				}
227
-				
228
-				$xfer += $iter0->write($output);
229
-				
230
-			}
231
-			
232
-			$output->writeListEnd();
233
-			
234
-			$xfer += $output->writeFieldEnd();
235
-		}
236
-		
237
-		
238
-		if($this->total !== null) {
239
-			
240
-			$xfer += $output->writeFieldBegin('total');
241
-			$xfer += $output->writeI32($this->total);
242
-			
243
-			$xfer += $output->writeFieldEnd();
244
-		}
245
-		
246
-		
247
-		if($this->sortFields !== null) {
248
-			
249
-			$xfer += $output->writeFieldBegin('sortFields');
250
-			
251
-			if (!is_array($this->sortFields)){
252
-				
253
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
254
-			}
255
-			
256
-			$output->writeListBegin();
257
-			foreach ($this->sortFields as $iter0){
258
-				
259
-				
260
-				if (!is_object($iter0)) {
261
-					
262
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
263
-				}
264
-				
265
-				$xfer += $iter0->write($output);
266
-				
267
-			}
268
-			
269
-			$output->writeListEnd();
270
-			
271
-			$xfer += $output->writeFieldEnd();
272
-		}
273
-		
274
-		
275
-		if($this->page !== null) {
276
-			
277
-			$xfer += $output->writeFieldBegin('page');
278
-			$xfer += $output->writeI32($this->page);
279
-			
280
-			$xfer += $output->writeFieldEnd();
281
-		}
282
-		
283
-		
284
-		if($this->pageSize !== null) {
285
-			
286
-			$xfer += $output->writeFieldBegin('pageSize');
287
-			$xfer += $output->writeI32($this->pageSize);
288
-			
289
-			$xfer += $output->writeFieldEnd();
290
-		}
291
-		
292
-		
293
-		$xfer += $output->writeFieldStop();
294
-		$xfer += $output->writeStructEnd();
295
-		return $xfer;
296
-	}
297
-	
298
-}
299
-
300
-?>

+ 0 - 550
extend/vip_sdk/src/com/vip/adp/api/open/service/OrderDetailInfo.php

@@ -1,550 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class OrderDetailInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $goodsId = null;
17
-	public $goodsName = null;
18
-	public $goodsThumb = null;
19
-	public $goodsCount = null;
20
-	public $commissionTotalCost = null;
21
-	public $commissionRate = null;
22
-	public $commission = null;
23
-	public $commCode = null;
24
-	public $commName = null;
25
-	public $orderSource = null;
26
-	public $afterSaleInfo = null;
27
-	public $sizeId = null;
28
-	public $status = null;
29
-	public $brandStoreSn = null;
30
-	public $brandStoreName = null;
31
-	
32
-	public function __construct($vals=null){
33
-		
34
-		if (!isset(self::$_TSPEC)){
35
-			
36
-			self::$_TSPEC = array(
37
-			1 => array(
38
-			'var' => 'goodsId'
39
-			),
40
-			2 => array(
41
-			'var' => 'goodsName'
42
-			),
43
-			3 => array(
44
-			'var' => 'goodsThumb'
45
-			),
46
-			4 => array(
47
-			'var' => 'goodsCount'
48
-			),
49
-			5 => array(
50
-			'var' => 'commissionTotalCost'
51
-			),
52
-			6 => array(
53
-			'var' => 'commissionRate'
54
-			),
55
-			7 => array(
56
-			'var' => 'commission'
57
-			),
58
-			8 => array(
59
-			'var' => 'commCode'
60
-			),
61
-			9 => array(
62
-			'var' => 'commName'
63
-			),
64
-			10 => array(
65
-			'var' => 'orderSource'
66
-			),
67
-			11 => array(
68
-			'var' => 'afterSaleInfo'
69
-			),
70
-			12 => array(
71
-			'var' => 'sizeId'
72
-			),
73
-			13 => array(
74
-			'var' => 'status'
75
-			),
76
-			14 => array(
77
-			'var' => 'brandStoreSn'
78
-			),
79
-			15 => array(
80
-			'var' => 'brandStoreName'
81
-			),
82
-			
83
-			);
84
-			
85
-		}
86
-		
87
-		if (is_array($vals)){
88
-			
89
-			
90
-			if (isset($vals['goodsId'])){
91
-				
92
-				$this->goodsId = $vals['goodsId'];
93
-			}
94
-			
95
-			
96
-			if (isset($vals['goodsName'])){
97
-				
98
-				$this->goodsName = $vals['goodsName'];
99
-			}
100
-			
101
-			
102
-			if (isset($vals['goodsThumb'])){
103
-				
104
-				$this->goodsThumb = $vals['goodsThumb'];
105
-			}
106
-			
107
-			
108
-			if (isset($vals['goodsCount'])){
109
-				
110
-				$this->goodsCount = $vals['goodsCount'];
111
-			}
112
-			
113
-			
114
-			if (isset($vals['commissionTotalCost'])){
115
-				
116
-				$this->commissionTotalCost = $vals['commissionTotalCost'];
117
-			}
118
-			
119
-			
120
-			if (isset($vals['commissionRate'])){
121
-				
122
-				$this->commissionRate = $vals['commissionRate'];
123
-			}
124
-			
125
-			
126
-			if (isset($vals['commission'])){
127
-				
128
-				$this->commission = $vals['commission'];
129
-			}
130
-			
131
-			
132
-			if (isset($vals['commCode'])){
133
-				
134
-				$this->commCode = $vals['commCode'];
135
-			}
136
-			
137
-			
138
-			if (isset($vals['commName'])){
139
-				
140
-				$this->commName = $vals['commName'];
141
-			}
142
-			
143
-			
144
-			if (isset($vals['orderSource'])){
145
-				
146
-				$this->orderSource = $vals['orderSource'];
147
-			}
148
-			
149
-			
150
-			if (isset($vals['afterSaleInfo'])){
151
-				
152
-				$this->afterSaleInfo = $vals['afterSaleInfo'];
153
-			}
154
-			
155
-			
156
-			if (isset($vals['sizeId'])){
157
-				
158
-				$this->sizeId = $vals['sizeId'];
159
-			}
160
-			
161
-			
162
-			if (isset($vals['status'])){
163
-				
164
-				$this->status = $vals['status'];
165
-			}
166
-			
167
-			
168
-			if (isset($vals['brandStoreSn'])){
169
-				
170
-				$this->brandStoreSn = $vals['brandStoreSn'];
171
-			}
172
-			
173
-			
174
-			if (isset($vals['brandStoreName'])){
175
-				
176
-				$this->brandStoreName = $vals['brandStoreName'];
177
-			}
178
-			
179
-			
180
-		}
181
-		
182
-	}
183
-	
184
-	
185
-	public function getName(){
186
-		
187
-		return 'OrderDetailInfo';
188
-	}
189
-	
190
-	public function read($input){
191
-		
192
-		$input->readStructBegin();
193
-		while(true){
194
-			
195
-			$schemeField = $input->readFieldBegin();
196
-			if ($schemeField == null) break;
197
-			$needSkip = true;
198
-			
199
-			
200
-			if ("goodsId" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readString($this->goodsId);
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("goodsName" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readString($this->goodsName);
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("goodsThumb" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readString($this->goodsThumb);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("goodsCount" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI32($this->goodsCount); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("commissionTotalCost" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readString($this->commissionTotalCost);
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("commissionRate" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readString($this->commissionRate);
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("commission" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readString($this->commission);
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			
270
-			if ("commCode" == $schemeField){
271
-				
272
-				$needSkip = false;
273
-				$input->readString($this->commCode);
274
-				
275
-			}
276
-			
277
-			
278
-			
279
-			
280
-			if ("commName" == $schemeField){
281
-				
282
-				$needSkip = false;
283
-				$input->readString($this->commName);
284
-				
285
-			}
286
-			
287
-			
288
-			
289
-			
290
-			if ("orderSource" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				$input->readString($this->orderSource);
294
-				
295
-			}
296
-			
297
-			
298
-			
299
-			
300
-			if ("afterSaleInfo" == $schemeField){
301
-				
302
-				$needSkip = false;
303
-				
304
-				$this->afterSaleInfo = array();
305
-				$_size0 = 0;
306
-				$input->readListBegin();
307
-				while(true){
308
-					
309
-					try{
310
-						
311
-						$elem0 = null;
312
-						
313
-						$elem0 = new \com\vip\adp\api\open\service\AfterSaleDetailInfo();
314
-						$elem0->read($input);
315
-						
316
-						$this->afterSaleInfo[$_size0++] = $elem0;
317
-					}
318
-					catch(\Exception $e){
319
-						
320
-						break;
321
-					}
322
-				}
323
-				
324
-				$input->readListEnd();
325
-				
326
-			}
327
-			
328
-			
329
-			
330
-			
331
-			if ("sizeId" == $schemeField){
332
-				
333
-				$needSkip = false;
334
-				$input->readString($this->sizeId);
335
-				
336
-			}
337
-			
338
-			
339
-			
340
-			
341
-			if ("status" == $schemeField){
342
-				
343
-				$needSkip = false;
344
-				$input->readI16($this->status); 
345
-				
346
-			}
347
-			
348
-			
349
-			
350
-			
351
-			if ("brandStoreSn" == $schemeField){
352
-				
353
-				$needSkip = false;
354
-				$input->readString($this->brandStoreSn);
355
-				
356
-			}
357
-			
358
-			
359
-			
360
-			
361
-			if ("brandStoreName" == $schemeField){
362
-				
363
-				$needSkip = false;
364
-				$input->readString($this->brandStoreName);
365
-				
366
-			}
367
-			
368
-			
369
-			
370
-			if($needSkip){
371
-				
372
-				\Osp\Protocol\ProtocolUtil::skip($input);
373
-			}
374
-			
375
-			$input->readFieldEnd();
376
-		}
377
-		
378
-		$input->readStructEnd();
379
-		
380
-		
381
-		
382
-	}
383
-	
384
-	public function write($output){
385
-		
386
-		$xfer = 0;
387
-		$xfer += $output->writeStructBegin();
388
-		
389
-		if($this->goodsId !== null) {
390
-			
391
-			$xfer += $output->writeFieldBegin('goodsId');
392
-			$xfer += $output->writeString($this->goodsId);
393
-			
394
-			$xfer += $output->writeFieldEnd();
395
-		}
396
-		
397
-		
398
-		if($this->goodsName !== null) {
399
-			
400
-			$xfer += $output->writeFieldBegin('goodsName');
401
-			$xfer += $output->writeString($this->goodsName);
402
-			
403
-			$xfer += $output->writeFieldEnd();
404
-		}
405
-		
406
-		
407
-		if($this->goodsThumb !== null) {
408
-			
409
-			$xfer += $output->writeFieldBegin('goodsThumb');
410
-			$xfer += $output->writeString($this->goodsThumb);
411
-			
412
-			$xfer += $output->writeFieldEnd();
413
-		}
414
-		
415
-		
416
-		if($this->goodsCount !== null) {
417
-			
418
-			$xfer += $output->writeFieldBegin('goodsCount');
419
-			$xfer += $output->writeI32($this->goodsCount);
420
-			
421
-			$xfer += $output->writeFieldEnd();
422
-		}
423
-		
424
-		
425
-		if($this->commissionTotalCost !== null) {
426
-			
427
-			$xfer += $output->writeFieldBegin('commissionTotalCost');
428
-			$xfer += $output->writeString($this->commissionTotalCost);
429
-			
430
-			$xfer += $output->writeFieldEnd();
431
-		}
432
-		
433
-		
434
-		if($this->commissionRate !== null) {
435
-			
436
-			$xfer += $output->writeFieldBegin('commissionRate');
437
-			$xfer += $output->writeString($this->commissionRate);
438
-			
439
-			$xfer += $output->writeFieldEnd();
440
-		}
441
-		
442
-		
443
-		if($this->commission !== null) {
444
-			
445
-			$xfer += $output->writeFieldBegin('commission');
446
-			$xfer += $output->writeString($this->commission);
447
-			
448
-			$xfer += $output->writeFieldEnd();
449
-		}
450
-		
451
-		
452
-		if($this->commCode !== null) {
453
-			
454
-			$xfer += $output->writeFieldBegin('commCode');
455
-			$xfer += $output->writeString($this->commCode);
456
-			
457
-			$xfer += $output->writeFieldEnd();
458
-		}
459
-		
460
-		
461
-		if($this->commName !== null) {
462
-			
463
-			$xfer += $output->writeFieldBegin('commName');
464
-			$xfer += $output->writeString($this->commName);
465
-			
466
-			$xfer += $output->writeFieldEnd();
467
-		}
468
-		
469
-		
470
-		if($this->orderSource !== null) {
471
-			
472
-			$xfer += $output->writeFieldBegin('orderSource');
473
-			$xfer += $output->writeString($this->orderSource);
474
-			
475
-			$xfer += $output->writeFieldEnd();
476
-		}
477
-		
478
-		
479
-		if($this->afterSaleInfo !== null) {
480
-			
481
-			$xfer += $output->writeFieldBegin('afterSaleInfo');
482
-			
483
-			if (!is_array($this->afterSaleInfo)){
484
-				
485
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
486
-			}
487
-			
488
-			$output->writeListBegin();
489
-			foreach ($this->afterSaleInfo as $iter0){
490
-				
491
-				
492
-				if (!is_object($iter0)) {
493
-					
494
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
495
-				}
496
-				
497
-				$xfer += $iter0->write($output);
498
-				
499
-			}
500
-			
501
-			$output->writeListEnd();
502
-			
503
-			$xfer += $output->writeFieldEnd();
504
-		}
505
-		
506
-		
507
-		if($this->sizeId !== null) {
508
-			
509
-			$xfer += $output->writeFieldBegin('sizeId');
510
-			$xfer += $output->writeString($this->sizeId);
511
-			
512
-			$xfer += $output->writeFieldEnd();
513
-		}
514
-		
515
-		
516
-		if($this->status !== null) {
517
-			
518
-			$xfer += $output->writeFieldBegin('status');
519
-			$xfer += $output->writeI16($this->status);
520
-			
521
-			$xfer += $output->writeFieldEnd();
522
-		}
523
-		
524
-		
525
-		if($this->brandStoreSn !== null) {
526
-			
527
-			$xfer += $output->writeFieldBegin('brandStoreSn');
528
-			$xfer += $output->writeString($this->brandStoreSn);
529
-			
530
-			$xfer += $output->writeFieldEnd();
531
-		}
532
-		
533
-		
534
-		if($this->brandStoreName !== null) {
535
-			
536
-			$xfer += $output->writeFieldBegin('brandStoreName');
537
-			$xfer += $output->writeString($this->brandStoreName);
538
-			
539
-			$xfer += $output->writeFieldEnd();
540
-		}
541
-		
542
-		
543
-		$xfer += $output->writeFieldStop();
544
-		$xfer += $output->writeStructEnd();
545
-		return $xfer;
546
-	}
547
-	
548
-}
549
-
550
-?>

+ 0 - 811
extend/vip_sdk/src/com/vip/adp/api/open/service/OrderInfo.php

@@ -1,811 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class OrderInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $orderSn = null;
17
-	public $status = null;
18
-	public $newCustomer = null;
19
-	public $channelTag = null;
20
-	public $orderTime = null;
21
-	public $signTime = null;
22
-	public $settledTime = null;
23
-	public $detailList = null;
24
-	public $lastUpdateTime = null;
25
-	public $settled = null;
26
-	public $selfBuy = null;
27
-	public $orderSubStatusName = null;
28
-	public $commission = null;
29
-	public $afterSaleChangeCommission = null;
30
-	public $afterSaleChangeGoodsCount = null;
31
-	public $commissionEnterTime = null;
32
-	public $orderSource = null;
33
-	public $pid = null;
34
-	public $isPrepay = null;
35
-	public $statParam = null;
36
-	public $isSplit = null;
37
-	public $parentSn = null;
38
-	public $orderTrackReason = null;
39
-	public $appKey = null;
40
-	
41
-	public function __construct($vals=null){
42
-		
43
-		if (!isset(self::$_TSPEC)){
44
-			
45
-			self::$_TSPEC = array(
46
-			1 => array(
47
-			'var' => 'orderSn'
48
-			),
49
-			2 => array(
50
-			'var' => 'status'
51
-			),
52
-			3 => array(
53
-			'var' => 'newCustomer'
54
-			),
55
-			4 => array(
56
-			'var' => 'channelTag'
57
-			),
58
-			5 => array(
59
-			'var' => 'orderTime'
60
-			),
61
-			6 => array(
62
-			'var' => 'signTime'
63
-			),
64
-			7 => array(
65
-			'var' => 'settledTime'
66
-			),
67
-			8 => array(
68
-			'var' => 'detailList'
69
-			),
70
-			9 => array(
71
-			'var' => 'lastUpdateTime'
72
-			),
73
-			10 => array(
74
-			'var' => 'settled'
75
-			),
76
-			11 => array(
77
-			'var' => 'selfBuy'
78
-			),
79
-			12 => array(
80
-			'var' => 'orderSubStatusName'
81
-			),
82
-			13 => array(
83
-			'var' => 'commission'
84
-			),
85
-			14 => array(
86
-			'var' => 'afterSaleChangeCommission'
87
-			),
88
-			15 => array(
89
-			'var' => 'afterSaleChangeGoodsCount'
90
-			),
91
-			16 => array(
92
-			'var' => 'commissionEnterTime'
93
-			),
94
-			17 => array(
95
-			'var' => 'orderSource'
96
-			),
97
-			18 => array(
98
-			'var' => 'pid'
99
-			),
100
-			19 => array(
101
-			'var' => 'isPrepay'
102
-			),
103
-			20 => array(
104
-			'var' => 'statParam'
105
-			),
106
-			23 => array(
107
-			'var' => 'isSplit'
108
-			),
109
-			24 => array(
110
-			'var' => 'parentSn'
111
-			),
112
-			25 => array(
113
-			'var' => 'orderTrackReason'
114
-			),
115
-			26 => array(
116
-			'var' => 'appKey'
117
-			),
118
-			
119
-			);
120
-			
121
-		}
122
-		
123
-		if (is_array($vals)){
124
-			
125
-			
126
-			if (isset($vals['orderSn'])){
127
-				
128
-				$this->orderSn = $vals['orderSn'];
129
-			}
130
-			
131
-			
132
-			if (isset($vals['status'])){
133
-				
134
-				$this->status = $vals['status'];
135
-			}
136
-			
137
-			
138
-			if (isset($vals['newCustomer'])){
139
-				
140
-				$this->newCustomer = $vals['newCustomer'];
141
-			}
142
-			
143
-			
144
-			if (isset($vals['channelTag'])){
145
-				
146
-				$this->channelTag = $vals['channelTag'];
147
-			}
148
-			
149
-			
150
-			if (isset($vals['orderTime'])){
151
-				
152
-				$this->orderTime = $vals['orderTime'];
153
-			}
154
-			
155
-			
156
-			if (isset($vals['signTime'])){
157
-				
158
-				$this->signTime = $vals['signTime'];
159
-			}
160
-			
161
-			
162
-			if (isset($vals['settledTime'])){
163
-				
164
-				$this->settledTime = $vals['settledTime'];
165
-			}
166
-			
167
-			
168
-			if (isset($vals['detailList'])){
169
-				
170
-				$this->detailList = $vals['detailList'];
171
-			}
172
-			
173
-			
174
-			if (isset($vals['lastUpdateTime'])){
175
-				
176
-				$this->lastUpdateTime = $vals['lastUpdateTime'];
177
-			}
178
-			
179
-			
180
-			if (isset($vals['settled'])){
181
-				
182
-				$this->settled = $vals['settled'];
183
-			}
184
-			
185
-			
186
-			if (isset($vals['selfBuy'])){
187
-				
188
-				$this->selfBuy = $vals['selfBuy'];
189
-			}
190
-			
191
-			
192
-			if (isset($vals['orderSubStatusName'])){
193
-				
194
-				$this->orderSubStatusName = $vals['orderSubStatusName'];
195
-			}
196
-			
197
-			
198
-			if (isset($vals['commission'])){
199
-				
200
-				$this->commission = $vals['commission'];
201
-			}
202
-			
203
-			
204
-			if (isset($vals['afterSaleChangeCommission'])){
205
-				
206
-				$this->afterSaleChangeCommission = $vals['afterSaleChangeCommission'];
207
-			}
208
-			
209
-			
210
-			if (isset($vals['afterSaleChangeGoodsCount'])){
211
-				
212
-				$this->afterSaleChangeGoodsCount = $vals['afterSaleChangeGoodsCount'];
213
-			}
214
-			
215
-			
216
-			if (isset($vals['commissionEnterTime'])){
217
-				
218
-				$this->commissionEnterTime = $vals['commissionEnterTime'];
219
-			}
220
-			
221
-			
222
-			if (isset($vals['orderSource'])){
223
-				
224
-				$this->orderSource = $vals['orderSource'];
225
-			}
226
-			
227
-			
228
-			if (isset($vals['pid'])){
229
-				
230
-				$this->pid = $vals['pid'];
231
-			}
232
-			
233
-			
234
-			if (isset($vals['isPrepay'])){
235
-				
236
-				$this->isPrepay = $vals['isPrepay'];
237
-			}
238
-			
239
-			
240
-			if (isset($vals['statParam'])){
241
-				
242
-				$this->statParam = $vals['statParam'];
243
-			}
244
-			
245
-			
246
-			if (isset($vals['isSplit'])){
247
-				
248
-				$this->isSplit = $vals['isSplit'];
249
-			}
250
-			
251
-			
252
-			if (isset($vals['parentSn'])){
253
-				
254
-				$this->parentSn = $vals['parentSn'];
255
-			}
256
-			
257
-			
258
-			if (isset($vals['orderTrackReason'])){
259
-				
260
-				$this->orderTrackReason = $vals['orderTrackReason'];
261
-			}
262
-			
263
-			
264
-			if (isset($vals['appKey'])){
265
-				
266
-				$this->appKey = $vals['appKey'];
267
-			}
268
-			
269
-			
270
-		}
271
-		
272
-	}
273
-	
274
-	
275
-	public function getName(){
276
-		
277
-		return 'OrderInfo';
278
-	}
279
-	
280
-	public function read($input){
281
-		
282
-		$input->readStructBegin();
283
-		while(true){
284
-			
285
-			$schemeField = $input->readFieldBegin();
286
-			if ($schemeField == null) break;
287
-			$needSkip = true;
288
-			
289
-			
290
-			if ("orderSn" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				$input->readString($this->orderSn);
294
-				
295
-			}
296
-			
297
-			
298
-			
299
-			
300
-			if ("status" == $schemeField){
301
-				
302
-				$needSkip = false;
303
-				$input->readI16($this->status); 
304
-				
305
-			}
306
-			
307
-			
308
-			
309
-			
310
-			if ("newCustomer" == $schemeField){
311
-				
312
-				$needSkip = false;
313
-				$input->readI16($this->newCustomer); 
314
-				
315
-			}
316
-			
317
-			
318
-			
319
-			
320
-			if ("channelTag" == $schemeField){
321
-				
322
-				$needSkip = false;
323
-				$input->readString($this->channelTag);
324
-				
325
-			}
326
-			
327
-			
328
-			
329
-			
330
-			if ("orderTime" == $schemeField){
331
-				
332
-				$needSkip = false;
333
-				$input->readI64($this->orderTime); 
334
-				
335
-			}
336
-			
337
-			
338
-			
339
-			
340
-			if ("signTime" == $schemeField){
341
-				
342
-				$needSkip = false;
343
-				$input->readI64($this->signTime); 
344
-				
345
-			}
346
-			
347
-			
348
-			
349
-			
350
-			if ("settledTime" == $schemeField){
351
-				
352
-				$needSkip = false;
353
-				$input->readI64($this->settledTime); 
354
-				
355
-			}
356
-			
357
-			
358
-			
359
-			
360
-			if ("detailList" == $schemeField){
361
-				
362
-				$needSkip = false;
363
-				
364
-				$this->detailList = array();
365
-				$_size0 = 0;
366
-				$input->readListBegin();
367
-				while(true){
368
-					
369
-					try{
370
-						
371
-						$elem0 = null;
372
-						
373
-						$elem0 = new \com\vip\adp\api\open\service\OrderDetailInfo();
374
-						$elem0->read($input);
375
-						
376
-						$this->detailList[$_size0++] = $elem0;
377
-					}
378
-					catch(\Exception $e){
379
-						
380
-						break;
381
-					}
382
-				}
383
-				
384
-				$input->readListEnd();
385
-				
386
-			}
387
-			
388
-			
389
-			
390
-			
391
-			if ("lastUpdateTime" == $schemeField){
392
-				
393
-				$needSkip = false;
394
-				$input->readI64($this->lastUpdateTime); 
395
-				
396
-			}
397
-			
398
-			
399
-			
400
-			
401
-			if ("settled" == $schemeField){
402
-				
403
-				$needSkip = false;
404
-				$input->readI16($this->settled); 
405
-				
406
-			}
407
-			
408
-			
409
-			
410
-			
411
-			if ("selfBuy" == $schemeField){
412
-				
413
-				$needSkip = false;
414
-				$input->readI32($this->selfBuy); 
415
-				
416
-			}
417
-			
418
-			
419
-			
420
-			
421
-			if ("orderSubStatusName" == $schemeField){
422
-				
423
-				$needSkip = false;
424
-				$input->readString($this->orderSubStatusName);
425
-				
426
-			}
427
-			
428
-			
429
-			
430
-			
431
-			if ("commission" == $schemeField){
432
-				
433
-				$needSkip = false;
434
-				$input->readString($this->commission);
435
-				
436
-			}
437
-			
438
-			
439
-			
440
-			
441
-			if ("afterSaleChangeCommission" == $schemeField){
442
-				
443
-				$needSkip = false;
444
-				$input->readString($this->afterSaleChangeCommission);
445
-				
446
-			}
447
-			
448
-			
449
-			
450
-			
451
-			if ("afterSaleChangeGoodsCount" == $schemeField){
452
-				
453
-				$needSkip = false;
454
-				$input->readI32($this->afterSaleChangeGoodsCount); 
455
-				
456
-			}
457
-			
458
-			
459
-			
460
-			
461
-			if ("commissionEnterTime" == $schemeField){
462
-				
463
-				$needSkip = false;
464
-				$input->readI64($this->commissionEnterTime); 
465
-				
466
-			}
467
-			
468
-			
469
-			
470
-			
471
-			if ("orderSource" == $schemeField){
472
-				
473
-				$needSkip = false;
474
-				$input->readString($this->orderSource);
475
-				
476
-			}
477
-			
478
-			
479
-			
480
-			
481
-			if ("pid" == $schemeField){
482
-				
483
-				$needSkip = false;
484
-				$input->readString($this->pid);
485
-				
486
-			}
487
-			
488
-			
489
-			
490
-			
491
-			if ("isPrepay" == $schemeField){
492
-				
493
-				$needSkip = false;
494
-				$input->readI32($this->isPrepay); 
495
-				
496
-			}
497
-			
498
-			
499
-			
500
-			
501
-			if ("statParam" == $schemeField){
502
-				
503
-				$needSkip = false;
504
-				$input->readString($this->statParam);
505
-				
506
-			}
507
-			
508
-			
509
-			
510
-			
511
-			if ("isSplit" == $schemeField){
512
-				
513
-				$needSkip = false;
514
-				$input->readI32($this->isSplit); 
515
-				
516
-			}
517
-			
518
-			
519
-			
520
-			
521
-			if ("parentSn" == $schemeField){
522
-				
523
-				$needSkip = false;
524
-				$input->readString($this->parentSn);
525
-				
526
-			}
527
-			
528
-			
529
-			
530
-			
531
-			if ("orderTrackReason" == $schemeField){
532
-				
533
-				$needSkip = false;
534
-				$input->readI32($this->orderTrackReason); 
535
-				
536
-			}
537
-			
538
-			
539
-			
540
-			
541
-			if ("appKey" == $schemeField){
542
-				
543
-				$needSkip = false;
544
-				$input->readString($this->appKey);
545
-				
546
-			}
547
-			
548
-			
549
-			
550
-			if($needSkip){
551
-				
552
-				\Osp\Protocol\ProtocolUtil::skip($input);
553
-			}
554
-			
555
-			$input->readFieldEnd();
556
-		}
557
-		
558
-		$input->readStructEnd();
559
-		
560
-		
561
-		
562
-	}
563
-	
564
-	public function write($output){
565
-		
566
-		$xfer = 0;
567
-		$xfer += $output->writeStructBegin();
568
-		
569
-		if($this->orderSn !== null) {
570
-			
571
-			$xfer += $output->writeFieldBegin('orderSn');
572
-			$xfer += $output->writeString($this->orderSn);
573
-			
574
-			$xfer += $output->writeFieldEnd();
575
-		}
576
-		
577
-		
578
-		if($this->status !== null) {
579
-			
580
-			$xfer += $output->writeFieldBegin('status');
581
-			$xfer += $output->writeI16($this->status);
582
-			
583
-			$xfer += $output->writeFieldEnd();
584
-		}
585
-		
586
-		
587
-		if($this->newCustomer !== null) {
588
-			
589
-			$xfer += $output->writeFieldBegin('newCustomer');
590
-			$xfer += $output->writeI16($this->newCustomer);
591
-			
592
-			$xfer += $output->writeFieldEnd();
593
-		}
594
-		
595
-		
596
-		if($this->channelTag !== null) {
597
-			
598
-			$xfer += $output->writeFieldBegin('channelTag');
599
-			$xfer += $output->writeString($this->channelTag);
600
-			
601
-			$xfer += $output->writeFieldEnd();
602
-		}
603
-		
604
-		
605
-		if($this->orderTime !== null) {
606
-			
607
-			$xfer += $output->writeFieldBegin('orderTime');
608
-			$xfer += $output->writeI64($this->orderTime);
609
-			
610
-			$xfer += $output->writeFieldEnd();
611
-		}
612
-		
613
-		
614
-		if($this->signTime !== null) {
615
-			
616
-			$xfer += $output->writeFieldBegin('signTime');
617
-			$xfer += $output->writeI64($this->signTime);
618
-			
619
-			$xfer += $output->writeFieldEnd();
620
-		}
621
-		
622
-		
623
-		if($this->settledTime !== null) {
624
-			
625
-			$xfer += $output->writeFieldBegin('settledTime');
626
-			$xfer += $output->writeI64($this->settledTime);
627
-			
628
-			$xfer += $output->writeFieldEnd();
629
-		}
630
-		
631
-		
632
-		if($this->detailList !== null) {
633
-			
634
-			$xfer += $output->writeFieldBegin('detailList');
635
-			
636
-			if (!is_array($this->detailList)){
637
-				
638
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
639
-			}
640
-			
641
-			$output->writeListBegin();
642
-			foreach ($this->detailList as $iter0){
643
-				
644
-				
645
-				if (!is_object($iter0)) {
646
-					
647
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
648
-				}
649
-				
650
-				$xfer += $iter0->write($output);
651
-				
652
-			}
653
-			
654
-			$output->writeListEnd();
655
-			
656
-			$xfer += $output->writeFieldEnd();
657
-		}
658
-		
659
-		
660
-		if($this->lastUpdateTime !== null) {
661
-			
662
-			$xfer += $output->writeFieldBegin('lastUpdateTime');
663
-			$xfer += $output->writeI64($this->lastUpdateTime);
664
-			
665
-			$xfer += $output->writeFieldEnd();
666
-		}
667
-		
668
-		
669
-		if($this->settled !== null) {
670
-			
671
-			$xfer += $output->writeFieldBegin('settled');
672
-			$xfer += $output->writeI16($this->settled);
673
-			
674
-			$xfer += $output->writeFieldEnd();
675
-		}
676
-		
677
-		
678
-		if($this->selfBuy !== null) {
679
-			
680
-			$xfer += $output->writeFieldBegin('selfBuy');
681
-			$xfer += $output->writeI32($this->selfBuy);
682
-			
683
-			$xfer += $output->writeFieldEnd();
684
-		}
685
-		
686
-		
687
-		if($this->orderSubStatusName !== null) {
688
-			
689
-			$xfer += $output->writeFieldBegin('orderSubStatusName');
690
-			$xfer += $output->writeString($this->orderSubStatusName);
691
-			
692
-			$xfer += $output->writeFieldEnd();
693
-		}
694
-		
695
-		
696
-		if($this->commission !== null) {
697
-			
698
-			$xfer += $output->writeFieldBegin('commission');
699
-			$xfer += $output->writeString($this->commission);
700
-			
701
-			$xfer += $output->writeFieldEnd();
702
-		}
703
-		
704
-		
705
-		if($this->afterSaleChangeCommission !== null) {
706
-			
707
-			$xfer += $output->writeFieldBegin('afterSaleChangeCommission');
708
-			$xfer += $output->writeString($this->afterSaleChangeCommission);
709
-			
710
-			$xfer += $output->writeFieldEnd();
711
-		}
712
-		
713
-		
714
-		if($this->afterSaleChangeGoodsCount !== null) {
715
-			
716
-			$xfer += $output->writeFieldBegin('afterSaleChangeGoodsCount');
717
-			$xfer += $output->writeI32($this->afterSaleChangeGoodsCount);
718
-			
719
-			$xfer += $output->writeFieldEnd();
720
-		}
721
-		
722
-		
723
-		if($this->commissionEnterTime !== null) {
724
-			
725
-			$xfer += $output->writeFieldBegin('commissionEnterTime');
726
-			$xfer += $output->writeI64($this->commissionEnterTime);
727
-			
728
-			$xfer += $output->writeFieldEnd();
729
-		}
730
-		
731
-		
732
-		if($this->orderSource !== null) {
733
-			
734
-			$xfer += $output->writeFieldBegin('orderSource');
735
-			$xfer += $output->writeString($this->orderSource);
736
-			
737
-			$xfer += $output->writeFieldEnd();
738
-		}
739
-		
740
-		
741
-		if($this->pid !== null) {
742
-			
743
-			$xfer += $output->writeFieldBegin('pid');
744
-			$xfer += $output->writeString($this->pid);
745
-			
746
-			$xfer += $output->writeFieldEnd();
747
-		}
748
-		
749
-		
750
-		if($this->isPrepay !== null) {
751
-			
752
-			$xfer += $output->writeFieldBegin('isPrepay');
753
-			$xfer += $output->writeI32($this->isPrepay);
754
-			
755
-			$xfer += $output->writeFieldEnd();
756
-		}
757
-		
758
-		
759
-		if($this->statParam !== null) {
760
-			
761
-			$xfer += $output->writeFieldBegin('statParam');
762
-			$xfer += $output->writeString($this->statParam);
763
-			
764
-			$xfer += $output->writeFieldEnd();
765
-		}
766
-		
767
-		
768
-		if($this->isSplit !== null) {
769
-			
770
-			$xfer += $output->writeFieldBegin('isSplit');
771
-			$xfer += $output->writeI32($this->isSplit);
772
-			
773
-			$xfer += $output->writeFieldEnd();
774
-		}
775
-		
776
-		
777
-		if($this->parentSn !== null) {
778
-			
779
-			$xfer += $output->writeFieldBegin('parentSn');
780
-			$xfer += $output->writeString($this->parentSn);
781
-			
782
-			$xfer += $output->writeFieldEnd();
783
-		}
784
-		
785
-		
786
-		if($this->orderTrackReason !== null) {
787
-			
788
-			$xfer += $output->writeFieldBegin('orderTrackReason');
789
-			$xfer += $output->writeI32($this->orderTrackReason);
790
-			
791
-			$xfer += $output->writeFieldEnd();
792
-		}
793
-		
794
-		
795
-		if($this->appKey !== null) {
796
-			
797
-			$xfer += $output->writeFieldBegin('appKey');
798
-			$xfer += $output->writeString($this->appKey);
799
-			
800
-			$xfer += $output->writeFieldEnd();
801
-		}
802
-		
803
-		
804
-		$xfer += $output->writeFieldStop();
805
-		$xfer += $output->writeStructEnd();
806
-		return $xfer;
807
-	}
808
-	
809
-}
810
-
811
-?>

+ 0 - 418
extend/vip_sdk/src/com/vip/adp/api/open/service/OrderQueryModel.php

@@ -1,418 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class OrderQueryModel {
14
-	
15
-	static $_TSPEC;
16
-	public $status = null;
17
-	public $orderTimeStart = null;
18
-	public $orderTimeEnd = null;
19
-	public $page = null;
20
-	public $pageSize = null;
21
-	public $requestId = null;
22
-	public $updateTimeStart = null;
23
-	public $updateTimeEnd = null;
24
-	public $orderSnList = null;
25
-	public $vendorCode = null;
26
-	public $chanTag = null;
27
-	
28
-	public function __construct($vals=null){
29
-		
30
-		if (!isset(self::$_TSPEC)){
31
-			
32
-			self::$_TSPEC = array(
33
-			1 => array(
34
-			'var' => 'status'
35
-			),
36
-			2 => array(
37
-			'var' => 'orderTimeStart'
38
-			),
39
-			3 => array(
40
-			'var' => 'orderTimeEnd'
41
-			),
42
-			4 => array(
43
-			'var' => 'page'
44
-			),
45
-			5 => array(
46
-			'var' => 'pageSize'
47
-			),
48
-			6 => array(
49
-			'var' => 'requestId'
50
-			),
51
-			7 => array(
52
-			'var' => 'updateTimeStart'
53
-			),
54
-			8 => array(
55
-			'var' => 'updateTimeEnd'
56
-			),
57
-			9 => array(
58
-			'var' => 'orderSnList'
59
-			),
60
-			10 => array(
61
-			'var' => 'vendorCode'
62
-			),
63
-			11 => array(
64
-			'var' => 'chanTag'
65
-			),
66
-			
67
-			);
68
-			
69
-		}
70
-		
71
-		if (is_array($vals)){
72
-			
73
-			
74
-			if (isset($vals['status'])){
75
-				
76
-				$this->status = $vals['status'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['orderTimeStart'])){
81
-				
82
-				$this->orderTimeStart = $vals['orderTimeStart'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['orderTimeEnd'])){
87
-				
88
-				$this->orderTimeEnd = $vals['orderTimeEnd'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['page'])){
93
-				
94
-				$this->page = $vals['page'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['pageSize'])){
99
-				
100
-				$this->pageSize = $vals['pageSize'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['requestId'])){
105
-				
106
-				$this->requestId = $vals['requestId'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['updateTimeStart'])){
111
-				
112
-				$this->updateTimeStart = $vals['updateTimeStart'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['updateTimeEnd'])){
117
-				
118
-				$this->updateTimeEnd = $vals['updateTimeEnd'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['orderSnList'])){
123
-				
124
-				$this->orderSnList = $vals['orderSnList'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['vendorCode'])){
129
-				
130
-				$this->vendorCode = $vals['vendorCode'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['chanTag'])){
135
-				
136
-				$this->chanTag = $vals['chanTag'];
137
-			}
138
-			
139
-			
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function getName(){
146
-		
147
-		return 'OrderQueryModel';
148
-	}
149
-	
150
-	public function read($input){
151
-		
152
-		$input->readStructBegin();
153
-		while(true){
154
-			
155
-			$schemeField = $input->readFieldBegin();
156
-			if ($schemeField == null) break;
157
-			$needSkip = true;
158
-			
159
-			
160
-			if ("status" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI16($this->status); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("orderTimeStart" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readI64($this->orderTimeStart); 
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("orderTimeEnd" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readI64($this->orderTimeEnd); 
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("page" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readI32($this->page); 
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("pageSize" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readI32($this->pageSize); 
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("requestId" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readString($this->requestId);
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("updateTimeStart" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readI64($this->updateTimeStart); 
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("updateTimeEnd" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI64($this->updateTimeEnd); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("orderSnList" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				
244
-				$this->orderSnList = array();
245
-				$_size0 = 0;
246
-				$input->readListBegin();
247
-				while(true){
248
-					
249
-					try{
250
-						
251
-						$elem0 = null;
252
-						$input->readString($elem0);
253
-						
254
-						$this->orderSnList[$_size0++] = $elem0;
255
-					}
256
-					catch(\Exception $e){
257
-						
258
-						break;
259
-					}
260
-				}
261
-				
262
-				$input->readListEnd();
263
-				
264
-			}
265
-			
266
-			
267
-			
268
-			
269
-			if ("vendorCode" == $schemeField){
270
-				
271
-				$needSkip = false;
272
-				$input->readString($this->vendorCode);
273
-				
274
-			}
275
-			
276
-			
277
-			
278
-			
279
-			if ("chanTag" == $schemeField){
280
-				
281
-				$needSkip = false;
282
-				$input->readString($this->chanTag);
283
-				
284
-			}
285
-			
286
-			
287
-			
288
-			if($needSkip){
289
-				
290
-				\Osp\Protocol\ProtocolUtil::skip($input);
291
-			}
292
-			
293
-			$input->readFieldEnd();
294
-		}
295
-		
296
-		$input->readStructEnd();
297
-		
298
-		
299
-		
300
-	}
301
-	
302
-	public function write($output){
303
-		
304
-		$xfer = 0;
305
-		$xfer += $output->writeStructBegin();
306
-		
307
-		if($this->status !== null) {
308
-			
309
-			$xfer += $output->writeFieldBegin('status');
310
-			$xfer += $output->writeI16($this->status);
311
-			
312
-			$xfer += $output->writeFieldEnd();
313
-		}
314
-		
315
-		
316
-		if($this->orderTimeStart !== null) {
317
-			
318
-			$xfer += $output->writeFieldBegin('orderTimeStart');
319
-			$xfer += $output->writeI64($this->orderTimeStart);
320
-			
321
-			$xfer += $output->writeFieldEnd();
322
-		}
323
-		
324
-		
325
-		if($this->orderTimeEnd !== null) {
326
-			
327
-			$xfer += $output->writeFieldBegin('orderTimeEnd');
328
-			$xfer += $output->writeI64($this->orderTimeEnd);
329
-			
330
-			$xfer += $output->writeFieldEnd();
331
-		}
332
-		
333
-		
334
-		$xfer += $output->writeFieldBegin('page');
335
-		$xfer += $output->writeI32($this->page);
336
-		
337
-		$xfer += $output->writeFieldEnd();
338
-		
339
-		if($this->pageSize !== null) {
340
-			
341
-			$xfer += $output->writeFieldBegin('pageSize');
342
-			$xfer += $output->writeI32($this->pageSize);
343
-			
344
-			$xfer += $output->writeFieldEnd();
345
-		}
346
-		
347
-		
348
-		$xfer += $output->writeFieldBegin('requestId');
349
-		$xfer += $output->writeString($this->requestId);
350
-		
351
-		$xfer += $output->writeFieldEnd();
352
-		
353
-		if($this->updateTimeStart !== null) {
354
-			
355
-			$xfer += $output->writeFieldBegin('updateTimeStart');
356
-			$xfer += $output->writeI64($this->updateTimeStart);
357
-			
358
-			$xfer += $output->writeFieldEnd();
359
-		}
360
-		
361
-		
362
-		if($this->updateTimeEnd !== null) {
363
-			
364
-			$xfer += $output->writeFieldBegin('updateTimeEnd');
365
-			$xfer += $output->writeI64($this->updateTimeEnd);
366
-			
367
-			$xfer += $output->writeFieldEnd();
368
-		}
369
-		
370
-		
371
-		if($this->orderSnList !== null) {
372
-			
373
-			$xfer += $output->writeFieldBegin('orderSnList');
374
-			
375
-			if (!is_array($this->orderSnList)){
376
-				
377
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
378
-			}
379
-			
380
-			$output->writeListBegin();
381
-			foreach ($this->orderSnList as $iter0){
382
-				
383
-				$xfer += $output->writeString($iter0);
384
-				
385
-			}
386
-			
387
-			$output->writeListEnd();
388
-			
389
-			$xfer += $output->writeFieldEnd();
390
-		}
391
-		
392
-		
393
-		if($this->vendorCode !== null) {
394
-			
395
-			$xfer += $output->writeFieldBegin('vendorCode');
396
-			$xfer += $output->writeString($this->vendorCode);
397
-			
398
-			$xfer += $output->writeFieldEnd();
399
-		}
400
-		
401
-		
402
-		if($this->chanTag !== null) {
403
-			
404
-			$xfer += $output->writeFieldBegin('chanTag');
405
-			$xfer += $output->writeString($this->chanTag);
406
-			
407
-			$xfer += $output->writeFieldEnd();
408
-		}
409
-		
410
-		
411
-		$xfer += $output->writeFieldStop();
412
-		$xfer += $output->writeStructEnd();
413
-		return $xfer;
414
-	}
415
-	
416
-}
417
-
418
-?>

+ 0 - 231
extend/vip_sdk/src/com/vip/adp/api/open/service/OrderResponse.php

@@ -1,231 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class OrderResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $orderInfoList = null;
17
-	public $total = null;
18
-	public $page = null;
19
-	public $pageSize = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'orderInfoList'
28
-			),
29
-			2 => array(
30
-			'var' => 'total'
31
-			),
32
-			3 => array(
33
-			'var' => 'page'
34
-			),
35
-			4 => array(
36
-			'var' => 'pageSize'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['orderInfoList'])){
47
-				
48
-				$this->orderInfoList = $vals['orderInfoList'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['total'])){
53
-				
54
-				$this->total = $vals['total'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['page'])){
59
-				
60
-				$this->page = $vals['page'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['pageSize'])){
65
-				
66
-				$this->pageSize = $vals['pageSize'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'OrderResponse';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("orderInfoList" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				
94
-				$this->orderInfoList = array();
95
-				$_size0 = 0;
96
-				$input->readListBegin();
97
-				while(true){
98
-					
99
-					try{
100
-						
101
-						$elem0 = null;
102
-						
103
-						$elem0 = new \com\vip\adp\api\open\service\OrderInfo();
104
-						$elem0->read($input);
105
-						
106
-						$this->orderInfoList[$_size0++] = $elem0;
107
-					}
108
-					catch(\Exception $e){
109
-						
110
-						break;
111
-					}
112
-				}
113
-				
114
-				$input->readListEnd();
115
-				
116
-			}
117
-			
118
-			
119
-			
120
-			
121
-			if ("total" == $schemeField){
122
-				
123
-				$needSkip = false;
124
-				$input->readI32($this->total); 
125
-				
126
-			}
127
-			
128
-			
129
-			
130
-			
131
-			if ("page" == $schemeField){
132
-				
133
-				$needSkip = false;
134
-				$input->readI32($this->page); 
135
-				
136
-			}
137
-			
138
-			
139
-			
140
-			
141
-			if ("pageSize" == $schemeField){
142
-				
143
-				$needSkip = false;
144
-				$input->readI32($this->pageSize); 
145
-				
146
-			}
147
-			
148
-			
149
-			
150
-			if($needSkip){
151
-				
152
-				\Osp\Protocol\ProtocolUtil::skip($input);
153
-			}
154
-			
155
-			$input->readFieldEnd();
156
-		}
157
-		
158
-		$input->readStructEnd();
159
-		
160
-		
161
-		
162
-	}
163
-	
164
-	public function write($output){
165
-		
166
-		$xfer = 0;
167
-		$xfer += $output->writeStructBegin();
168
-		
169
-		if($this->orderInfoList !== null) {
170
-			
171
-			$xfer += $output->writeFieldBegin('orderInfoList');
172
-			
173
-			if (!is_array($this->orderInfoList)){
174
-				
175
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
176
-			}
177
-			
178
-			$output->writeListBegin();
179
-			foreach ($this->orderInfoList as $iter0){
180
-				
181
-				
182
-				if (!is_object($iter0)) {
183
-					
184
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
185
-				}
186
-				
187
-				$xfer += $iter0->write($output);
188
-				
189
-			}
190
-			
191
-			$output->writeListEnd();
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->total !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('total');
200
-			$xfer += $output->writeI32($this->total);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->page !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('page');
209
-			$xfer += $output->writeI32($this->page);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->pageSize !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('pageSize');
218
-			$xfer += $output->writeI32($this->pageSize);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		$xfer += $output->writeFieldStop();
225
-		$xfer += $output->writeStructEnd();
226
-		return $xfer;
227
-	}
228
-	
229
-}
230
-
231
-?>

+ 0 - 161
extend/vip_sdk/src/com/vip/adp/api/open/service/PidGenRequest.php

@@ -1,161 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PidGenRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $pidNameList = null;
17
-	public $requestId = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'pidNameList'
26
-			),
27
-			2 => array(
28
-			'var' => 'requestId'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['pidNameList'])){
39
-				
40
-				$this->pidNameList = $vals['pidNameList'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['requestId'])){
45
-				
46
-				$this->requestId = $vals['requestId'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'PidGenRequest';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("pidNameList" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				
74
-				$this->pidNameList = array();
75
-				$_size0 = 0;
76
-				$input->readListBegin();
77
-				while(true){
78
-					
79
-					try{
80
-						
81
-						$elem0 = null;
82
-						$input->readString($elem0);
83
-						
84
-						$this->pidNameList[$_size0++] = $elem0;
85
-					}
86
-					catch(\Exception $e){
87
-						
88
-						break;
89
-					}
90
-				}
91
-				
92
-				$input->readListEnd();
93
-				
94
-			}
95
-			
96
-			
97
-			
98
-			
99
-			if ("requestId" == $schemeField){
100
-				
101
-				$needSkip = false;
102
-				$input->readString($this->requestId);
103
-				
104
-			}
105
-			
106
-			
107
-			
108
-			if($needSkip){
109
-				
110
-				\Osp\Protocol\ProtocolUtil::skip($input);
111
-			}
112
-			
113
-			$input->readFieldEnd();
114
-		}
115
-		
116
-		$input->readStructEnd();
117
-		
118
-		
119
-		
120
-	}
121
-	
122
-	public function write($output){
123
-		
124
-		$xfer = 0;
125
-		$xfer += $output->writeStructBegin();
126
-		
127
-		if($this->pidNameList !== null) {
128
-			
129
-			$xfer += $output->writeFieldBegin('pidNameList');
130
-			
131
-			if (!is_array($this->pidNameList)){
132
-				
133
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
134
-			}
135
-			
136
-			$output->writeListBegin();
137
-			foreach ($this->pidNameList as $iter0){
138
-				
139
-				$xfer += $output->writeString($iter0);
140
-				
141
-			}
142
-			
143
-			$output->writeListEnd();
144
-			
145
-			$xfer += $output->writeFieldEnd();
146
-		}
147
-		
148
-		
149
-		$xfer += $output->writeFieldBegin('requestId');
150
-		$xfer += $output->writeString($this->requestId);
151
-		
152
-		$xfer += $output->writeFieldEnd();
153
-		
154
-		$xfer += $output->writeFieldStop();
155
-		$xfer += $output->writeStructEnd();
156
-		return $xfer;
157
-	}
158
-	
159
-}
160
-
161
-?>

+ 0 - 249
extend/vip_sdk/src/com/vip/adp/api/open/service/PidInfo.php

@@ -1,249 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PidInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $pid = null;
17
-	public $pidName = null;
18
-	public $createTime = null;
19
-	public $ucode = null;
20
-	public $b2cUserId = null;
21
-	public $status = null;
22
-	
23
-	public function __construct($vals=null){
24
-		
25
-		if (!isset(self::$_TSPEC)){
26
-			
27
-			self::$_TSPEC = array(
28
-			1 => array(
29
-			'var' => 'pid'
30
-			),
31
-			2 => array(
32
-			'var' => 'pidName'
33
-			),
34
-			3 => array(
35
-			'var' => 'createTime'
36
-			),
37
-			4 => array(
38
-			'var' => 'ucode'
39
-			),
40
-			5 => array(
41
-			'var' => 'b2cUserId'
42
-			),
43
-			6 => array(
44
-			'var' => 'status'
45
-			),
46
-			
47
-			);
48
-			
49
-		}
50
-		
51
-		if (is_array($vals)){
52
-			
53
-			
54
-			if (isset($vals['pid'])){
55
-				
56
-				$this->pid = $vals['pid'];
57
-			}
58
-			
59
-			
60
-			if (isset($vals['pidName'])){
61
-				
62
-				$this->pidName = $vals['pidName'];
63
-			}
64
-			
65
-			
66
-			if (isset($vals['createTime'])){
67
-				
68
-				$this->createTime = $vals['createTime'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['ucode'])){
73
-				
74
-				$this->ucode = $vals['ucode'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['b2cUserId'])){
79
-				
80
-				$this->b2cUserId = $vals['b2cUserId'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['status'])){
85
-				
86
-				$this->status = $vals['status'];
87
-			}
88
-			
89
-			
90
-		}
91
-		
92
-	}
93
-	
94
-	
95
-	public function getName(){
96
-		
97
-		return 'PidInfo';
98
-	}
99
-	
100
-	public function read($input){
101
-		
102
-		$input->readStructBegin();
103
-		while(true){
104
-			
105
-			$schemeField = $input->readFieldBegin();
106
-			if ($schemeField == null) break;
107
-			$needSkip = true;
108
-			
109
-			
110
-			if ("pid" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->pid);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("pidName" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->pidName);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("createTime" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readI64($this->createTime); 
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("ucode" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readString($this->ucode);
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("b2cUserId" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->b2cUserId);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("status" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI32($this->status); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			if($needSkip){
170
-				
171
-				\Osp\Protocol\ProtocolUtil::skip($input);
172
-			}
173
-			
174
-			$input->readFieldEnd();
175
-		}
176
-		
177
-		$input->readStructEnd();
178
-		
179
-		
180
-		
181
-	}
182
-	
183
-	public function write($output){
184
-		
185
-		$xfer = 0;
186
-		$xfer += $output->writeStructBegin();
187
-		
188
-		if($this->pid !== null) {
189
-			
190
-			$xfer += $output->writeFieldBegin('pid');
191
-			$xfer += $output->writeString($this->pid);
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->pidName !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('pidName');
200
-			$xfer += $output->writeString($this->pidName);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->createTime !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('createTime');
209
-			$xfer += $output->writeI64($this->createTime);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->ucode !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('ucode');
218
-			$xfer += $output->writeString($this->ucode);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		if($this->b2cUserId !== null) {
225
-			
226
-			$xfer += $output->writeFieldBegin('b2cUserId');
227
-			$xfer += $output->writeString($this->b2cUserId);
228
-			
229
-			$xfer += $output->writeFieldEnd();
230
-		}
231
-		
232
-		
233
-		if($this->status !== null) {
234
-			
235
-			$xfer += $output->writeFieldBegin('status');
236
-			$xfer += $output->writeI32($this->status);
237
-			
238
-			$xfer += $output->writeFieldEnd();
239
-		}
240
-		
241
-		
242
-		$xfer += $output->writeFieldStop();
243
-		$xfer += $output->writeStructEnd();
244
-		return $xfer;
245
-	}
246
-	
247
-}
248
-
249
-?>

+ 0 - 219
extend/vip_sdk/src/com/vip/adp/api/open/service/PidQueryRequest.php

@@ -1,219 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PidQueryRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $pidList = null;
17
-	public $requestId = null;
18
-	public $page = null;
19
-	public $pageSize = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'pidList'
28
-			),
29
-			2 => array(
30
-			'var' => 'requestId'
31
-			),
32
-			3 => array(
33
-			'var' => 'page'
34
-			),
35
-			4 => array(
36
-			'var' => 'pageSize'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['pidList'])){
47
-				
48
-				$this->pidList = $vals['pidList'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['requestId'])){
53
-				
54
-				$this->requestId = $vals['requestId'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['page'])){
59
-				
60
-				$this->page = $vals['page'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['pageSize'])){
65
-				
66
-				$this->pageSize = $vals['pageSize'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'PidQueryRequest';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("pidList" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				
94
-				$this->pidList = array();
95
-				$_size0 = 0;
96
-				$input->readListBegin();
97
-				while(true){
98
-					
99
-					try{
100
-						
101
-						$elem0 = null;
102
-						$input->readString($elem0);
103
-						
104
-						$this->pidList[$_size0++] = $elem0;
105
-					}
106
-					catch(\Exception $e){
107
-						
108
-						break;
109
-					}
110
-				}
111
-				
112
-				$input->readListEnd();
113
-				
114
-			}
115
-			
116
-			
117
-			
118
-			
119
-			if ("requestId" == $schemeField){
120
-				
121
-				$needSkip = false;
122
-				$input->readString($this->requestId);
123
-				
124
-			}
125
-			
126
-			
127
-			
128
-			
129
-			if ("page" == $schemeField){
130
-				
131
-				$needSkip = false;
132
-				$input->readI32($this->page); 
133
-				
134
-			}
135
-			
136
-			
137
-			
138
-			
139
-			if ("pageSize" == $schemeField){
140
-				
141
-				$needSkip = false;
142
-				$input->readI32($this->pageSize); 
143
-				
144
-			}
145
-			
146
-			
147
-			
148
-			if($needSkip){
149
-				
150
-				\Osp\Protocol\ProtocolUtil::skip($input);
151
-			}
152
-			
153
-			$input->readFieldEnd();
154
-		}
155
-		
156
-		$input->readStructEnd();
157
-		
158
-		
159
-		
160
-	}
161
-	
162
-	public function write($output){
163
-		
164
-		$xfer = 0;
165
-		$xfer += $output->writeStructBegin();
166
-		
167
-		if($this->pidList !== null) {
168
-			
169
-			$xfer += $output->writeFieldBegin('pidList');
170
-			
171
-			if (!is_array($this->pidList)){
172
-				
173
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
174
-			}
175
-			
176
-			$output->writeListBegin();
177
-			foreach ($this->pidList as $iter0){
178
-				
179
-				$xfer += $output->writeString($iter0);
180
-				
181
-			}
182
-			
183
-			$output->writeListEnd();
184
-			
185
-			$xfer += $output->writeFieldEnd();
186
-		}
187
-		
188
-		
189
-		$xfer += $output->writeFieldBegin('requestId');
190
-		$xfer += $output->writeString($this->requestId);
191
-		
192
-		$xfer += $output->writeFieldEnd();
193
-		
194
-		if($this->page !== null) {
195
-			
196
-			$xfer += $output->writeFieldBegin('page');
197
-			$xfer += $output->writeI32($this->page);
198
-			
199
-			$xfer += $output->writeFieldEnd();
200
-		}
201
-		
202
-		
203
-		if($this->pageSize !== null) {
204
-			
205
-			$xfer += $output->writeFieldBegin('pageSize');
206
-			$xfer += $output->writeI32($this->pageSize);
207
-			
208
-			$xfer += $output->writeFieldEnd();
209
-		}
210
-		
211
-		
212
-		$xfer += $output->writeFieldStop();
213
-		$xfer += $output->writeStructEnd();
214
-		return $xfer;
215
-	}
216
-	
217
-}
218
-
219
-?>

+ 0 - 394
extend/vip_sdk/src/com/vip/adp/api/open/service/PrepayInfo.php

@@ -1,394 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PrepayInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $isPrepay = null;
17
-	public $prepayPrice = null;
18
-	public $firstAmount = null;
19
-	public $lastAmount = null;
20
-	public $prepayFavAmount = null;
21
-	public $deductionPrice = null;
22
-	public $prepayDiscount = null;
23
-	public $prepayFirstStartTime = null;
24
-	public $prepayFirstEndTime = null;
25
-	public $prepayLastStartTime = null;
26
-	public $prepayLastEndTime = null;
27
-	
28
-	public function __construct($vals=null){
29
-		
30
-		if (!isset(self::$_TSPEC)){
31
-			
32
-			self::$_TSPEC = array(
33
-			1 => array(
34
-			'var' => 'isPrepay'
35
-			),
36
-			2 => array(
37
-			'var' => 'prepayPrice'
38
-			),
39
-			3 => array(
40
-			'var' => 'firstAmount'
41
-			),
42
-			4 => array(
43
-			'var' => 'lastAmount'
44
-			),
45
-			5 => array(
46
-			'var' => 'prepayFavAmount'
47
-			),
48
-			6 => array(
49
-			'var' => 'deductionPrice'
50
-			),
51
-			7 => array(
52
-			'var' => 'prepayDiscount'
53
-			),
54
-			8 => array(
55
-			'var' => 'prepayFirstStartTime'
56
-			),
57
-			9 => array(
58
-			'var' => 'prepayFirstEndTime'
59
-			),
60
-			10 => array(
61
-			'var' => 'prepayLastStartTime'
62
-			),
63
-			11 => array(
64
-			'var' => 'prepayLastEndTime'
65
-			),
66
-			
67
-			);
68
-			
69
-		}
70
-		
71
-		if (is_array($vals)){
72
-			
73
-			
74
-			if (isset($vals['isPrepay'])){
75
-				
76
-				$this->isPrepay = $vals['isPrepay'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['prepayPrice'])){
81
-				
82
-				$this->prepayPrice = $vals['prepayPrice'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['firstAmount'])){
87
-				
88
-				$this->firstAmount = $vals['firstAmount'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['lastAmount'])){
93
-				
94
-				$this->lastAmount = $vals['lastAmount'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['prepayFavAmount'])){
99
-				
100
-				$this->prepayFavAmount = $vals['prepayFavAmount'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['deductionPrice'])){
105
-				
106
-				$this->deductionPrice = $vals['deductionPrice'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['prepayDiscount'])){
111
-				
112
-				$this->prepayDiscount = $vals['prepayDiscount'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['prepayFirstStartTime'])){
117
-				
118
-				$this->prepayFirstStartTime = $vals['prepayFirstStartTime'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['prepayFirstEndTime'])){
123
-				
124
-				$this->prepayFirstEndTime = $vals['prepayFirstEndTime'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['prepayLastStartTime'])){
129
-				
130
-				$this->prepayLastStartTime = $vals['prepayLastStartTime'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['prepayLastEndTime'])){
135
-				
136
-				$this->prepayLastEndTime = $vals['prepayLastEndTime'];
137
-			}
138
-			
139
-			
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function getName(){
146
-		
147
-		return 'PrepayInfo';
148
-	}
149
-	
150
-	public function read($input){
151
-		
152
-		$input->readStructBegin();
153
-		while(true){
154
-			
155
-			$schemeField = $input->readFieldBegin();
156
-			if ($schemeField == null) break;
157
-			$needSkip = true;
158
-			
159
-			
160
-			if ("isPrepay" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI32($this->isPrepay); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("prepayPrice" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readString($this->prepayPrice);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("firstAmount" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->firstAmount);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("lastAmount" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readString($this->lastAmount);
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("prepayFavAmount" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readString($this->prepayFavAmount);
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("deductionPrice" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readString($this->deductionPrice);
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("prepayDiscount" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readString($this->prepayDiscount);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("prepayFirstStartTime" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI64($this->prepayFirstStartTime); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("prepayFirstEndTime" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readI64($this->prepayFirstEndTime); 
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("prepayLastStartTime" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readI64($this->prepayLastStartTime); 
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("prepayLastEndTime" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readI64($this->prepayLastEndTime); 
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			if($needSkip){
270
-				
271
-				\Osp\Protocol\ProtocolUtil::skip($input);
272
-			}
273
-			
274
-			$input->readFieldEnd();
275
-		}
276
-		
277
-		$input->readStructEnd();
278
-		
279
-		
280
-		
281
-	}
282
-	
283
-	public function write($output){
284
-		
285
-		$xfer = 0;
286
-		$xfer += $output->writeStructBegin();
287
-		
288
-		if($this->isPrepay !== null) {
289
-			
290
-			$xfer += $output->writeFieldBegin('isPrepay');
291
-			$xfer += $output->writeI32($this->isPrepay);
292
-			
293
-			$xfer += $output->writeFieldEnd();
294
-		}
295
-		
296
-		
297
-		if($this->prepayPrice !== null) {
298
-			
299
-			$xfer += $output->writeFieldBegin('prepayPrice');
300
-			$xfer += $output->writeString($this->prepayPrice);
301
-			
302
-			$xfer += $output->writeFieldEnd();
303
-		}
304
-		
305
-		
306
-		if($this->firstAmount !== null) {
307
-			
308
-			$xfer += $output->writeFieldBegin('firstAmount');
309
-			$xfer += $output->writeString($this->firstAmount);
310
-			
311
-			$xfer += $output->writeFieldEnd();
312
-		}
313
-		
314
-		
315
-		if($this->lastAmount !== null) {
316
-			
317
-			$xfer += $output->writeFieldBegin('lastAmount');
318
-			$xfer += $output->writeString($this->lastAmount);
319
-			
320
-			$xfer += $output->writeFieldEnd();
321
-		}
322
-		
323
-		
324
-		if($this->prepayFavAmount !== null) {
325
-			
326
-			$xfer += $output->writeFieldBegin('prepayFavAmount');
327
-			$xfer += $output->writeString($this->prepayFavAmount);
328
-			
329
-			$xfer += $output->writeFieldEnd();
330
-		}
331
-		
332
-		
333
-		if($this->deductionPrice !== null) {
334
-			
335
-			$xfer += $output->writeFieldBegin('deductionPrice');
336
-			$xfer += $output->writeString($this->deductionPrice);
337
-			
338
-			$xfer += $output->writeFieldEnd();
339
-		}
340
-		
341
-		
342
-		if($this->prepayDiscount !== null) {
343
-			
344
-			$xfer += $output->writeFieldBegin('prepayDiscount');
345
-			$xfer += $output->writeString($this->prepayDiscount);
346
-			
347
-			$xfer += $output->writeFieldEnd();
348
-		}
349
-		
350
-		
351
-		if($this->prepayFirstStartTime !== null) {
352
-			
353
-			$xfer += $output->writeFieldBegin('prepayFirstStartTime');
354
-			$xfer += $output->writeI64($this->prepayFirstStartTime);
355
-			
356
-			$xfer += $output->writeFieldEnd();
357
-		}
358
-		
359
-		
360
-		if($this->prepayFirstEndTime !== null) {
361
-			
362
-			$xfer += $output->writeFieldBegin('prepayFirstEndTime');
363
-			$xfer += $output->writeI64($this->prepayFirstEndTime);
364
-			
365
-			$xfer += $output->writeFieldEnd();
366
-		}
367
-		
368
-		
369
-		if($this->prepayLastStartTime !== null) {
370
-			
371
-			$xfer += $output->writeFieldBegin('prepayLastStartTime');
372
-			$xfer += $output->writeI64($this->prepayLastStartTime);
373
-			
374
-			$xfer += $output->writeFieldEnd();
375
-		}
376
-		
377
-		
378
-		if($this->prepayLastEndTime !== null) {
379
-			
380
-			$xfer += $output->writeFieldBegin('prepayLastEndTime');
381
-			$xfer += $output->writeI64($this->prepayLastEndTime);
382
-			
383
-			$xfer += $output->writeFieldEnd();
384
-		}
385
-		
386
-		
387
-		$xfer += $output->writeFieldStop();
388
-		$xfer += $output->writeStructEnd();
389
-		return $xfer;
390
-	}
391
-	
392
-}
393
-
394
-?>

+ 0 - 434
extend/vip_sdk/src/com/vip/adp/api/open/service/PromotionMaterial.php

@@ -1,434 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PromotionMaterial {
14
-	
15
-	static $_TSPEC;
16
-	public $materialId = null;
17
-	public $itemId = null;
18
-	public $itemType = null;
19
-	public $promotionText = null;
20
-	public $promotionImages = null;
21
-	public $basicInfo = null;
22
-	public $createTime = null;
23
-	public $promoteStartTime = null;
24
-	public $promoteEndTime = null;
25
-	public $module = null;
26
-	public $moduleName = null;
27
-	
28
-	public function __construct($vals=null){
29
-		
30
-		if (!isset(self::$_TSPEC)){
31
-			
32
-			self::$_TSPEC = array(
33
-			1 => array(
34
-			'var' => 'materialId'
35
-			),
36
-			2 => array(
37
-			'var' => 'itemId'
38
-			),
39
-			3 => array(
40
-			'var' => 'itemType'
41
-			),
42
-			4 => array(
43
-			'var' => 'promotionText'
44
-			),
45
-			5 => array(
46
-			'var' => 'promotionImages'
47
-			),
48
-			6 => array(
49
-			'var' => 'basicInfo'
50
-			),
51
-			7 => array(
52
-			'var' => 'createTime'
53
-			),
54
-			8 => array(
55
-			'var' => 'promoteStartTime'
56
-			),
57
-			9 => array(
58
-			'var' => 'promoteEndTime'
59
-			),
60
-			10 => array(
61
-			'var' => 'module'
62
-			),
63
-			11 => array(
64
-			'var' => 'moduleName'
65
-			),
66
-			
67
-			);
68
-			
69
-		}
70
-		
71
-		if (is_array($vals)){
72
-			
73
-			
74
-			if (isset($vals['materialId'])){
75
-				
76
-				$this->materialId = $vals['materialId'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['itemId'])){
81
-				
82
-				$this->itemId = $vals['itemId'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['itemType'])){
87
-				
88
-				$this->itemType = $vals['itemType'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['promotionText'])){
93
-				
94
-				$this->promotionText = $vals['promotionText'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['promotionImages'])){
99
-				
100
-				$this->promotionImages = $vals['promotionImages'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['basicInfo'])){
105
-				
106
-				$this->basicInfo = $vals['basicInfo'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['createTime'])){
111
-				
112
-				$this->createTime = $vals['createTime'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['promoteStartTime'])){
117
-				
118
-				$this->promoteStartTime = $vals['promoteStartTime'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['promoteEndTime'])){
123
-				
124
-				$this->promoteEndTime = $vals['promoteEndTime'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['module'])){
129
-				
130
-				$this->module = $vals['module'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['moduleName'])){
135
-				
136
-				$this->moduleName = $vals['moduleName'];
137
-			}
138
-			
139
-			
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function getName(){
146
-		
147
-		return 'PromotionMaterial';
148
-	}
149
-	
150
-	public function read($input){
151
-		
152
-		$input->readStructBegin();
153
-		while(true){
154
-			
155
-			$schemeField = $input->readFieldBegin();
156
-			if ($schemeField == null) break;
157
-			$needSkip = true;
158
-			
159
-			
160
-			if ("materialId" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI64($this->materialId); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("itemId" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readString($this->itemId);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("itemType" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->itemType);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("promotionText" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readString($this->promotionText);
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("promotionImages" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				
204
-				$this->promotionImages = array();
205
-				$_size0 = 0;
206
-				$input->readListBegin();
207
-				while(true){
208
-					
209
-					try{
210
-						
211
-						$elem0 = null;
212
-						$input->readString($elem0);
213
-						
214
-						$this->promotionImages[$_size0++] = $elem0;
215
-					}
216
-					catch(\Exception $e){
217
-						
218
-						break;
219
-					}
220
-				}
221
-				
222
-				$input->readListEnd();
223
-				
224
-			}
225
-			
226
-			
227
-			
228
-			
229
-			if ("basicInfo" == $schemeField){
230
-				
231
-				$needSkip = false;
232
-				
233
-				$this->basicInfo = new \com\vip\adp\api\open\service\TargetBasicInfo();
234
-				$this->basicInfo->read($input);
235
-				
236
-			}
237
-			
238
-			
239
-			
240
-			
241
-			if ("createTime" == $schemeField){
242
-				
243
-				$needSkip = false;
244
-				$input->readI64($this->createTime); 
245
-				
246
-			}
247
-			
248
-			
249
-			
250
-			
251
-			if ("promoteStartTime" == $schemeField){
252
-				
253
-				$needSkip = false;
254
-				$input->readI64($this->promoteStartTime); 
255
-				
256
-			}
257
-			
258
-			
259
-			
260
-			
261
-			if ("promoteEndTime" == $schemeField){
262
-				
263
-				$needSkip = false;
264
-				$input->readI64($this->promoteEndTime); 
265
-				
266
-			}
267
-			
268
-			
269
-			
270
-			
271
-			if ("module" == $schemeField){
272
-				
273
-				$needSkip = false;
274
-				$input->readI64($this->module); 
275
-				
276
-			}
277
-			
278
-			
279
-			
280
-			
281
-			if ("moduleName" == $schemeField){
282
-				
283
-				$needSkip = false;
284
-				$input->readString($this->moduleName);
285
-				
286
-			}
287
-			
288
-			
289
-			
290
-			if($needSkip){
291
-				
292
-				\Osp\Protocol\ProtocolUtil::skip($input);
293
-			}
294
-			
295
-			$input->readFieldEnd();
296
-		}
297
-		
298
-		$input->readStructEnd();
299
-		
300
-		
301
-		
302
-	}
303
-	
304
-	public function write($output){
305
-		
306
-		$xfer = 0;
307
-		$xfer += $output->writeStructBegin();
308
-		
309
-		if($this->materialId !== null) {
310
-			
311
-			$xfer += $output->writeFieldBegin('materialId');
312
-			$xfer += $output->writeI64($this->materialId);
313
-			
314
-			$xfer += $output->writeFieldEnd();
315
-		}
316
-		
317
-		
318
-		if($this->itemId !== null) {
319
-			
320
-			$xfer += $output->writeFieldBegin('itemId');
321
-			$xfer += $output->writeString($this->itemId);
322
-			
323
-			$xfer += $output->writeFieldEnd();
324
-		}
325
-		
326
-		
327
-		if($this->itemType !== null) {
328
-			
329
-			$xfer += $output->writeFieldBegin('itemType');
330
-			$xfer += $output->writeString($this->itemType);
331
-			
332
-			$xfer += $output->writeFieldEnd();
333
-		}
334
-		
335
-		
336
-		if($this->promotionText !== null) {
337
-			
338
-			$xfer += $output->writeFieldBegin('promotionText');
339
-			$xfer += $output->writeString($this->promotionText);
340
-			
341
-			$xfer += $output->writeFieldEnd();
342
-		}
343
-		
344
-		
345
-		if($this->promotionImages !== null) {
346
-			
347
-			$xfer += $output->writeFieldBegin('promotionImages');
348
-			
349
-			if (!is_array($this->promotionImages)){
350
-				
351
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
352
-			}
353
-			
354
-			$output->writeListBegin();
355
-			foreach ($this->promotionImages as $iter0){
356
-				
357
-				$xfer += $output->writeString($iter0);
358
-				
359
-			}
360
-			
361
-			$output->writeListEnd();
362
-			
363
-			$xfer += $output->writeFieldEnd();
364
-		}
365
-		
366
-		
367
-		if($this->basicInfo !== null) {
368
-			
369
-			$xfer += $output->writeFieldBegin('basicInfo');
370
-			
371
-			if (!is_object($this->basicInfo)) {
372
-				
373
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
374
-			}
375
-			
376
-			$xfer += $this->basicInfo->write($output);
377
-			
378
-			$xfer += $output->writeFieldEnd();
379
-		}
380
-		
381
-		
382
-		if($this->createTime !== null) {
383
-			
384
-			$xfer += $output->writeFieldBegin('createTime');
385
-			$xfer += $output->writeI64($this->createTime);
386
-			
387
-			$xfer += $output->writeFieldEnd();
388
-		}
389
-		
390
-		
391
-		if($this->promoteStartTime !== null) {
392
-			
393
-			$xfer += $output->writeFieldBegin('promoteStartTime');
394
-			$xfer += $output->writeI64($this->promoteStartTime);
395
-			
396
-			$xfer += $output->writeFieldEnd();
397
-		}
398
-		
399
-		
400
-		if($this->promoteEndTime !== null) {
401
-			
402
-			$xfer += $output->writeFieldBegin('promoteEndTime');
403
-			$xfer += $output->writeI64($this->promoteEndTime);
404
-			
405
-			$xfer += $output->writeFieldEnd();
406
-		}
407
-		
408
-		
409
-		if($this->module !== null) {
410
-			
411
-			$xfer += $output->writeFieldBegin('module');
412
-			$xfer += $output->writeI64($this->module);
413
-			
414
-			$xfer += $output->writeFieldEnd();
415
-		}
416
-		
417
-		
418
-		if($this->moduleName !== null) {
419
-			
420
-			$xfer += $output->writeFieldBegin('moduleName');
421
-			$xfer += $output->writeString($this->moduleName);
422
-			
423
-			$xfer += $output->writeFieldEnd();
424
-		}
425
-		
426
-		
427
-		$xfer += $output->writeFieldStop();
428
-		$xfer += $output->writeStructEnd();
429
-		return $xfer;
430
-	}
431
-	
432
-}
433
-
434
-?>

+ 0 - 369
extend/vip_sdk/src/com/vip/adp/api/open/service/PromotionMaterialRequest.php

@@ -1,369 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PromotionMaterialRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $module = null;
17
-	public $materialId = null;
18
-	public $itemId = null;
19
-	public $itemType = null;
20
-	public $updateTiemStart = null;
21
-	public $updateTimeEnd = null;
22
-	public $page = null;
23
-	public $pageSize = null;
24
-	public $commonParams = null;
25
-	public $requestId = null;
26
-	
27
-	public function __construct($vals=null){
28
-		
29
-		if (!isset(self::$_TSPEC)){
30
-			
31
-			self::$_TSPEC = array(
32
-			1 => array(
33
-			'var' => 'module'
34
-			),
35
-			2 => array(
36
-			'var' => 'materialId'
37
-			),
38
-			3 => array(
39
-			'var' => 'itemId'
40
-			),
41
-			4 => array(
42
-			'var' => 'itemType'
43
-			),
44
-			5 => array(
45
-			'var' => 'updateTiemStart'
46
-			),
47
-			6 => array(
48
-			'var' => 'updateTimeEnd'
49
-			),
50
-			7 => array(
51
-			'var' => 'page'
52
-			),
53
-			8 => array(
54
-			'var' => 'pageSize'
55
-			),
56
-			9 => array(
57
-			'var' => 'commonParams'
58
-			),
59
-			10 => array(
60
-			'var' => 'requestId'
61
-			),
62
-			
63
-			);
64
-			
65
-		}
66
-		
67
-		if (is_array($vals)){
68
-			
69
-			
70
-			if (isset($vals['module'])){
71
-				
72
-				$this->module = $vals['module'];
73
-			}
74
-			
75
-			
76
-			if (isset($vals['materialId'])){
77
-				
78
-				$this->materialId = $vals['materialId'];
79
-			}
80
-			
81
-			
82
-			if (isset($vals['itemId'])){
83
-				
84
-				$this->itemId = $vals['itemId'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['itemType'])){
89
-				
90
-				$this->itemType = $vals['itemType'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['updateTiemStart'])){
95
-				
96
-				$this->updateTiemStart = $vals['updateTiemStart'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['updateTimeEnd'])){
101
-				
102
-				$this->updateTimeEnd = $vals['updateTimeEnd'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['page'])){
107
-				
108
-				$this->page = $vals['page'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['pageSize'])){
113
-				
114
-				$this->pageSize = $vals['pageSize'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['commonParams'])){
119
-				
120
-				$this->commonParams = $vals['commonParams'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['requestId'])){
125
-				
126
-				$this->requestId = $vals['requestId'];
127
-			}
128
-			
129
-			
130
-		}
131
-		
132
-	}
133
-	
134
-	
135
-	public function getName(){
136
-		
137
-		return 'PromotionMaterialRequest';
138
-	}
139
-	
140
-	public function read($input){
141
-		
142
-		$input->readStructBegin();
143
-		while(true){
144
-			
145
-			$schemeField = $input->readFieldBegin();
146
-			if ($schemeField == null) break;
147
-			$needSkip = true;
148
-			
149
-			
150
-			if ("module" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readI64($this->module); 
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("materialId" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->materialId);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("itemId" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readString($this->itemId);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("itemType" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->itemType);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("updateTiemStart" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readI64($this->updateTiemStart); 
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("updateTimeEnd" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readI64($this->updateTimeEnd); 
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("page" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readI32($this->page); 
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("pageSize" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readI32($this->pageSize); 
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("commonParams" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				
234
-				$this->commonParams = new \com\vip\adp\api\open\service\CommonParams();
235
-				$this->commonParams->read($input);
236
-				
237
-			}
238
-			
239
-			
240
-			
241
-			
242
-			if ("requestId" == $schemeField){
243
-				
244
-				$needSkip = false;
245
-				$input->readString($this->requestId);
246
-				
247
-			}
248
-			
249
-			
250
-			
251
-			if($needSkip){
252
-				
253
-				\Osp\Protocol\ProtocolUtil::skip($input);
254
-			}
255
-			
256
-			$input->readFieldEnd();
257
-		}
258
-		
259
-		$input->readStructEnd();
260
-		
261
-		
262
-		
263
-	}
264
-	
265
-	public function write($output){
266
-		
267
-		$xfer = 0;
268
-		$xfer += $output->writeStructBegin();
269
-		
270
-		if($this->module !== null) {
271
-			
272
-			$xfer += $output->writeFieldBegin('module');
273
-			$xfer += $output->writeI64($this->module);
274
-			
275
-			$xfer += $output->writeFieldEnd();
276
-		}
277
-		
278
-		
279
-		if($this->materialId !== null) {
280
-			
281
-			$xfer += $output->writeFieldBegin('materialId');
282
-			$xfer += $output->writeString($this->materialId);
283
-			
284
-			$xfer += $output->writeFieldEnd();
285
-		}
286
-		
287
-		
288
-		if($this->itemId !== null) {
289
-			
290
-			$xfer += $output->writeFieldBegin('itemId');
291
-			$xfer += $output->writeString($this->itemId);
292
-			
293
-			$xfer += $output->writeFieldEnd();
294
-		}
295
-		
296
-		
297
-		if($this->itemType !== null) {
298
-			
299
-			$xfer += $output->writeFieldBegin('itemType');
300
-			$xfer += $output->writeString($this->itemType);
301
-			
302
-			$xfer += $output->writeFieldEnd();
303
-		}
304
-		
305
-		
306
-		if($this->updateTiemStart !== null) {
307
-			
308
-			$xfer += $output->writeFieldBegin('updateTiemStart');
309
-			$xfer += $output->writeI64($this->updateTiemStart);
310
-			
311
-			$xfer += $output->writeFieldEnd();
312
-		}
313
-		
314
-		
315
-		if($this->updateTimeEnd !== null) {
316
-			
317
-			$xfer += $output->writeFieldBegin('updateTimeEnd');
318
-			$xfer += $output->writeI64($this->updateTimeEnd);
319
-			
320
-			$xfer += $output->writeFieldEnd();
321
-		}
322
-		
323
-		
324
-		$xfer += $output->writeFieldBegin('page');
325
-		$xfer += $output->writeI32($this->page);
326
-		
327
-		$xfer += $output->writeFieldEnd();
328
-		
329
-		if($this->pageSize !== null) {
330
-			
331
-			$xfer += $output->writeFieldBegin('pageSize');
332
-			$xfer += $output->writeI32($this->pageSize);
333
-			
334
-			$xfer += $output->writeFieldEnd();
335
-		}
336
-		
337
-		
338
-		if($this->commonParams !== null) {
339
-			
340
-			$xfer += $output->writeFieldBegin('commonParams');
341
-			
342
-			if (!is_object($this->commonParams)) {
343
-				
344
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
345
-			}
346
-			
347
-			$xfer += $this->commonParams->write($output);
348
-			
349
-			$xfer += $output->writeFieldEnd();
350
-		}
351
-		
352
-		
353
-		if($this->requestId !== null) {
354
-			
355
-			$xfer += $output->writeFieldBegin('requestId');
356
-			$xfer += $output->writeString($this->requestId);
357
-			
358
-			$xfer += $output->writeFieldEnd();
359
-		}
360
-		
361
-		
362
-		$xfer += $output->writeFieldStop();
363
-		$xfer += $output->writeStructEnd();
364
-		return $xfer;
365
-	}
366
-	
367
-}
368
-
369
-?>

+ 0 - 231
extend/vip_sdk/src/com/vip/adp/api/open/service/PromotionMaterialResponse.php

@@ -1,231 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class PromotionMaterialResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $materials = null;
17
-	public $page = null;
18
-	public $pageSize = null;
19
-	public $total = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'materials'
28
-			),
29
-			2 => array(
30
-			'var' => 'page'
31
-			),
32
-			3 => array(
33
-			'var' => 'pageSize'
34
-			),
35
-			4 => array(
36
-			'var' => 'total'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['materials'])){
47
-				
48
-				$this->materials = $vals['materials'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['page'])){
53
-				
54
-				$this->page = $vals['page'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['pageSize'])){
59
-				
60
-				$this->pageSize = $vals['pageSize'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['total'])){
65
-				
66
-				$this->total = $vals['total'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'PromotionMaterialResponse';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("materials" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				
94
-				$this->materials = array();
95
-				$_size0 = 0;
96
-				$input->readListBegin();
97
-				while(true){
98
-					
99
-					try{
100
-						
101
-						$elem0 = null;
102
-						
103
-						$elem0 = new \com\vip\adp\api\open\service\PromotionMaterial();
104
-						$elem0->read($input);
105
-						
106
-						$this->materials[$_size0++] = $elem0;
107
-					}
108
-					catch(\Exception $e){
109
-						
110
-						break;
111
-					}
112
-				}
113
-				
114
-				$input->readListEnd();
115
-				
116
-			}
117
-			
118
-			
119
-			
120
-			
121
-			if ("page" == $schemeField){
122
-				
123
-				$needSkip = false;
124
-				$input->readI32($this->page); 
125
-				
126
-			}
127
-			
128
-			
129
-			
130
-			
131
-			if ("pageSize" == $schemeField){
132
-				
133
-				$needSkip = false;
134
-				$input->readI32($this->pageSize); 
135
-				
136
-			}
137
-			
138
-			
139
-			
140
-			
141
-			if ("total" == $schemeField){
142
-				
143
-				$needSkip = false;
144
-				$input->readI32($this->total); 
145
-				
146
-			}
147
-			
148
-			
149
-			
150
-			if($needSkip){
151
-				
152
-				\Osp\Protocol\ProtocolUtil::skip($input);
153
-			}
154
-			
155
-			$input->readFieldEnd();
156
-		}
157
-		
158
-		$input->readStructEnd();
159
-		
160
-		
161
-		
162
-	}
163
-	
164
-	public function write($output){
165
-		
166
-		$xfer = 0;
167
-		$xfer += $output->writeStructBegin();
168
-		
169
-		if($this->materials !== null) {
170
-			
171
-			$xfer += $output->writeFieldBegin('materials');
172
-			
173
-			if (!is_array($this->materials)){
174
-				
175
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
176
-			}
177
-			
178
-			$output->writeListBegin();
179
-			foreach ($this->materials as $iter0){
180
-				
181
-				
182
-				if (!is_object($iter0)) {
183
-					
184
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
185
-				}
186
-				
187
-				$xfer += $iter0->write($output);
188
-				
189
-			}
190
-			
191
-			$output->writeListEnd();
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->page !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('page');
200
-			$xfer += $output->writeI32($this->page);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->pageSize !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('pageSize');
209
-			$xfer += $output->writeI32($this->pageSize);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->total !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('total');
218
-			$xfer += $output->writeI32($this->total);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		$xfer += $output->writeFieldStop();
225
-		$xfer += $output->writeStructEnd();
226
-		return $xfer;
227
-	}
228
-	
229
-}
230
-
231
-?>

+ 0 - 535
extend/vip_sdk/src/com/vip/adp/api/open/service/QueryGoodsRequest.php

@@ -1,535 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class QueryGoodsRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $keyword = null;
17
-	public $fieldName = null;
18
-	public $order = null;
19
-	public $page = null;
20
-	public $pageSize = null;
21
-	public $requestId = null;
22
-	public $priceStart = null;
23
-	public $priceEnd = null;
24
-	public $queryReputation = null;
25
-	public $queryStoreServiceCapability = null;
26
-	public $queryStock = null;
27
-	public $queryActivity = null;
28
-	public $queryPrepay = null;
29
-	public $commonParams = null;
30
-	public $vendorCode = null;
31
-	public $chanTag = null;
32
-	
33
-	public function __construct($vals=null){
34
-		
35
-		if (!isset(self::$_TSPEC)){
36
-			
37
-			self::$_TSPEC = array(
38
-			1 => array(
39
-			'var' => 'keyword'
40
-			),
41
-			2 => array(
42
-			'var' => 'fieldName'
43
-			),
44
-			3 => array(
45
-			'var' => 'order'
46
-			),
47
-			4 => array(
48
-			'var' => 'page'
49
-			),
50
-			5 => array(
51
-			'var' => 'pageSize'
52
-			),
53
-			6 => array(
54
-			'var' => 'requestId'
55
-			),
56
-			7 => array(
57
-			'var' => 'priceStart'
58
-			),
59
-			8 => array(
60
-			'var' => 'priceEnd'
61
-			),
62
-			9 => array(
63
-			'var' => 'queryReputation'
64
-			),
65
-			10 => array(
66
-			'var' => 'queryStoreServiceCapability'
67
-			),
68
-			11 => array(
69
-			'var' => 'queryStock'
70
-			),
71
-			12 => array(
72
-			'var' => 'queryActivity'
73
-			),
74
-			13 => array(
75
-			'var' => 'queryPrepay'
76
-			),
77
-			14 => array(
78
-			'var' => 'commonParams'
79
-			),
80
-			15 => array(
81
-			'var' => 'vendorCode'
82
-			),
83
-			16 => array(
84
-			'var' => 'chanTag'
85
-			),
86
-			
87
-			);
88
-			
89
-		}
90
-		
91
-		if (is_array($vals)){
92
-			
93
-			
94
-			if (isset($vals['keyword'])){
95
-				
96
-				$this->keyword = $vals['keyword'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['fieldName'])){
101
-				
102
-				$this->fieldName = $vals['fieldName'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['order'])){
107
-				
108
-				$this->order = $vals['order'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['page'])){
113
-				
114
-				$this->page = $vals['page'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['pageSize'])){
119
-				
120
-				$this->pageSize = $vals['pageSize'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['requestId'])){
125
-				
126
-				$this->requestId = $vals['requestId'];
127
-			}
128
-			
129
-			
130
-			if (isset($vals['priceStart'])){
131
-				
132
-				$this->priceStart = $vals['priceStart'];
133
-			}
134
-			
135
-			
136
-			if (isset($vals['priceEnd'])){
137
-				
138
-				$this->priceEnd = $vals['priceEnd'];
139
-			}
140
-			
141
-			
142
-			if (isset($vals['queryReputation'])){
143
-				
144
-				$this->queryReputation = $vals['queryReputation'];
145
-			}
146
-			
147
-			
148
-			if (isset($vals['queryStoreServiceCapability'])){
149
-				
150
-				$this->queryStoreServiceCapability = $vals['queryStoreServiceCapability'];
151
-			}
152
-			
153
-			
154
-			if (isset($vals['queryStock'])){
155
-				
156
-				$this->queryStock = $vals['queryStock'];
157
-			}
158
-			
159
-			
160
-			if (isset($vals['queryActivity'])){
161
-				
162
-				$this->queryActivity = $vals['queryActivity'];
163
-			}
164
-			
165
-			
166
-			if (isset($vals['queryPrepay'])){
167
-				
168
-				$this->queryPrepay = $vals['queryPrepay'];
169
-			}
170
-			
171
-			
172
-			if (isset($vals['commonParams'])){
173
-				
174
-				$this->commonParams = $vals['commonParams'];
175
-			}
176
-			
177
-			
178
-			if (isset($vals['vendorCode'])){
179
-				
180
-				$this->vendorCode = $vals['vendorCode'];
181
-			}
182
-			
183
-			
184
-			if (isset($vals['chanTag'])){
185
-				
186
-				$this->chanTag = $vals['chanTag'];
187
-			}
188
-			
189
-			
190
-		}
191
-		
192
-	}
193
-	
194
-	
195
-	public function getName(){
196
-		
197
-		return 'QueryGoodsRequest';
198
-	}
199
-	
200
-	public function read($input){
201
-		
202
-		$input->readStructBegin();
203
-		while(true){
204
-			
205
-			$schemeField = $input->readFieldBegin();
206
-			if ($schemeField == null) break;
207
-			$needSkip = true;
208
-			
209
-			
210
-			if ("keyword" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readString($this->keyword);
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("fieldName" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readString($this->fieldName);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("order" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI32($this->order); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("page" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readI32($this->page); 
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("pageSize" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readI32($this->pageSize); 
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("requestId" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readString($this->requestId);
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			
270
-			if ("priceStart" == $schemeField){
271
-				
272
-				$needSkip = false;
273
-				$input->readString($this->priceStart);
274
-				
275
-			}
276
-			
277
-			
278
-			
279
-			
280
-			if ("priceEnd" == $schemeField){
281
-				
282
-				$needSkip = false;
283
-				$input->readString($this->priceEnd);
284
-				
285
-			}
286
-			
287
-			
288
-			
289
-			
290
-			if ("queryReputation" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				$input->readBool($this->queryReputation);
294
-				
295
-			}
296
-			
297
-			
298
-			
299
-			
300
-			if ("queryStoreServiceCapability" == $schemeField){
301
-				
302
-				$needSkip = false;
303
-				$input->readBool($this->queryStoreServiceCapability);
304
-				
305
-			}
306
-			
307
-			
308
-			
309
-			
310
-			if ("queryStock" == $schemeField){
311
-				
312
-				$needSkip = false;
313
-				$input->readBool($this->queryStock);
314
-				
315
-			}
316
-			
317
-			
318
-			
319
-			
320
-			if ("queryActivity" == $schemeField){
321
-				
322
-				$needSkip = false;
323
-				$input->readBool($this->queryActivity);
324
-				
325
-			}
326
-			
327
-			
328
-			
329
-			
330
-			if ("queryPrepay" == $schemeField){
331
-				
332
-				$needSkip = false;
333
-				$input->readBool($this->queryPrepay);
334
-				
335
-			}
336
-			
337
-			
338
-			
339
-			
340
-			if ("commonParams" == $schemeField){
341
-				
342
-				$needSkip = false;
343
-				
344
-				$this->commonParams = new \com\vip\adp\api\open\service\CommonParams();
345
-				$this->commonParams->read($input);
346
-				
347
-			}
348
-			
349
-			
350
-			
351
-			
352
-			if ("vendorCode" == $schemeField){
353
-				
354
-				$needSkip = false;
355
-				$input->readString($this->vendorCode);
356
-				
357
-			}
358
-			
359
-			
360
-			
361
-			
362
-			if ("chanTag" == $schemeField){
363
-				
364
-				$needSkip = false;
365
-				$input->readString($this->chanTag);
366
-				
367
-			}
368
-			
369
-			
370
-			
371
-			if($needSkip){
372
-				
373
-				\Osp\Protocol\ProtocolUtil::skip($input);
374
-			}
375
-			
376
-			$input->readFieldEnd();
377
-		}
378
-		
379
-		$input->readStructEnd();
380
-		
381
-		
382
-		
383
-	}
384
-	
385
-	public function write($output){
386
-		
387
-		$xfer = 0;
388
-		$xfer += $output->writeStructBegin();
389
-		
390
-		$xfer += $output->writeFieldBegin('keyword');
391
-		$xfer += $output->writeString($this->keyword);
392
-		
393
-		$xfer += $output->writeFieldEnd();
394
-		
395
-		if($this->fieldName !== null) {
396
-			
397
-			$xfer += $output->writeFieldBegin('fieldName');
398
-			$xfer += $output->writeString($this->fieldName);
399
-			
400
-			$xfer += $output->writeFieldEnd();
401
-		}
402
-		
403
-		
404
-		if($this->order !== null) {
405
-			
406
-			$xfer += $output->writeFieldBegin('order');
407
-			$xfer += $output->writeI32($this->order);
408
-			
409
-			$xfer += $output->writeFieldEnd();
410
-		}
411
-		
412
-		
413
-		$xfer += $output->writeFieldBegin('page');
414
-		$xfer += $output->writeI32($this->page);
415
-		
416
-		$xfer += $output->writeFieldEnd();
417
-		
418
-		if($this->pageSize !== null) {
419
-			
420
-			$xfer += $output->writeFieldBegin('pageSize');
421
-			$xfer += $output->writeI32($this->pageSize);
422
-			
423
-			$xfer += $output->writeFieldEnd();
424
-		}
425
-		
426
-		
427
-		$xfer += $output->writeFieldBegin('requestId');
428
-		$xfer += $output->writeString($this->requestId);
429
-		
430
-		$xfer += $output->writeFieldEnd();
431
-		
432
-		if($this->priceStart !== null) {
433
-			
434
-			$xfer += $output->writeFieldBegin('priceStart');
435
-			$xfer += $output->writeString($this->priceStart);
436
-			
437
-			$xfer += $output->writeFieldEnd();
438
-		}
439
-		
440
-		
441
-		if($this->priceEnd !== null) {
442
-			
443
-			$xfer += $output->writeFieldBegin('priceEnd');
444
-			$xfer += $output->writeString($this->priceEnd);
445
-			
446
-			$xfer += $output->writeFieldEnd();
447
-		}
448
-		
449
-		
450
-		if($this->queryReputation !== null) {
451
-			
452
-			$xfer += $output->writeFieldBegin('queryReputation');
453
-			$xfer += $output->writeBool($this->queryReputation);
454
-			
455
-			$xfer += $output->writeFieldEnd();
456
-		}
457
-		
458
-		
459
-		if($this->queryStoreServiceCapability !== null) {
460
-			
461
-			$xfer += $output->writeFieldBegin('queryStoreServiceCapability');
462
-			$xfer += $output->writeBool($this->queryStoreServiceCapability);
463
-			
464
-			$xfer += $output->writeFieldEnd();
465
-		}
466
-		
467
-		
468
-		if($this->queryStock !== null) {
469
-			
470
-			$xfer += $output->writeFieldBegin('queryStock');
471
-			$xfer += $output->writeBool($this->queryStock);
472
-			
473
-			$xfer += $output->writeFieldEnd();
474
-		}
475
-		
476
-		
477
-		if($this->queryActivity !== null) {
478
-			
479
-			$xfer += $output->writeFieldBegin('queryActivity');
480
-			$xfer += $output->writeBool($this->queryActivity);
481
-			
482
-			$xfer += $output->writeFieldEnd();
483
-		}
484
-		
485
-		
486
-		if($this->queryPrepay !== null) {
487
-			
488
-			$xfer += $output->writeFieldBegin('queryPrepay');
489
-			$xfer += $output->writeBool($this->queryPrepay);
490
-			
491
-			$xfer += $output->writeFieldEnd();
492
-		}
493
-		
494
-		
495
-		if($this->commonParams !== null) {
496
-			
497
-			$xfer += $output->writeFieldBegin('commonParams');
498
-			
499
-			if (!is_object($this->commonParams)) {
500
-				
501
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
502
-			}
503
-			
504
-			$xfer += $this->commonParams->write($output);
505
-			
506
-			$xfer += $output->writeFieldEnd();
507
-		}
508
-		
509
-		
510
-		if($this->vendorCode !== null) {
511
-			
512
-			$xfer += $output->writeFieldBegin('vendorCode');
513
-			$xfer += $output->writeString($this->vendorCode);
514
-			
515
-			$xfer += $output->writeFieldEnd();
516
-		}
517
-		
518
-		
519
-		if($this->chanTag !== null) {
520
-			
521
-			$xfer += $output->writeFieldBegin('chanTag');
522
-			$xfer += $output->writeString($this->chanTag);
523
-			
524
-			$xfer += $output->writeFieldEnd();
525
-		}
526
-		
527
-		
528
-		$xfer += $output->writeFieldStop();
529
-		$xfer += $output->writeStructEnd();
530
-		return $xfer;
531
-	}
532
-	
533
-}
534
-
535
-?>

+ 0 - 249
extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderDetail.php

@@ -1,249 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class RefundOrderDetail {
14
-	
15
-	static $_TSPEC;
16
-	public $goodsId = null;
17
-	public $sizeId = null;
18
-	public $goodsPrice = null;
19
-	public $goodsCount = null;
20
-	public $commission = null;
21
-	public $totalCost = null;
22
-	
23
-	public function __construct($vals=null){
24
-		
25
-		if (!isset(self::$_TSPEC)){
26
-			
27
-			self::$_TSPEC = array(
28
-			1 => array(
29
-			'var' => 'goodsId'
30
-			),
31
-			2 => array(
32
-			'var' => 'sizeId'
33
-			),
34
-			3 => array(
35
-			'var' => 'goodsPrice'
36
-			),
37
-			4 => array(
38
-			'var' => 'goodsCount'
39
-			),
40
-			5 => array(
41
-			'var' => 'commission'
42
-			),
43
-			6 => array(
44
-			'var' => 'totalCost'
45
-			),
46
-			
47
-			);
48
-			
49
-		}
50
-		
51
-		if (is_array($vals)){
52
-			
53
-			
54
-			if (isset($vals['goodsId'])){
55
-				
56
-				$this->goodsId = $vals['goodsId'];
57
-			}
58
-			
59
-			
60
-			if (isset($vals['sizeId'])){
61
-				
62
-				$this->sizeId = $vals['sizeId'];
63
-			}
64
-			
65
-			
66
-			if (isset($vals['goodsPrice'])){
67
-				
68
-				$this->goodsPrice = $vals['goodsPrice'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['goodsCount'])){
73
-				
74
-				$this->goodsCount = $vals['goodsCount'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['commission'])){
79
-				
80
-				$this->commission = $vals['commission'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['totalCost'])){
85
-				
86
-				$this->totalCost = $vals['totalCost'];
87
-			}
88
-			
89
-			
90
-		}
91
-		
92
-	}
93
-	
94
-	
95
-	public function getName(){
96
-		
97
-		return 'RefundOrderDetail';
98
-	}
99
-	
100
-	public function read($input){
101
-		
102
-		$input->readStructBegin();
103
-		while(true){
104
-			
105
-			$schemeField = $input->readFieldBegin();
106
-			if ($schemeField == null) break;
107
-			$needSkip = true;
108
-			
109
-			
110
-			if ("goodsId" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->goodsId);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("sizeId" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->sizeId);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("goodsPrice" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readString($this->goodsPrice);
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("goodsCount" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readI32($this->goodsCount); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("commission" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->commission);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("totalCost" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->totalCost);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			if($needSkip){
170
-				
171
-				\Osp\Protocol\ProtocolUtil::skip($input);
172
-			}
173
-			
174
-			$input->readFieldEnd();
175
-		}
176
-		
177
-		$input->readStructEnd();
178
-		
179
-		
180
-		
181
-	}
182
-	
183
-	public function write($output){
184
-		
185
-		$xfer = 0;
186
-		$xfer += $output->writeStructBegin();
187
-		
188
-		if($this->goodsId !== null) {
189
-			
190
-			$xfer += $output->writeFieldBegin('goodsId');
191
-			$xfer += $output->writeString($this->goodsId);
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->sizeId !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('sizeId');
200
-			$xfer += $output->writeString($this->sizeId);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->goodsPrice !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('goodsPrice');
209
-			$xfer += $output->writeString($this->goodsPrice);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->goodsCount !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('goodsCount');
218
-			$xfer += $output->writeI32($this->goodsCount);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		if($this->commission !== null) {
225
-			
226
-			$xfer += $output->writeFieldBegin('commission');
227
-			$xfer += $output->writeString($this->commission);
228
-			
229
-			$xfer += $output->writeFieldEnd();
230
-		}
231
-		
232
-		
233
-		if($this->totalCost !== null) {
234
-			
235
-			$xfer += $output->writeFieldBegin('totalCost');
236
-			$xfer += $output->writeString($this->totalCost);
237
-			
238
-			$xfer += $output->writeFieldEnd();
239
-		}
240
-		
241
-		
242
-		$xfer += $output->writeFieldStop();
243
-		$xfer += $output->writeStructEnd();
244
-		return $xfer;
245
-	}
246
-	
247
-}
248
-
249
-?>

+ 0 - 608
extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderInfo.php

@@ -1,608 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class RefundOrderInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $orderSn = null;
17
-	public $applyTime = null;
18
-	public $refundType = null;
19
-	public $commissionTotalCost = null;
20
-	public $commission = null;
21
-	public $goodsCount = null;
22
-	public $commissionEnterTxn = null;
23
-	public $commissionEnterTime = null;
24
-	public $commissionSettledTime = null;
25
-	public $refundOrderDetails = null;
26
-	public $userId = null;
27
-	public $orderTime = null;
28
-	public $originCommEnterTime = null;
29
-	public $originCommEnterTxn = null;
30
-	public $settled = null;
31
-	public $afterSaleSn = null;
32
-	public $afterSaleStatus = null;
33
-	
34
-	public function __construct($vals=null){
35
-		
36
-		if (!isset(self::$_TSPEC)){
37
-			
38
-			self::$_TSPEC = array(
39
-			1 => array(
40
-			'var' => 'orderSn'
41
-			),
42
-			2 => array(
43
-			'var' => 'applyTime'
44
-			),
45
-			3 => array(
46
-			'var' => 'refundType'
47
-			),
48
-			4 => array(
49
-			'var' => 'commissionTotalCost'
50
-			),
51
-			5 => array(
52
-			'var' => 'commission'
53
-			),
54
-			6 => array(
55
-			'var' => 'goodsCount'
56
-			),
57
-			7 => array(
58
-			'var' => 'commissionEnterTxn'
59
-			),
60
-			8 => array(
61
-			'var' => 'commissionEnterTime'
62
-			),
63
-			9 => array(
64
-			'var' => 'commissionSettledTime'
65
-			),
66
-			11 => array(
67
-			'var' => 'refundOrderDetails'
68
-			),
69
-			12 => array(
70
-			'var' => 'userId'
71
-			),
72
-			13 => array(
73
-			'var' => 'orderTime'
74
-			),
75
-			14 => array(
76
-			'var' => 'originCommEnterTime'
77
-			),
78
-			15 => array(
79
-			'var' => 'originCommEnterTxn'
80
-			),
81
-			16 => array(
82
-			'var' => 'settled'
83
-			),
84
-			17 => array(
85
-			'var' => 'afterSaleSn'
86
-			),
87
-			18 => array(
88
-			'var' => 'afterSaleStatus'
89
-			),
90
-			
91
-			);
92
-			
93
-		}
94
-		
95
-		if (is_array($vals)){
96
-			
97
-			
98
-			if (isset($vals['orderSn'])){
99
-				
100
-				$this->orderSn = $vals['orderSn'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['applyTime'])){
105
-				
106
-				$this->applyTime = $vals['applyTime'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['refundType'])){
111
-				
112
-				$this->refundType = $vals['refundType'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['commissionTotalCost'])){
117
-				
118
-				$this->commissionTotalCost = $vals['commissionTotalCost'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['commission'])){
123
-				
124
-				$this->commission = $vals['commission'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['goodsCount'])){
129
-				
130
-				$this->goodsCount = $vals['goodsCount'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['commissionEnterTxn'])){
135
-				
136
-				$this->commissionEnterTxn = $vals['commissionEnterTxn'];
137
-			}
138
-			
139
-			
140
-			if (isset($vals['commissionEnterTime'])){
141
-				
142
-				$this->commissionEnterTime = $vals['commissionEnterTime'];
143
-			}
144
-			
145
-			
146
-			if (isset($vals['commissionSettledTime'])){
147
-				
148
-				$this->commissionSettledTime = $vals['commissionSettledTime'];
149
-			}
150
-			
151
-			
152
-			if (isset($vals['refundOrderDetails'])){
153
-				
154
-				$this->refundOrderDetails = $vals['refundOrderDetails'];
155
-			}
156
-			
157
-			
158
-			if (isset($vals['userId'])){
159
-				
160
-				$this->userId = $vals['userId'];
161
-			}
162
-			
163
-			
164
-			if (isset($vals['orderTime'])){
165
-				
166
-				$this->orderTime = $vals['orderTime'];
167
-			}
168
-			
169
-			
170
-			if (isset($vals['originCommEnterTime'])){
171
-				
172
-				$this->originCommEnterTime = $vals['originCommEnterTime'];
173
-			}
174
-			
175
-			
176
-			if (isset($vals['originCommEnterTxn'])){
177
-				
178
-				$this->originCommEnterTxn = $vals['originCommEnterTxn'];
179
-			}
180
-			
181
-			
182
-			if (isset($vals['settled'])){
183
-				
184
-				$this->settled = $vals['settled'];
185
-			}
186
-			
187
-			
188
-			if (isset($vals['afterSaleSn'])){
189
-				
190
-				$this->afterSaleSn = $vals['afterSaleSn'];
191
-			}
192
-			
193
-			
194
-			if (isset($vals['afterSaleStatus'])){
195
-				
196
-				$this->afterSaleStatus = $vals['afterSaleStatus'];
197
-			}
198
-			
199
-			
200
-		}
201
-		
202
-	}
203
-	
204
-	
205
-	public function getName(){
206
-		
207
-		return 'RefundOrderInfo';
208
-	}
209
-	
210
-	public function read($input){
211
-		
212
-		$input->readStructBegin();
213
-		while(true){
214
-			
215
-			$schemeField = $input->readFieldBegin();
216
-			if ($schemeField == null) break;
217
-			$needSkip = true;
218
-			
219
-			
220
-			if ("orderSn" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readString($this->orderSn);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("applyTime" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI64($this->applyTime); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("refundType" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readI32($this->refundType); 
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("commissionTotalCost" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readString($this->commissionTotalCost);
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("commission" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readString($this->commission);
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			
270
-			if ("goodsCount" == $schemeField){
271
-				
272
-				$needSkip = false;
273
-				$input->readI32($this->goodsCount); 
274
-				
275
-			}
276
-			
277
-			
278
-			
279
-			
280
-			if ("commissionEnterTxn" == $schemeField){
281
-				
282
-				$needSkip = false;
283
-				$input->readString($this->commissionEnterTxn);
284
-				
285
-			}
286
-			
287
-			
288
-			
289
-			
290
-			if ("commissionEnterTime" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				$input->readI64($this->commissionEnterTime); 
294
-				
295
-			}
296
-			
297
-			
298
-			
299
-			
300
-			if ("commissionSettledTime" == $schemeField){
301
-				
302
-				$needSkip = false;
303
-				$input->readI64($this->commissionSettledTime); 
304
-				
305
-			}
306
-			
307
-			
308
-			
309
-			
310
-			if ("refundOrderDetails" == $schemeField){
311
-				
312
-				$needSkip = false;
313
-				
314
-				$this->refundOrderDetails = array();
315
-				$_size0 = 0;
316
-				$input->readListBegin();
317
-				while(true){
318
-					
319
-					try{
320
-						
321
-						$elem0 = null;
322
-						
323
-						$elem0 = new \com\vip\adp\api\open\service\RefundOrderDetail();
324
-						$elem0->read($input);
325
-						
326
-						$this->refundOrderDetails[$_size0++] = $elem0;
327
-					}
328
-					catch(\Exception $e){
329
-						
330
-						break;
331
-					}
332
-				}
333
-				
334
-				$input->readListEnd();
335
-				
336
-			}
337
-			
338
-			
339
-			
340
-			
341
-			if ("userId" == $schemeField){
342
-				
343
-				$needSkip = false;
344
-				$input->readI64($this->userId); 
345
-				
346
-			}
347
-			
348
-			
349
-			
350
-			
351
-			if ("orderTime" == $schemeField){
352
-				
353
-				$needSkip = false;
354
-				$input->readI64($this->orderTime); 
355
-				
356
-			}
357
-			
358
-			
359
-			
360
-			
361
-			if ("originCommEnterTime" == $schemeField){
362
-				
363
-				$needSkip = false;
364
-				$input->readI64($this->originCommEnterTime); 
365
-				
366
-			}
367
-			
368
-			
369
-			
370
-			
371
-			if ("originCommEnterTxn" == $schemeField){
372
-				
373
-				$needSkip = false;
374
-				$input->readString($this->originCommEnterTxn);
375
-				
376
-			}
377
-			
378
-			
379
-			
380
-			
381
-			if ("settled" == $schemeField){
382
-				
383
-				$needSkip = false;
384
-				$input->readI32($this->settled); 
385
-				
386
-			}
387
-			
388
-			
389
-			
390
-			
391
-			if ("afterSaleSn" == $schemeField){
392
-				
393
-				$needSkip = false;
394
-				$input->readString($this->afterSaleSn);
395
-				
396
-			}
397
-			
398
-			
399
-			
400
-			
401
-			if ("afterSaleStatus" == $schemeField){
402
-				
403
-				$needSkip = false;
404
-				$input->readI16($this->afterSaleStatus); 
405
-				
406
-			}
407
-			
408
-			
409
-			
410
-			if($needSkip){
411
-				
412
-				\Osp\Protocol\ProtocolUtil::skip($input);
413
-			}
414
-			
415
-			$input->readFieldEnd();
416
-		}
417
-		
418
-		$input->readStructEnd();
419
-		
420
-		
421
-		
422
-	}
423
-	
424
-	public function write($output){
425
-		
426
-		$xfer = 0;
427
-		$xfer += $output->writeStructBegin();
428
-		
429
-		if($this->orderSn !== null) {
430
-			
431
-			$xfer += $output->writeFieldBegin('orderSn');
432
-			$xfer += $output->writeString($this->orderSn);
433
-			
434
-			$xfer += $output->writeFieldEnd();
435
-		}
436
-		
437
-		
438
-		if($this->applyTime !== null) {
439
-			
440
-			$xfer += $output->writeFieldBegin('applyTime');
441
-			$xfer += $output->writeI64($this->applyTime);
442
-			
443
-			$xfer += $output->writeFieldEnd();
444
-		}
445
-		
446
-		
447
-		if($this->refundType !== null) {
448
-			
449
-			$xfer += $output->writeFieldBegin('refundType');
450
-			$xfer += $output->writeI32($this->refundType);
451
-			
452
-			$xfer += $output->writeFieldEnd();
453
-		}
454
-		
455
-		
456
-		if($this->commissionTotalCost !== null) {
457
-			
458
-			$xfer += $output->writeFieldBegin('commissionTotalCost');
459
-			$xfer += $output->writeString($this->commissionTotalCost);
460
-			
461
-			$xfer += $output->writeFieldEnd();
462
-		}
463
-		
464
-		
465
-		if($this->commission !== null) {
466
-			
467
-			$xfer += $output->writeFieldBegin('commission');
468
-			$xfer += $output->writeString($this->commission);
469
-			
470
-			$xfer += $output->writeFieldEnd();
471
-		}
472
-		
473
-		
474
-		if($this->goodsCount !== null) {
475
-			
476
-			$xfer += $output->writeFieldBegin('goodsCount');
477
-			$xfer += $output->writeI32($this->goodsCount);
478
-			
479
-			$xfer += $output->writeFieldEnd();
480
-		}
481
-		
482
-		
483
-		if($this->commissionEnterTxn !== null) {
484
-			
485
-			$xfer += $output->writeFieldBegin('commissionEnterTxn');
486
-			$xfer += $output->writeString($this->commissionEnterTxn);
487
-			
488
-			$xfer += $output->writeFieldEnd();
489
-		}
490
-		
491
-		
492
-		if($this->commissionEnterTime !== null) {
493
-			
494
-			$xfer += $output->writeFieldBegin('commissionEnterTime');
495
-			$xfer += $output->writeI64($this->commissionEnterTime);
496
-			
497
-			$xfer += $output->writeFieldEnd();
498
-		}
499
-		
500
-		
501
-		if($this->commissionSettledTime !== null) {
502
-			
503
-			$xfer += $output->writeFieldBegin('commissionSettledTime');
504
-			$xfer += $output->writeI64($this->commissionSettledTime);
505
-			
506
-			$xfer += $output->writeFieldEnd();
507
-		}
508
-		
509
-		
510
-		if($this->refundOrderDetails !== null) {
511
-			
512
-			$xfer += $output->writeFieldBegin('refundOrderDetails');
513
-			
514
-			if (!is_array($this->refundOrderDetails)){
515
-				
516
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
517
-			}
518
-			
519
-			$output->writeListBegin();
520
-			foreach ($this->refundOrderDetails as $iter0){
521
-				
522
-				
523
-				if (!is_object($iter0)) {
524
-					
525
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
526
-				}
527
-				
528
-				$xfer += $iter0->write($output);
529
-				
530
-			}
531
-			
532
-			$output->writeListEnd();
533
-			
534
-			$xfer += $output->writeFieldEnd();
535
-		}
536
-		
537
-		
538
-		if($this->userId !== null) {
539
-			
540
-			$xfer += $output->writeFieldBegin('userId');
541
-			$xfer += $output->writeI64($this->userId);
542
-			
543
-			$xfer += $output->writeFieldEnd();
544
-		}
545
-		
546
-		
547
-		if($this->orderTime !== null) {
548
-			
549
-			$xfer += $output->writeFieldBegin('orderTime');
550
-			$xfer += $output->writeI64($this->orderTime);
551
-			
552
-			$xfer += $output->writeFieldEnd();
553
-		}
554
-		
555
-		
556
-		if($this->originCommEnterTime !== null) {
557
-			
558
-			$xfer += $output->writeFieldBegin('originCommEnterTime');
559
-			$xfer += $output->writeI64($this->originCommEnterTime);
560
-			
561
-			$xfer += $output->writeFieldEnd();
562
-		}
563
-		
564
-		
565
-		if($this->originCommEnterTxn !== null) {
566
-			
567
-			$xfer += $output->writeFieldBegin('originCommEnterTxn');
568
-			$xfer += $output->writeString($this->originCommEnterTxn);
569
-			
570
-			$xfer += $output->writeFieldEnd();
571
-		}
572
-		
573
-		
574
-		if($this->settled !== null) {
575
-			
576
-			$xfer += $output->writeFieldBegin('settled');
577
-			$xfer += $output->writeI32($this->settled);
578
-			
579
-			$xfer += $output->writeFieldEnd();
580
-		}
581
-		
582
-		
583
-		if($this->afterSaleSn !== null) {
584
-			
585
-			$xfer += $output->writeFieldBegin('afterSaleSn');
586
-			$xfer += $output->writeString($this->afterSaleSn);
587
-			
588
-			$xfer += $output->writeFieldEnd();
589
-		}
590
-		
591
-		
592
-		if($this->afterSaleStatus !== null) {
593
-			
594
-			$xfer += $output->writeFieldBegin('afterSaleStatus');
595
-			$xfer += $output->writeI16($this->afterSaleStatus);
596
-			
597
-			$xfer += $output->writeFieldEnd();
598
-		}
599
-		
600
-		
601
-		$xfer += $output->writeFieldStop();
602
-		$xfer += $output->writeStructEnd();
603
-		return $xfer;
604
-	}
605
-	
606
-}
607
-
608
-?>

+ 0 - 298
extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderRequest.php

@@ -1,298 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class RefundOrderRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $searchType = null;
17
-	public $searchTimeStart = null;
18
-	public $searchTimeEnd = null;
19
-	public $orderSns = null;
20
-	public $page = null;
21
-	public $pageSize = null;
22
-	public $requestId = null;
23
-	
24
-	public function __construct($vals=null){
25
-		
26
-		if (!isset(self::$_TSPEC)){
27
-			
28
-			self::$_TSPEC = array(
29
-			1 => array(
30
-			'var' => 'searchType'
31
-			),
32
-			2 => array(
33
-			'var' => 'searchTimeStart'
34
-			),
35
-			3 => array(
36
-			'var' => 'searchTimeEnd'
37
-			),
38
-			4 => array(
39
-			'var' => 'orderSns'
40
-			),
41
-			5 => array(
42
-			'var' => 'page'
43
-			),
44
-			6 => array(
45
-			'var' => 'pageSize'
46
-			),
47
-			7 => array(
48
-			'var' => 'requestId'
49
-			),
50
-			
51
-			);
52
-			
53
-		}
54
-		
55
-		if (is_array($vals)){
56
-			
57
-			
58
-			if (isset($vals['searchType'])){
59
-				
60
-				$this->searchType = $vals['searchType'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['searchTimeStart'])){
65
-				
66
-				$this->searchTimeStart = $vals['searchTimeStart'];
67
-			}
68
-			
69
-			
70
-			if (isset($vals['searchTimeEnd'])){
71
-				
72
-				$this->searchTimeEnd = $vals['searchTimeEnd'];
73
-			}
74
-			
75
-			
76
-			if (isset($vals['orderSns'])){
77
-				
78
-				$this->orderSns = $vals['orderSns'];
79
-			}
80
-			
81
-			
82
-			if (isset($vals['page'])){
83
-				
84
-				$this->page = $vals['page'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['pageSize'])){
89
-				
90
-				$this->pageSize = $vals['pageSize'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['requestId'])){
95
-				
96
-				$this->requestId = $vals['requestId'];
97
-			}
98
-			
99
-			
100
-		}
101
-		
102
-	}
103
-	
104
-	
105
-	public function getName(){
106
-		
107
-		return 'RefundOrderRequest';
108
-	}
109
-	
110
-	public function read($input){
111
-		
112
-		$input->readStructBegin();
113
-		while(true){
114
-			
115
-			$schemeField = $input->readFieldBegin();
116
-			if ($schemeField == null) break;
117
-			$needSkip = true;
118
-			
119
-			
120
-			if ("searchType" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readI32($this->searchType); 
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("searchTimeStart" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readI64($this->searchTimeStart); 
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("searchTimeEnd" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readI64($this->searchTimeEnd); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("orderSns" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				
154
-				$this->orderSns = array();
155
-				$_size0 = 0;
156
-				$input->readListBegin();
157
-				while(true){
158
-					
159
-					try{
160
-						
161
-						$elem0 = null;
162
-						$input->readString($elem0);
163
-						
164
-						$this->orderSns[$_size0++] = $elem0;
165
-					}
166
-					catch(\Exception $e){
167
-						
168
-						break;
169
-					}
170
-				}
171
-				
172
-				$input->readListEnd();
173
-				
174
-			}
175
-			
176
-			
177
-			
178
-			
179
-			if ("page" == $schemeField){
180
-				
181
-				$needSkip = false;
182
-				$input->readI32($this->page); 
183
-				
184
-			}
185
-			
186
-			
187
-			
188
-			
189
-			if ("pageSize" == $schemeField){
190
-				
191
-				$needSkip = false;
192
-				$input->readI32($this->pageSize); 
193
-				
194
-			}
195
-			
196
-			
197
-			
198
-			
199
-			if ("requestId" == $schemeField){
200
-				
201
-				$needSkip = false;
202
-				$input->readString($this->requestId);
203
-				
204
-			}
205
-			
206
-			
207
-			
208
-			if($needSkip){
209
-				
210
-				\Osp\Protocol\ProtocolUtil::skip($input);
211
-			}
212
-			
213
-			$input->readFieldEnd();
214
-		}
215
-		
216
-		$input->readStructEnd();
217
-		
218
-		
219
-		
220
-	}
221
-	
222
-	public function write($output){
223
-		
224
-		$xfer = 0;
225
-		$xfer += $output->writeStructBegin();
226
-		
227
-		$xfer += $output->writeFieldBegin('searchType');
228
-		$xfer += $output->writeI32($this->searchType);
229
-		
230
-		$xfer += $output->writeFieldEnd();
231
-		
232
-		if($this->searchTimeStart !== null) {
233
-			
234
-			$xfer += $output->writeFieldBegin('searchTimeStart');
235
-			$xfer += $output->writeI64($this->searchTimeStart);
236
-			
237
-			$xfer += $output->writeFieldEnd();
238
-		}
239
-		
240
-		
241
-		if($this->searchTimeEnd !== null) {
242
-			
243
-			$xfer += $output->writeFieldBegin('searchTimeEnd');
244
-			$xfer += $output->writeI64($this->searchTimeEnd);
245
-			
246
-			$xfer += $output->writeFieldEnd();
247
-		}
248
-		
249
-		
250
-		if($this->orderSns !== null) {
251
-			
252
-			$xfer += $output->writeFieldBegin('orderSns');
253
-			
254
-			if (!is_array($this->orderSns)){
255
-				
256
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
257
-			}
258
-			
259
-			$output->writeListBegin();
260
-			foreach ($this->orderSns as $iter0){
261
-				
262
-				$xfer += $output->writeString($iter0);
263
-				
264
-			}
265
-			
266
-			$output->writeListEnd();
267
-			
268
-			$xfer += $output->writeFieldEnd();
269
-		}
270
-		
271
-		
272
-		$xfer += $output->writeFieldBegin('page');
273
-		$xfer += $output->writeI32($this->page);
274
-		
275
-		$xfer += $output->writeFieldEnd();
276
-		
277
-		if($this->pageSize !== null) {
278
-			
279
-			$xfer += $output->writeFieldBegin('pageSize');
280
-			$xfer += $output->writeI32($this->pageSize);
281
-			
282
-			$xfer += $output->writeFieldEnd();
283
-		}
284
-		
285
-		
286
-		$xfer += $output->writeFieldBegin('requestId');
287
-		$xfer += $output->writeString($this->requestId);
288
-		
289
-		$xfer += $output->writeFieldEnd();
290
-		
291
-		$xfer += $output->writeFieldStop();
292
-		$xfer += $output->writeStructEnd();
293
-		return $xfer;
294
-	}
295
-	
296
-}
297
-
298
-?>

+ 0 - 231
extend/vip_sdk/src/com/vip/adp/api/open/service/RefundOrderResponse.php

@@ -1,231 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class RefundOrderResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $refundOrderInfoList = null;
17
-	public $total = null;
18
-	public $page = null;
19
-	public $pageSize = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'refundOrderInfoList'
28
-			),
29
-			2 => array(
30
-			'var' => 'total'
31
-			),
32
-			3 => array(
33
-			'var' => 'page'
34
-			),
35
-			4 => array(
36
-			'var' => 'pageSize'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['refundOrderInfoList'])){
47
-				
48
-				$this->refundOrderInfoList = $vals['refundOrderInfoList'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['total'])){
53
-				
54
-				$this->total = $vals['total'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['page'])){
59
-				
60
-				$this->page = $vals['page'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['pageSize'])){
65
-				
66
-				$this->pageSize = $vals['pageSize'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'RefundOrderResponse';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("refundOrderInfoList" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				
94
-				$this->refundOrderInfoList = array();
95
-				$_size0 = 0;
96
-				$input->readListBegin();
97
-				while(true){
98
-					
99
-					try{
100
-						
101
-						$elem0 = null;
102
-						
103
-						$elem0 = new \com\vip\adp\api\open\service\RefundOrderInfo();
104
-						$elem0->read($input);
105
-						
106
-						$this->refundOrderInfoList[$_size0++] = $elem0;
107
-					}
108
-					catch(\Exception $e){
109
-						
110
-						break;
111
-					}
112
-				}
113
-				
114
-				$input->readListEnd();
115
-				
116
-			}
117
-			
118
-			
119
-			
120
-			
121
-			if ("total" == $schemeField){
122
-				
123
-				$needSkip = false;
124
-				$input->readI32($this->total); 
125
-				
126
-			}
127
-			
128
-			
129
-			
130
-			
131
-			if ("page" == $schemeField){
132
-				
133
-				$needSkip = false;
134
-				$input->readI32($this->page); 
135
-				
136
-			}
137
-			
138
-			
139
-			
140
-			
141
-			if ("pageSize" == $schemeField){
142
-				
143
-				$needSkip = false;
144
-				$input->readI32($this->pageSize); 
145
-				
146
-			}
147
-			
148
-			
149
-			
150
-			if($needSkip){
151
-				
152
-				\Osp\Protocol\ProtocolUtil::skip($input);
153
-			}
154
-			
155
-			$input->readFieldEnd();
156
-		}
157
-		
158
-		$input->readStructEnd();
159
-		
160
-		
161
-		
162
-	}
163
-	
164
-	public function write($output){
165
-		
166
-		$xfer = 0;
167
-		$xfer += $output->writeStructBegin();
168
-		
169
-		if($this->refundOrderInfoList !== null) {
170
-			
171
-			$xfer += $output->writeFieldBegin('refundOrderInfoList');
172
-			
173
-			if (!is_array($this->refundOrderInfoList)){
174
-				
175
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
176
-			}
177
-			
178
-			$output->writeListBegin();
179
-			foreach ($this->refundOrderInfoList as $iter0){
180
-				
181
-				
182
-				if (!is_object($iter0)) {
183
-					
184
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
185
-				}
186
-				
187
-				$xfer += $iter0->write($output);
188
-				
189
-			}
190
-			
191
-			$output->writeListEnd();
192
-			
193
-			$xfer += $output->writeFieldEnd();
194
-		}
195
-		
196
-		
197
-		if($this->total !== null) {
198
-			
199
-			$xfer += $output->writeFieldBegin('total');
200
-			$xfer += $output->writeI32($this->total);
201
-			
202
-			$xfer += $output->writeFieldEnd();
203
-		}
204
-		
205
-		
206
-		if($this->page !== null) {
207
-			
208
-			$xfer += $output->writeFieldBegin('page');
209
-			$xfer += $output->writeI32($this->page);
210
-			
211
-			$xfer += $output->writeFieldEnd();
212
-		}
213
-		
214
-		
215
-		if($this->pageSize !== null) {
216
-			
217
-			$xfer += $output->writeFieldBegin('pageSize');
218
-			$xfer += $output->writeI32($this->pageSize);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		$xfer += $output->writeFieldStop();
225
-		$xfer += $output->writeStructEnd();
226
-		return $xfer;
227
-	}
228
-	
229
-}
230
-
231
-?>

+ 0 - 390
extend/vip_sdk/src/com/vip/adp/api/open/service/SimilarRecommendRequest.php

@@ -1,390 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class SimilarRecommendRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $goodsId = null;
17
-	public $page = null;
18
-	public $pageSize = null;
19
-	public $requestId = null;
20
-	public $commonParams = null;
21
-	public $queryReputation = null;
22
-	public $queryStoreServiceCapability = null;
23
-	public $queryStock = null;
24
-	public $queryActivity = null;
25
-	public $queryPrepay = null;
26
-	public $chanTag = null;
27
-	
28
-	public function __construct($vals=null){
29
-		
30
-		if (!isset(self::$_TSPEC)){
31
-			
32
-			self::$_TSPEC = array(
33
-			1 => array(
34
-			'var' => 'goodsId'
35
-			),
36
-			2 => array(
37
-			'var' => 'page'
38
-			),
39
-			3 => array(
40
-			'var' => 'pageSize'
41
-			),
42
-			4 => array(
43
-			'var' => 'requestId'
44
-			),
45
-			5 => array(
46
-			'var' => 'commonParams'
47
-			),
48
-			6 => array(
49
-			'var' => 'queryReputation'
50
-			),
51
-			7 => array(
52
-			'var' => 'queryStoreServiceCapability'
53
-			),
54
-			8 => array(
55
-			'var' => 'queryStock'
56
-			),
57
-			9 => array(
58
-			'var' => 'queryActivity'
59
-			),
60
-			10 => array(
61
-			'var' => 'queryPrepay'
62
-			),
63
-			11 => array(
64
-			'var' => 'chanTag'
65
-			),
66
-			
67
-			);
68
-			
69
-		}
70
-		
71
-		if (is_array($vals)){
72
-			
73
-			
74
-			if (isset($vals['goodsId'])){
75
-				
76
-				$this->goodsId = $vals['goodsId'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['page'])){
81
-				
82
-				$this->page = $vals['page'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['pageSize'])){
87
-				
88
-				$this->pageSize = $vals['pageSize'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['requestId'])){
93
-				
94
-				$this->requestId = $vals['requestId'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['commonParams'])){
99
-				
100
-				$this->commonParams = $vals['commonParams'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['queryReputation'])){
105
-				
106
-				$this->queryReputation = $vals['queryReputation'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['queryStoreServiceCapability'])){
111
-				
112
-				$this->queryStoreServiceCapability = $vals['queryStoreServiceCapability'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['queryStock'])){
117
-				
118
-				$this->queryStock = $vals['queryStock'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['queryActivity'])){
123
-				
124
-				$this->queryActivity = $vals['queryActivity'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['queryPrepay'])){
129
-				
130
-				$this->queryPrepay = $vals['queryPrepay'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['chanTag'])){
135
-				
136
-				$this->chanTag = $vals['chanTag'];
137
-			}
138
-			
139
-			
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function getName(){
146
-		
147
-		return 'SimilarRecommendRequest';
148
-	}
149
-	
150
-	public function read($input){
151
-		
152
-		$input->readStructBegin();
153
-		while(true){
154
-			
155
-			$schemeField = $input->readFieldBegin();
156
-			if ($schemeField == null) break;
157
-			$needSkip = true;
158
-			
159
-			
160
-			if ("goodsId" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->goodsId);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("page" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readI32($this->page); 
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("pageSize" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readI32($this->pageSize); 
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("requestId" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readString($this->requestId);
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("commonParams" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				
204
-				$this->commonParams = new \com\vip\adp\api\open\service\CommonParams();
205
-				$this->commonParams->read($input);
206
-				
207
-			}
208
-			
209
-			
210
-			
211
-			
212
-			if ("queryReputation" == $schemeField){
213
-				
214
-				$needSkip = false;
215
-				$input->readBool($this->queryReputation);
216
-				
217
-			}
218
-			
219
-			
220
-			
221
-			
222
-			if ("queryStoreServiceCapability" == $schemeField){
223
-				
224
-				$needSkip = false;
225
-				$input->readBool($this->queryStoreServiceCapability);
226
-				
227
-			}
228
-			
229
-			
230
-			
231
-			
232
-			if ("queryStock" == $schemeField){
233
-				
234
-				$needSkip = false;
235
-				$input->readBool($this->queryStock);
236
-				
237
-			}
238
-			
239
-			
240
-			
241
-			
242
-			if ("queryActivity" == $schemeField){
243
-				
244
-				$needSkip = false;
245
-				$input->readBool($this->queryActivity);
246
-				
247
-			}
248
-			
249
-			
250
-			
251
-			
252
-			if ("queryPrepay" == $schemeField){
253
-				
254
-				$needSkip = false;
255
-				$input->readBool($this->queryPrepay);
256
-				
257
-			}
258
-			
259
-			
260
-			
261
-			
262
-			if ("chanTag" == $schemeField){
263
-				
264
-				$needSkip = false;
265
-				$input->readString($this->chanTag);
266
-				
267
-			}
268
-			
269
-			
270
-			
271
-			if($needSkip){
272
-				
273
-				\Osp\Protocol\ProtocolUtil::skip($input);
274
-			}
275
-			
276
-			$input->readFieldEnd();
277
-		}
278
-		
279
-		$input->readStructEnd();
280
-		
281
-		
282
-		
283
-	}
284
-	
285
-	public function write($output){
286
-		
287
-		$xfer = 0;
288
-		$xfer += $output->writeStructBegin();
289
-		
290
-		$xfer += $output->writeFieldBegin('goodsId');
291
-		$xfer += $output->writeString($this->goodsId);
292
-		
293
-		$xfer += $output->writeFieldEnd();
294
-		
295
-		$xfer += $output->writeFieldBegin('page');
296
-		$xfer += $output->writeI32($this->page);
297
-		
298
-		$xfer += $output->writeFieldEnd();
299
-		
300
-		if($this->pageSize !== null) {
301
-			
302
-			$xfer += $output->writeFieldBegin('pageSize');
303
-			$xfer += $output->writeI32($this->pageSize);
304
-			
305
-			$xfer += $output->writeFieldEnd();
306
-		}
307
-		
308
-		
309
-		$xfer += $output->writeFieldBegin('requestId');
310
-		$xfer += $output->writeString($this->requestId);
311
-		
312
-		$xfer += $output->writeFieldEnd();
313
-		
314
-		if($this->commonParams !== null) {
315
-			
316
-			$xfer += $output->writeFieldBegin('commonParams');
317
-			
318
-			if (!is_object($this->commonParams)) {
319
-				
320
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
321
-			}
322
-			
323
-			$xfer += $this->commonParams->write($output);
324
-			
325
-			$xfer += $output->writeFieldEnd();
326
-		}
327
-		
328
-		
329
-		if($this->queryReputation !== null) {
330
-			
331
-			$xfer += $output->writeFieldBegin('queryReputation');
332
-			$xfer += $output->writeBool($this->queryReputation);
333
-			
334
-			$xfer += $output->writeFieldEnd();
335
-		}
336
-		
337
-		
338
-		if($this->queryStoreServiceCapability !== null) {
339
-			
340
-			$xfer += $output->writeFieldBegin('queryStoreServiceCapability');
341
-			$xfer += $output->writeBool($this->queryStoreServiceCapability);
342
-			
343
-			$xfer += $output->writeFieldEnd();
344
-		}
345
-		
346
-		
347
-		if($this->queryStock !== null) {
348
-			
349
-			$xfer += $output->writeFieldBegin('queryStock');
350
-			$xfer += $output->writeBool($this->queryStock);
351
-			
352
-			$xfer += $output->writeFieldEnd();
353
-		}
354
-		
355
-		
356
-		if($this->queryActivity !== null) {
357
-			
358
-			$xfer += $output->writeFieldBegin('queryActivity');
359
-			$xfer += $output->writeBool($this->queryActivity);
360
-			
361
-			$xfer += $output->writeFieldEnd();
362
-		}
363
-		
364
-		
365
-		if($this->queryPrepay !== null) {
366
-			
367
-			$xfer += $output->writeFieldBegin('queryPrepay');
368
-			$xfer += $output->writeBool($this->queryPrepay);
369
-			
370
-			$xfer += $output->writeFieldEnd();
371
-		}
372
-		
373
-		
374
-		if($this->chanTag !== null) {
375
-			
376
-			$xfer += $output->writeFieldBegin('chanTag');
377
-			$xfer += $output->writeString($this->chanTag);
378
-			
379
-			$xfer += $output->writeFieldEnd();
380
-		}
381
-		
382
-		
383
-		$xfer += $output->writeFieldStop();
384
-		$xfer += $output->writeStructEnd();
385
-		return $xfer;
386
-	}
387
-	
388
-}
389
-
390
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/adp/api/open/service/SortField.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class SortField {
14
-	
15
-	static $_TSPEC;
16
-	public $fieldName = null;
17
-	public $fieldDesc = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'fieldName'
26
-			),
27
-			2 => array(
28
-			'var' => 'fieldDesc'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['fieldName'])){
39
-				
40
-				$this->fieldName = $vals['fieldName'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['fieldDesc'])){
45
-				
46
-				$this->fieldDesc = $vals['fieldDesc'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'SortField';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("fieldName" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->fieldName);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("fieldDesc" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->fieldDesc);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->fieldName !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('fieldName');
111
-			$xfer += $output->writeString($this->fieldName);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->fieldDesc !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('fieldDesc');
120
-			$xfer += $output->writeString($this->fieldDesc);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/adp/api/open/service/StoreInfo.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class StoreInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $storeId = null;
17
-	public $storeName = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'storeId'
26
-			),
27
-			2 => array(
28
-			'var' => 'storeName'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['storeId'])){
39
-				
40
-				$this->storeId = $vals['storeId'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['storeName'])){
45
-				
46
-				$this->storeName = $vals['storeName'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'StoreInfo';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("storeId" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->storeId);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("storeName" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->storeName);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->storeId !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('storeId');
111
-			$xfer += $output->writeString($this->storeId);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->storeName !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('storeName');
120
-			$xfer += $output->writeString($this->storeName);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/adp/api/open/service/StoreServiceCapability.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class StoreServiceCapability {
14
-	
15
-	static $_TSPEC;
16
-	public $storeScore = null;
17
-	public $storeRankRate = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'storeScore'
26
-			),
27
-			2 => array(
28
-			'var' => 'storeRankRate'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['storeScore'])){
39
-				
40
-				$this->storeScore = $vals['storeScore'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['storeRankRate'])){
45
-				
46
-				$this->storeRankRate = $vals['storeRankRate'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'StoreServiceCapability';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("storeScore" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->storeScore);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("storeRankRate" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->storeRankRate);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->storeScore !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('storeScore');
111
-			$xfer += $output->writeString($this->storeScore);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->storeRankRate !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('storeRankRate');
120
-			$xfer += $output->writeString($this->storeRankRate);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 220
extend/vip_sdk/src/com/vip/adp/api/open/service/TargetBasicInfo.php

@@ -1,220 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class TargetBasicInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $name = null;
17
-	public $vipPrice = null;
18
-	public $marketPrice = null;
19
-	public $commission = null;
20
-	public $commissionRatio = null;
21
-	
22
-	public function __construct($vals=null){
23
-		
24
-		if (!isset(self::$_TSPEC)){
25
-			
26
-			self::$_TSPEC = array(
27
-			1 => array(
28
-			'var' => 'name'
29
-			),
30
-			2 => array(
31
-			'var' => 'vipPrice'
32
-			),
33
-			3 => array(
34
-			'var' => 'marketPrice'
35
-			),
36
-			4 => array(
37
-			'var' => 'commission'
38
-			),
39
-			5 => array(
40
-			'var' => 'commissionRatio'
41
-			),
42
-			
43
-			);
44
-			
45
-		}
46
-		
47
-		if (is_array($vals)){
48
-			
49
-			
50
-			if (isset($vals['name'])){
51
-				
52
-				$this->name = $vals['name'];
53
-			}
54
-			
55
-			
56
-			if (isset($vals['vipPrice'])){
57
-				
58
-				$this->vipPrice = $vals['vipPrice'];
59
-			}
60
-			
61
-			
62
-			if (isset($vals['marketPrice'])){
63
-				
64
-				$this->marketPrice = $vals['marketPrice'];
65
-			}
66
-			
67
-			
68
-			if (isset($vals['commission'])){
69
-				
70
-				$this->commission = $vals['commission'];
71
-			}
72
-			
73
-			
74
-			if (isset($vals['commissionRatio'])){
75
-				
76
-				$this->commissionRatio = $vals['commissionRatio'];
77
-			}
78
-			
79
-			
80
-		}
81
-		
82
-	}
83
-	
84
-	
85
-	public function getName(){
86
-		
87
-		return 'TargetBasicInfo';
88
-	}
89
-	
90
-	public function read($input){
91
-		
92
-		$input->readStructBegin();
93
-		while(true){
94
-			
95
-			$schemeField = $input->readFieldBegin();
96
-			if ($schemeField == null) break;
97
-			$needSkip = true;
98
-			
99
-			
100
-			if ("name" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readString($this->name);
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("vipPrice" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->vipPrice);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("marketPrice" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->marketPrice);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("commission" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readString($this->commission);
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("commissionRatio" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readString($this->commissionRatio);
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			if($needSkip){
150
-				
151
-				\Osp\Protocol\ProtocolUtil::skip($input);
152
-			}
153
-			
154
-			$input->readFieldEnd();
155
-		}
156
-		
157
-		$input->readStructEnd();
158
-		
159
-		
160
-		
161
-	}
162
-	
163
-	public function write($output){
164
-		
165
-		$xfer = 0;
166
-		$xfer += $output->writeStructBegin();
167
-		
168
-		if($this->name !== null) {
169
-			
170
-			$xfer += $output->writeFieldBegin('name');
171
-			$xfer += $output->writeString($this->name);
172
-			
173
-			$xfer += $output->writeFieldEnd();
174
-		}
175
-		
176
-		
177
-		if($this->vipPrice !== null) {
178
-			
179
-			$xfer += $output->writeFieldBegin('vipPrice');
180
-			$xfer += $output->writeString($this->vipPrice);
181
-			
182
-			$xfer += $output->writeFieldEnd();
183
-		}
184
-		
185
-		
186
-		if($this->marketPrice !== null) {
187
-			
188
-			$xfer += $output->writeFieldBegin('marketPrice');
189
-			$xfer += $output->writeString($this->marketPrice);
190
-			
191
-			$xfer += $output->writeFieldEnd();
192
-		}
193
-		
194
-		
195
-		if($this->commission !== null) {
196
-			
197
-			$xfer += $output->writeFieldBegin('commission');
198
-			$xfer += $output->writeString($this->commission);
199
-			
200
-			$xfer += $output->writeFieldEnd();
201
-		}
202
-		
203
-		
204
-		if($this->commissionRatio !== null) {
205
-			
206
-			$xfer += $output->writeFieldBegin('commissionRatio');
207
-			$xfer += $output->writeString($this->commissionRatio);
208
-			
209
-			$xfer += $output->writeFieldEnd();
210
-		}
211
-		
212
-		
213
-		$xfer += $output->writeFieldStop();
214
-		$xfer += $output->writeStructEnd();
215
-		return $xfer;
216
-	}
217
-	
218
-}
219
-
220
-?>

Разница между файлами не показана из-за своего большого размера
+ 0 - 2536
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionGoodsService.php


+ 0 - 78
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionGoodsServiceClient.php

@@ -1,78 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-$base_path = dirname(__FILE__).'/../../../../../../';
13
-require_once $base_path.'/Osp/Util/PathUtil.php';
14
-require_once $base_path.'/Osp/ClassLoader/ClassLoader.php';
15
-class UnionGoodsServiceClient{
16
-	
17
-	private static $isRegis;
18
-	private static $DEFAULT_PROXY_IP = "127.0.0.1";
19
-	private static $DEFAULT_PROXY_PORT = "2080";
20
-	
21
-	private static function regis(){
22
-		
23
-		$path = \Osp\Util\PathUtil::getRootPath ();
24
-		$nsLoader = new \Osp\ClassLoader\ClassLoader ();
25
-		$nsLoader->registerNamespace ( 'Thrift', $path );
26
-		$nsLoader->registerNamespace ( 'Osp', $path );
27
-		$nsLoader->registerNamespace ( 'com', $path );
28
-		$nsLoader->register ();
29
-	}
30
-	
31
-	
32
-	public static function getService(){
33
-		
34
-		if (! UnionGoodsServiceClient::$isRegis){
35
-			
36
-			UnionGoodsServiceClient::regis ();
37
-			UnionGoodsServiceClient::$isRegis = true;
38
-		}
39
-		
40
-		
41
-		$ctx = \Osp\Context\InvocationContextFactory::getInstance ();
42
-		$ip = UnionGoodsServiceClient::$DEFAULT_PROXY_IP;
43
-		$port = UnionGoodsServiceClient::$DEFAULT_PROXY_PORT;	
44
-		try{
45
-			
46
-			$envCfg = getenv ( "VIP_OSP_PROXY" );
47
-			$ipport = explode ( ":", $envCfg );
48
-			if (strlen ( $envCfg ) > 0 && count ( $ipport ) == 2){
49
-				
50
-				$ip = $ipport [0];
51
-				$port = $ipport [1];
52
-			}
53
-			
54
-		}
55
-		catch(\Exception $e){
56
-			
57
-			$ip = UnionGoodsServiceClient::$DEFAULT_PROXY_IP;
58
-			$port = UnionGoodsServiceClient::$DEFAULT_PROXY_PORT;
59
-		}
60
-		
61
-		if ($ctx->getCalleeIP () == null){
62
-			
63
-			$ctx->setCalleeIP ( $ip );
64
-		}
65
-		
66
-		if ($ctx->getCalleePort () == null){
67
-			
68
-			$ctx->setCalleePort ( $port );
69
-		}
70
-		
71
-		//$ctx->setProtocol ( \Osp\Protocol\OspProtocol::$Binary );
72
-		
73
-		return new \com\vip\adp\api\open\service\UnionGoodsServiceHelper();
74
-	}
75
-
76
-}
77
-
78
-?>

+ 0 - 22
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionGoodsServiceHelper.php

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-require_once dirname(__FILE__).'/UnionGoodsService.php';
13
-class UnionGoodsServiceHelper extends _UnionGoodsServiceClient{
14
-	
15
-	public function __construct(){
16
-		
17
-		parent::__construct();
18
-	}
19
-	
20
-}
21
-
22
-?>

+ 0 - 962
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionOrderService.php

@@ -1,962 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-interface UnionOrderServiceIf{
13
-	
14
-	
15
-	public function healthCheck();
16
-	
17
-	public function orderList(\com\vip\adp\api\open\service\OrderQueryModel $queryModel);
18
-	
19
-	public function orderListWithOauth(\com\vip\adp\api\open\service\OrderQueryModel $queryModel);
20
-	
21
-	public function refundOrderList(\com\vip\adp\api\open\service\RefundOrderRequest $request);
22
-	
23
-	public function refundOrderListWithOauth(\com\vip\adp\api\open\service\RefundOrderRequest $request);
24
-	
25
-}
26
-
27
-class _UnionOrderServiceClient extends \Osp\Base\OspStub implements \com\vip\adp\api\open\service\UnionOrderServiceIf{
28
-	
29
-	public function __construct(){
30
-		
31
-		parent::__construct("com.vip.adp.api.open.service.UnionOrderService", "1.0.0");
32
-	}
33
-	
34
-	
35
-	public function healthCheck(){
36
-		
37
-		$this->send_healthCheck();
38
-		return $this->recv_healthCheck();
39
-	}
40
-	
41
-	public function send_healthCheck(){
42
-		
43
-		$this->initInvocation("healthCheck");
44
-		$args = new \com\vip\adp\api\open\service\UnionOrderService_healthCheck_args();
45
-		
46
-		$this->send_base($args);
47
-	}
48
-	
49
-	public function recv_healthCheck(){
50
-		
51
-		$result = new \com\vip\adp\api\open\service\UnionOrderService_healthCheck_result();
52
-		$this->receive_base($result);
53
-		if ($result->success !== null){
54
-			
55
-			return $result->success;
56
-		}
57
-		
58
-	}
59
-	
60
-	
61
-	public function orderList(\com\vip\adp\api\open\service\OrderQueryModel $queryModel){
62
-		
63
-		$this->send_orderList( $queryModel);
64
-		return $this->recv_orderList();
65
-	}
66
-	
67
-	public function send_orderList(\com\vip\adp\api\open\service\OrderQueryModel $queryModel){
68
-		
69
-		$this->initInvocation("orderList");
70
-		$args = new \com\vip\adp\api\open\service\UnionOrderService_orderList_args();
71
-		
72
-		$args->queryModel = $queryModel;
73
-		
74
-		$this->send_base($args);
75
-	}
76
-	
77
-	public function recv_orderList(){
78
-		
79
-		$result = new \com\vip\adp\api\open\service\UnionOrderService_orderList_result();
80
-		$this->receive_base($result);
81
-		if ($result->success !== null){
82
-			
83
-			return $result->success;
84
-		}
85
-		
86
-	}
87
-	
88
-	
89
-	public function orderListWithOauth(\com\vip\adp\api\open\service\OrderQueryModel $queryModel){
90
-		
91
-		$this->send_orderListWithOauth( $queryModel);
92
-		return $this->recv_orderListWithOauth();
93
-	}
94
-	
95
-	public function send_orderListWithOauth(\com\vip\adp\api\open\service\OrderQueryModel $queryModel){
96
-		
97
-		$this->initInvocation("orderListWithOauth");
98
-		$args = new \com\vip\adp\api\open\service\UnionOrderService_orderListWithOauth_args();
99
-		
100
-		$args->queryModel = $queryModel;
101
-		
102
-		$this->send_base($args);
103
-	}
104
-	
105
-	public function recv_orderListWithOauth(){
106
-		
107
-		$result = new \com\vip\adp\api\open\service\UnionOrderService_orderListWithOauth_result();
108
-		$this->receive_base($result);
109
-		if ($result->success !== null){
110
-			
111
-			return $result->success;
112
-		}
113
-		
114
-	}
115
-	
116
-	
117
-	public function refundOrderList(\com\vip\adp\api\open\service\RefundOrderRequest $request){
118
-		
119
-		$this->send_refundOrderList( $request);
120
-		return $this->recv_refundOrderList();
121
-	}
122
-	
123
-	public function send_refundOrderList(\com\vip\adp\api\open\service\RefundOrderRequest $request){
124
-		
125
-		$this->initInvocation("refundOrderList");
126
-		$args = new \com\vip\adp\api\open\service\UnionOrderService_refundOrderList_args();
127
-		
128
-		$args->request = $request;
129
-		
130
-		$this->send_base($args);
131
-	}
132
-	
133
-	public function recv_refundOrderList(){
134
-		
135
-		$result = new \com\vip\adp\api\open\service\UnionOrderService_refundOrderList_result();
136
-		$this->receive_base($result);
137
-		if ($result->success !== null){
138
-			
139
-			return $result->success;
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function refundOrderListWithOauth(\com\vip\adp\api\open\service\RefundOrderRequest $request){
146
-		
147
-		$this->send_refundOrderListWithOauth( $request);
148
-		return $this->recv_refundOrderListWithOauth();
149
-	}
150
-	
151
-	public function send_refundOrderListWithOauth(\com\vip\adp\api\open\service\RefundOrderRequest $request){
152
-		
153
-		$this->initInvocation("refundOrderListWithOauth");
154
-		$args = new \com\vip\adp\api\open\service\UnionOrderService_refundOrderListWithOauth_args();
155
-		
156
-		$args->request = $request;
157
-		
158
-		$this->send_base($args);
159
-	}
160
-	
161
-	public function recv_refundOrderListWithOauth(){
162
-		
163
-		$result = new \com\vip\adp\api\open\service\UnionOrderService_refundOrderListWithOauth_result();
164
-		$this->receive_base($result);
165
-		if ($result->success !== null){
166
-			
167
-			return $result->success;
168
-		}
169
-		
170
-	}
171
-	
172
-	
173
-}
174
-
175
-
176
-
177
-
178
-class UnionOrderService_healthCheck_args {
179
-	
180
-	static $_TSPEC;
181
-	
182
-	public function __construct($vals=null){
183
-		
184
-		if (!isset(self::$_TSPEC)){
185
-			
186
-			self::$_TSPEC = array(
187
-			
188
-			);
189
-			
190
-		}
191
-		
192
-		if (is_array($vals)){
193
-			
194
-			
195
-		}
196
-		
197
-	}
198
-	
199
-	
200
-	public function read($input){
201
-		
202
-		
203
-		
204
-		
205
-		
206
-		
207
-	}
208
-	
209
-	public function write($output){
210
-		
211
-		$xfer = 0;
212
-		$xfer += $output->writeStructBegin();
213
-		
214
-		$xfer += $output->writeFieldStop();
215
-		$xfer += $output->writeStructEnd();
216
-		return $xfer;
217
-	}
218
-	
219
-}
220
-
221
-
222
-
223
-
224
-class UnionOrderService_orderList_args {
225
-	
226
-	static $_TSPEC;
227
-	public $queryModel = null;
228
-	
229
-	public function __construct($vals=null){
230
-		
231
-		if (!isset(self::$_TSPEC)){
232
-			
233
-			self::$_TSPEC = array(
234
-			1 => array(
235
-			'var' => 'queryModel'
236
-			),
237
-			
238
-			);
239
-			
240
-		}
241
-		
242
-		if (is_array($vals)){
243
-			
244
-			
245
-			if (isset($vals['queryModel'])){
246
-				
247
-				$this->queryModel = $vals['queryModel'];
248
-			}
249
-			
250
-			
251
-		}
252
-		
253
-	}
254
-	
255
-	
256
-	public function read($input){
257
-		
258
-		
259
-		
260
-		
261
-		if(true) {
262
-			
263
-			
264
-			$this->queryModel = new \com\vip\adp\api\open\service\OrderQueryModel();
265
-			$this->queryModel->read($input);
266
-			
267
-		}
268
-		
269
-		
270
-		
271
-		
272
-		
273
-		
274
-	}
275
-	
276
-	public function write($output){
277
-		
278
-		$xfer = 0;
279
-		$xfer += $output->writeStructBegin();
280
-		
281
-		if($this->queryModel !== null) {
282
-			
283
-			$xfer += $output->writeFieldBegin('queryModel');
284
-			
285
-			if (!is_object($this->queryModel)) {
286
-				
287
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
288
-			}
289
-			
290
-			$xfer += $this->queryModel->write($output);
291
-			
292
-			$xfer += $output->writeFieldEnd();
293
-		}
294
-		
295
-		
296
-		$xfer += $output->writeFieldStop();
297
-		$xfer += $output->writeStructEnd();
298
-		return $xfer;
299
-	}
300
-	
301
-}
302
-
303
-
304
-
305
-
306
-class UnionOrderService_orderListWithOauth_args {
307
-	
308
-	static $_TSPEC;
309
-	public $queryModel = null;
310
-	
311
-	public function __construct($vals=null){
312
-		
313
-		if (!isset(self::$_TSPEC)){
314
-			
315
-			self::$_TSPEC = array(
316
-			1 => array(
317
-			'var' => 'queryModel'
318
-			),
319
-			
320
-			);
321
-			
322
-		}
323
-		
324
-		if (is_array($vals)){
325
-			
326
-			
327
-			if (isset($vals['queryModel'])){
328
-				
329
-				$this->queryModel = $vals['queryModel'];
330
-			}
331
-			
332
-			
333
-		}
334
-		
335
-	}
336
-	
337
-	
338
-	public function read($input){
339
-		
340
-		
341
-		
342
-		
343
-		if(true) {
344
-			
345
-			
346
-			$this->queryModel = new \com\vip\adp\api\open\service\OrderQueryModel();
347
-			$this->queryModel->read($input);
348
-			
349
-		}
350
-		
351
-		
352
-		
353
-		
354
-		
355
-		
356
-	}
357
-	
358
-	public function write($output){
359
-		
360
-		$xfer = 0;
361
-		$xfer += $output->writeStructBegin();
362
-		
363
-		if($this->queryModel !== null) {
364
-			
365
-			$xfer += $output->writeFieldBegin('queryModel');
366
-			
367
-			if (!is_object($this->queryModel)) {
368
-				
369
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
370
-			}
371
-			
372
-			$xfer += $this->queryModel->write($output);
373
-			
374
-			$xfer += $output->writeFieldEnd();
375
-		}
376
-		
377
-		
378
-		$xfer += $output->writeFieldStop();
379
-		$xfer += $output->writeStructEnd();
380
-		return $xfer;
381
-	}
382
-	
383
-}
384
-
385
-
386
-
387
-
388
-class UnionOrderService_refundOrderList_args {
389
-	
390
-	static $_TSPEC;
391
-	public $request = null;
392
-	
393
-	public function __construct($vals=null){
394
-		
395
-		if (!isset(self::$_TSPEC)){
396
-			
397
-			self::$_TSPEC = array(
398
-			1 => array(
399
-			'var' => 'request'
400
-			),
401
-			
402
-			);
403
-			
404
-		}
405
-		
406
-		if (is_array($vals)){
407
-			
408
-			
409
-			if (isset($vals['request'])){
410
-				
411
-				$this->request = $vals['request'];
412
-			}
413
-			
414
-			
415
-		}
416
-		
417
-	}
418
-	
419
-	
420
-	public function read($input){
421
-		
422
-		
423
-		
424
-		
425
-		if(true) {
426
-			
427
-			
428
-			$this->request = new \com\vip\adp\api\open\service\RefundOrderRequest();
429
-			$this->request->read($input);
430
-			
431
-		}
432
-		
433
-		
434
-		
435
-		
436
-		
437
-		
438
-	}
439
-	
440
-	public function write($output){
441
-		
442
-		$xfer = 0;
443
-		$xfer += $output->writeStructBegin();
444
-		
445
-		if($this->request !== null) {
446
-			
447
-			$xfer += $output->writeFieldBegin('request');
448
-			
449
-			if (!is_object($this->request)) {
450
-				
451
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
452
-			}
453
-			
454
-			$xfer += $this->request->write($output);
455
-			
456
-			$xfer += $output->writeFieldEnd();
457
-		}
458
-		
459
-		
460
-		$xfer += $output->writeFieldStop();
461
-		$xfer += $output->writeStructEnd();
462
-		return $xfer;
463
-	}
464
-	
465
-}
466
-
467
-
468
-
469
-
470
-class UnionOrderService_refundOrderListWithOauth_args {
471
-	
472
-	static $_TSPEC;
473
-	public $request = null;
474
-	
475
-	public function __construct($vals=null){
476
-		
477
-		if (!isset(self::$_TSPEC)){
478
-			
479
-			self::$_TSPEC = array(
480
-			1 => array(
481
-			'var' => 'request'
482
-			),
483
-			
484
-			);
485
-			
486
-		}
487
-		
488
-		if (is_array($vals)){
489
-			
490
-			
491
-			if (isset($vals['request'])){
492
-				
493
-				$this->request = $vals['request'];
494
-			}
495
-			
496
-			
497
-		}
498
-		
499
-	}
500
-	
501
-	
502
-	public function read($input){
503
-		
504
-		
505
-		
506
-		
507
-		if(true) {
508
-			
509
-			
510
-			$this->request = new \com\vip\adp\api\open\service\RefundOrderRequest();
511
-			$this->request->read($input);
512
-			
513
-		}
514
-		
515
-		
516
-		
517
-		
518
-		
519
-		
520
-	}
521
-	
522
-	public function write($output){
523
-		
524
-		$xfer = 0;
525
-		$xfer += $output->writeStructBegin();
526
-		
527
-		if($this->request !== null) {
528
-			
529
-			$xfer += $output->writeFieldBegin('request');
530
-			
531
-			if (!is_object($this->request)) {
532
-				
533
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
534
-			}
535
-			
536
-			$xfer += $this->request->write($output);
537
-			
538
-			$xfer += $output->writeFieldEnd();
539
-		}
540
-		
541
-		
542
-		$xfer += $output->writeFieldStop();
543
-		$xfer += $output->writeStructEnd();
544
-		return $xfer;
545
-	}
546
-	
547
-}
548
-
549
-
550
-
551
-
552
-class UnionOrderService_healthCheck_result {
553
-	
554
-	static $_TSPEC;
555
-	public $success = null;
556
-	
557
-	public function __construct($vals=null){
558
-		
559
-		if (!isset(self::$_TSPEC)){
560
-			
561
-			self::$_TSPEC = array(
562
-			0 => array(
563
-			'var' => 'success'
564
-			),
565
-			
566
-			);
567
-			
568
-		}
569
-		
570
-		if (is_array($vals)){
571
-			
572
-			
573
-			if (isset($vals['success'])){
574
-				
575
-				$this->success = $vals['success'];
576
-			}
577
-			
578
-			
579
-		}
580
-		
581
-	}
582
-	
583
-	
584
-	public function read($input){
585
-		
586
-		
587
-		
588
-		
589
-		if(true) {
590
-			
591
-			
592
-			$this->success = new \com\vip\hermes\core\health\CheckResult();
593
-			$this->success->read($input);
594
-			
595
-		}
596
-		
597
-		
598
-		
599
-		
600
-		
601
-		
602
-	}
603
-	
604
-	public function write($output){
605
-		
606
-		$xfer = 0;
607
-		$xfer += $output->writeStructBegin();
608
-		
609
-		if($this->success !== null) {
610
-			
611
-			$xfer += $output->writeFieldBegin('success');
612
-			
613
-			if (!is_object($this->success)) {
614
-				
615
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
616
-			}
617
-			
618
-			$xfer += $this->success->write($output);
619
-			
620
-			$xfer += $output->writeFieldEnd();
621
-		}
622
-		
623
-		
624
-		$xfer += $output->writeFieldStop();
625
-		$xfer += $output->writeStructEnd();
626
-		return $xfer;
627
-	}
628
-	
629
-}
630
-
631
-
632
-
633
-
634
-class UnionOrderService_orderList_result {
635
-	
636
-	static $_TSPEC;
637
-	public $success = null;
638
-	
639
-	public function __construct($vals=null){
640
-		
641
-		if (!isset(self::$_TSPEC)){
642
-			
643
-			self::$_TSPEC = array(
644
-			0 => array(
645
-			'var' => 'success'
646
-			),
647
-			
648
-			);
649
-			
650
-		}
651
-		
652
-		if (is_array($vals)){
653
-			
654
-			
655
-			if (isset($vals['success'])){
656
-				
657
-				$this->success = $vals['success'];
658
-			}
659
-			
660
-			
661
-		}
662
-		
663
-	}
664
-	
665
-	
666
-	public function read($input){
667
-		
668
-		
669
-		
670
-		
671
-		if(true) {
672
-			
673
-			
674
-			$this->success = new \com\vip\adp\api\open\service\OrderResponse();
675
-			$this->success->read($input);
676
-			
677
-		}
678
-		
679
-		
680
-		
681
-		
682
-		
683
-		
684
-	}
685
-	
686
-	public function write($output){
687
-		
688
-		$xfer = 0;
689
-		$xfer += $output->writeStructBegin();
690
-		
691
-		if($this->success !== null) {
692
-			
693
-			$xfer += $output->writeFieldBegin('success');
694
-			
695
-			if (!is_object($this->success)) {
696
-				
697
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
698
-			}
699
-			
700
-			$xfer += $this->success->write($output);
701
-			
702
-			$xfer += $output->writeFieldEnd();
703
-		}
704
-		
705
-		
706
-		$xfer += $output->writeFieldStop();
707
-		$xfer += $output->writeStructEnd();
708
-		return $xfer;
709
-	}
710
-	
711
-}
712
-
713
-
714
-
715
-
716
-class UnionOrderService_orderListWithOauth_result {
717
-	
718
-	static $_TSPEC;
719
-	public $success = null;
720
-	
721
-	public function __construct($vals=null){
722
-		
723
-		if (!isset(self::$_TSPEC)){
724
-			
725
-			self::$_TSPEC = array(
726
-			0 => array(
727
-			'var' => 'success'
728
-			),
729
-			
730
-			);
731
-			
732
-		}
733
-		
734
-		if (is_array($vals)){
735
-			
736
-			
737
-			if (isset($vals['success'])){
738
-				
739
-				$this->success = $vals['success'];
740
-			}
741
-			
742
-			
743
-		}
744
-		
745
-	}
746
-	
747
-	
748
-	public function read($input){
749
-		
750
-		
751
-		
752
-		
753
-		if(true) {
754
-			
755
-			
756
-			$this->success = new \com\vip\adp\api\open\service\OrderResponse();
757
-			$this->success->read($input);
758
-			
759
-		}
760
-		
761
-		
762
-		
763
-		
764
-		
765
-		
766
-	}
767
-	
768
-	public function write($output){
769
-		
770
-		$xfer = 0;
771
-		$xfer += $output->writeStructBegin();
772
-		
773
-		if($this->success !== null) {
774
-			
775
-			$xfer += $output->writeFieldBegin('success');
776
-			
777
-			if (!is_object($this->success)) {
778
-				
779
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
780
-			}
781
-			
782
-			$xfer += $this->success->write($output);
783
-			
784
-			$xfer += $output->writeFieldEnd();
785
-		}
786
-		
787
-		
788
-		$xfer += $output->writeFieldStop();
789
-		$xfer += $output->writeStructEnd();
790
-		return $xfer;
791
-	}
792
-	
793
-}
794
-
795
-
796
-
797
-
798
-class UnionOrderService_refundOrderList_result {
799
-	
800
-	static $_TSPEC;
801
-	public $success = null;
802
-	
803
-	public function __construct($vals=null){
804
-		
805
-		if (!isset(self::$_TSPEC)){
806
-			
807
-			self::$_TSPEC = array(
808
-			0 => array(
809
-			'var' => 'success'
810
-			),
811
-			
812
-			);
813
-			
814
-		}
815
-		
816
-		if (is_array($vals)){
817
-			
818
-			
819
-			if (isset($vals['success'])){
820
-				
821
-				$this->success = $vals['success'];
822
-			}
823
-			
824
-			
825
-		}
826
-		
827
-	}
828
-	
829
-	
830
-	public function read($input){
831
-		
832
-		
833
-		
834
-		
835
-		if(true) {
836
-			
837
-			
838
-			$this->success = new \com\vip\adp\api\open\service\RefundOrderResponse();
839
-			$this->success->read($input);
840
-			
841
-		}
842
-		
843
-		
844
-		
845
-		
846
-		
847
-		
848
-	}
849
-	
850
-	public function write($output){
851
-		
852
-		$xfer = 0;
853
-		$xfer += $output->writeStructBegin();
854
-		
855
-		if($this->success !== null) {
856
-			
857
-			$xfer += $output->writeFieldBegin('success');
858
-			
859
-			if (!is_object($this->success)) {
860
-				
861
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
862
-			}
863
-			
864
-			$xfer += $this->success->write($output);
865
-			
866
-			$xfer += $output->writeFieldEnd();
867
-		}
868
-		
869
-		
870
-		$xfer += $output->writeFieldStop();
871
-		$xfer += $output->writeStructEnd();
872
-		return $xfer;
873
-	}
874
-	
875
-}
876
-
877
-
878
-
879
-
880
-class UnionOrderService_refundOrderListWithOauth_result {
881
-	
882
-	static $_TSPEC;
883
-	public $success = null;
884
-	
885
-	public function __construct($vals=null){
886
-		
887
-		if (!isset(self::$_TSPEC)){
888
-			
889
-			self::$_TSPEC = array(
890
-			0 => array(
891
-			'var' => 'success'
892
-			),
893
-			
894
-			);
895
-			
896
-		}
897
-		
898
-		if (is_array($vals)){
899
-			
900
-			
901
-			if (isset($vals['success'])){
902
-				
903
-				$this->success = $vals['success'];
904
-			}
905
-			
906
-			
907
-		}
908
-		
909
-	}
910
-	
911
-	
912
-	public function read($input){
913
-		
914
-		
915
-		
916
-		
917
-		if(true) {
918
-			
919
-			
920
-			$this->success = new \com\vip\adp\api\open\service\RefundOrderResponse();
921
-			$this->success->read($input);
922
-			
923
-		}
924
-		
925
-		
926
-		
927
-		
928
-		
929
-		
930
-	}
931
-	
932
-	public function write($output){
933
-		
934
-		$xfer = 0;
935
-		$xfer += $output->writeStructBegin();
936
-		
937
-		if($this->success !== null) {
938
-			
939
-			$xfer += $output->writeFieldBegin('success');
940
-			
941
-			if (!is_object($this->success)) {
942
-				
943
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
944
-			}
945
-			
946
-			$xfer += $this->success->write($output);
947
-			
948
-			$xfer += $output->writeFieldEnd();
949
-		}
950
-		
951
-		
952
-		$xfer += $output->writeFieldStop();
953
-		$xfer += $output->writeStructEnd();
954
-		return $xfer;
955
-	}
956
-	
957
-}
958
-
959
-
960
-
961
-
962
-?>

+ 0 - 78
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionOrderServiceClient.php

@@ -1,78 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-$base_path = dirname(__FILE__).'/../../../../../../';
13
-require_once $base_path.'/Osp/Util/PathUtil.php';
14
-require_once $base_path.'/Osp/ClassLoader/ClassLoader.php';
15
-class UnionOrderServiceClient{
16
-	
17
-	private static $isRegis;
18
-	private static $DEFAULT_PROXY_IP = "127.0.0.1";
19
-	private static $DEFAULT_PROXY_PORT = "2080";
20
-	
21
-	private static function regis(){
22
-		
23
-		$path = \Osp\Util\PathUtil::getRootPath ();
24
-		$nsLoader = new \Osp\ClassLoader\ClassLoader ();
25
-		$nsLoader->registerNamespace ( 'Thrift', $path );
26
-		$nsLoader->registerNamespace ( 'Osp', $path );
27
-		$nsLoader->registerNamespace ( 'com', $path );
28
-		$nsLoader->register ();
29
-	}
30
-	
31
-	
32
-	public static function getService(){
33
-		
34
-		if (! UnionOrderServiceClient::$isRegis){
35
-			
36
-			UnionOrderServiceClient::regis ();
37
-			UnionOrderServiceClient::$isRegis = true;
38
-		}
39
-		
40
-		
41
-		$ctx = \Osp\Context\InvocationContextFactory::getInstance ();
42
-		$ip = UnionOrderServiceClient::$DEFAULT_PROXY_IP;
43
-		$port = UnionOrderServiceClient::$DEFAULT_PROXY_PORT;	
44
-		try{
45
-			
46
-			$envCfg = getenv ( "VIP_OSP_PROXY" );
47
-			$ipport = explode ( ":", $envCfg );
48
-			if (strlen ( $envCfg ) > 0 && count ( $ipport ) == 2){
49
-				
50
-				$ip = $ipport [0];
51
-				$port = $ipport [1];
52
-			}
53
-			
54
-		}
55
-		catch(\Exception $e){
56
-			
57
-			$ip = UnionOrderServiceClient::$DEFAULT_PROXY_IP;
58
-			$port = UnionOrderServiceClient::$DEFAULT_PROXY_PORT;
59
-		}
60
-		
61
-		if ($ctx->getCalleeIP () == null){
62
-			
63
-			$ctx->setCalleeIP ( $ip );
64
-		}
65
-		
66
-		if ($ctx->getCalleePort () == null){
67
-			
68
-			$ctx->setCalleePort ( $port );
69
-		}
70
-		
71
-		//$ctx->setProtocol ( \Osp\Protocol\OspProtocol::$Binary );
72
-		
73
-		return new \com\vip\adp\api\open\service\UnionOrderServiceHelper();
74
-	}
75
-	
76
-}
77
-
78
-?>

+ 0 - 22
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionOrderServiceHelper.php

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-require_once dirname(__FILE__).'/UnionOrderService.php';
13
-class UnionOrderServiceHelper extends _UnionOrderServiceClient{
14
-	
15
-	public function __construct(){
16
-		
17
-		parent::__construct();
18
-	}
19
-	
20
-}
21
-
22
-?>

+ 0 - 962
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPidService.php

@@ -1,962 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-interface UnionPidServiceIf{
13
-	
14
-	
15
-	public function genPid(\com\vip\adp\api\open\service\PidGenRequest $pidGenRequest);
16
-	
17
-	public function genPidWithOauth(\com\vip\adp\api\open\service\PidGenRequest $pidGenRequest);
18
-	
19
-	public function healthCheck();
20
-	
21
-	public function queryPid(\com\vip\adp\api\open\service\PidQueryRequest $pidQueryRequest);
22
-	
23
-	public function queryPidWithOauth(\com\vip\adp\api\open\service\PidQueryRequest $pidQueryRequest);
24
-	
25
-}
26
-
27
-class _UnionPidServiceClient extends \Osp\Base\OspStub implements \com\vip\adp\api\open\service\UnionPidServiceIf{
28
-	
29
-	public function __construct(){
30
-		
31
-		parent::__construct("com.vip.adp.api.open.service.UnionPidService", "1.0.0");
32
-	}
33
-	
34
-	
35
-	public function genPid(\com\vip\adp\api\open\service\PidGenRequest $pidGenRequest){
36
-		
37
-		$this->send_genPid( $pidGenRequest);
38
-		return $this->recv_genPid();
39
-	}
40
-	
41
-	public function send_genPid(\com\vip\adp\api\open\service\PidGenRequest $pidGenRequest){
42
-		
43
-		$this->initInvocation("genPid");
44
-		$args = new \com\vip\adp\api\open\service\UnionPidService_genPid_args();
45
-		
46
-		$args->pidGenRequest = $pidGenRequest;
47
-		
48
-		$this->send_base($args);
49
-	}
50
-	
51
-	public function recv_genPid(){
52
-		
53
-		$result = new \com\vip\adp\api\open\service\UnionPidService_genPid_result();
54
-		$this->receive_base($result);
55
-		if ($result->success !== null){
56
-			
57
-			return $result->success;
58
-		}
59
-		
60
-	}
61
-	
62
-	
63
-	public function genPidWithOauth(\com\vip\adp\api\open\service\PidGenRequest $pidGenRequest){
64
-		
65
-		$this->send_genPidWithOauth( $pidGenRequest);
66
-		return $this->recv_genPidWithOauth();
67
-	}
68
-	
69
-	public function send_genPidWithOauth(\com\vip\adp\api\open\service\PidGenRequest $pidGenRequest){
70
-		
71
-		$this->initInvocation("genPidWithOauth");
72
-		$args = new \com\vip\adp\api\open\service\UnionPidService_genPidWithOauth_args();
73
-		
74
-		$args->pidGenRequest = $pidGenRequest;
75
-		
76
-		$this->send_base($args);
77
-	}
78
-	
79
-	public function recv_genPidWithOauth(){
80
-		
81
-		$result = new \com\vip\adp\api\open\service\UnionPidService_genPidWithOauth_result();
82
-		$this->receive_base($result);
83
-		if ($result->success !== null){
84
-			
85
-			return $result->success;
86
-		}
87
-		
88
-	}
89
-	
90
-	
91
-	public function healthCheck(){
92
-		
93
-		$this->send_healthCheck();
94
-		return $this->recv_healthCheck();
95
-	}
96
-	
97
-	public function send_healthCheck(){
98
-		
99
-		$this->initInvocation("healthCheck");
100
-		$args = new \com\vip\adp\api\open\service\UnionPidService_healthCheck_args();
101
-		
102
-		$this->send_base($args);
103
-	}
104
-	
105
-	public function recv_healthCheck(){
106
-		
107
-		$result = new \com\vip\adp\api\open\service\UnionPidService_healthCheck_result();
108
-		$this->receive_base($result);
109
-		if ($result->success !== null){
110
-			
111
-			return $result->success;
112
-		}
113
-		
114
-	}
115
-	
116
-	
117
-	public function queryPid(\com\vip\adp\api\open\service\PidQueryRequest $pidQueryRequest){
118
-		
119
-		$this->send_queryPid( $pidQueryRequest);
120
-		return $this->recv_queryPid();
121
-	}
122
-	
123
-	public function send_queryPid(\com\vip\adp\api\open\service\PidQueryRequest $pidQueryRequest){
124
-		
125
-		$this->initInvocation("queryPid");
126
-		$args = new \com\vip\adp\api\open\service\UnionPidService_queryPid_args();
127
-		
128
-		$args->pidQueryRequest = $pidQueryRequest;
129
-		
130
-		$this->send_base($args);
131
-	}
132
-	
133
-	public function recv_queryPid(){
134
-		
135
-		$result = new \com\vip\adp\api\open\service\UnionPidService_queryPid_result();
136
-		$this->receive_base($result);
137
-		if ($result->success !== null){
138
-			
139
-			return $result->success;
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function queryPidWithOauth(\com\vip\adp\api\open\service\PidQueryRequest $pidQueryRequest){
146
-		
147
-		$this->send_queryPidWithOauth( $pidQueryRequest);
148
-		return $this->recv_queryPidWithOauth();
149
-	}
150
-	
151
-	public function send_queryPidWithOauth(\com\vip\adp\api\open\service\PidQueryRequest $pidQueryRequest){
152
-		
153
-		$this->initInvocation("queryPidWithOauth");
154
-		$args = new \com\vip\adp\api\open\service\UnionPidService_queryPidWithOauth_args();
155
-		
156
-		$args->pidQueryRequest = $pidQueryRequest;
157
-		
158
-		$this->send_base($args);
159
-	}
160
-	
161
-	public function recv_queryPidWithOauth(){
162
-		
163
-		$result = new \com\vip\adp\api\open\service\UnionPidService_queryPidWithOauth_result();
164
-		$this->receive_base($result);
165
-		if ($result->success !== null){
166
-			
167
-			return $result->success;
168
-		}
169
-		
170
-	}
171
-	
172
-	
173
-}
174
-
175
-
176
-
177
-
178
-class UnionPidService_genPid_args {
179
-	
180
-	static $_TSPEC;
181
-	public $pidGenRequest = null;
182
-	
183
-	public function __construct($vals=null){
184
-		
185
-		if (!isset(self::$_TSPEC)){
186
-			
187
-			self::$_TSPEC = array(
188
-			1 => array(
189
-			'var' => 'pidGenRequest'
190
-			),
191
-			
192
-			);
193
-			
194
-		}
195
-		
196
-		if (is_array($vals)){
197
-			
198
-			
199
-			if (isset($vals['pidGenRequest'])){
200
-				
201
-				$this->pidGenRequest = $vals['pidGenRequest'];
202
-			}
203
-			
204
-			
205
-		}
206
-		
207
-	}
208
-	
209
-	
210
-	public function read($input){
211
-		
212
-		
213
-		
214
-		
215
-		if(true) {
216
-			
217
-			
218
-			$this->pidGenRequest = new \com\vip\adp\api\open\service\PidGenRequest();
219
-			$this->pidGenRequest->read($input);
220
-			
221
-		}
222
-		
223
-		
224
-		
225
-		
226
-		
227
-		
228
-	}
229
-	
230
-	public function write($output){
231
-		
232
-		$xfer = 0;
233
-		$xfer += $output->writeStructBegin();
234
-		
235
-		if($this->pidGenRequest !== null) {
236
-			
237
-			$xfer += $output->writeFieldBegin('pidGenRequest');
238
-			
239
-			if (!is_object($this->pidGenRequest)) {
240
-				
241
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
242
-			}
243
-			
244
-			$xfer += $this->pidGenRequest->write($output);
245
-			
246
-			$xfer += $output->writeFieldEnd();
247
-		}
248
-		
249
-		
250
-		$xfer += $output->writeFieldStop();
251
-		$xfer += $output->writeStructEnd();
252
-		return $xfer;
253
-	}
254
-	
255
-}
256
-
257
-
258
-
259
-
260
-class UnionPidService_genPidWithOauth_args {
261
-	
262
-	static $_TSPEC;
263
-	public $pidGenRequest = null;
264
-	
265
-	public function __construct($vals=null){
266
-		
267
-		if (!isset(self::$_TSPEC)){
268
-			
269
-			self::$_TSPEC = array(
270
-			1 => array(
271
-			'var' => 'pidGenRequest'
272
-			),
273
-			
274
-			);
275
-			
276
-		}
277
-		
278
-		if (is_array($vals)){
279
-			
280
-			
281
-			if (isset($vals['pidGenRequest'])){
282
-				
283
-				$this->pidGenRequest = $vals['pidGenRequest'];
284
-			}
285
-			
286
-			
287
-		}
288
-		
289
-	}
290
-	
291
-	
292
-	public function read($input){
293
-		
294
-		
295
-		
296
-		
297
-		if(true) {
298
-			
299
-			
300
-			$this->pidGenRequest = new \com\vip\adp\api\open\service\PidGenRequest();
301
-			$this->pidGenRequest->read($input);
302
-			
303
-		}
304
-		
305
-		
306
-		
307
-		
308
-		
309
-		
310
-	}
311
-	
312
-	public function write($output){
313
-		
314
-		$xfer = 0;
315
-		$xfer += $output->writeStructBegin();
316
-		
317
-		if($this->pidGenRequest !== null) {
318
-			
319
-			$xfer += $output->writeFieldBegin('pidGenRequest');
320
-			
321
-			if (!is_object($this->pidGenRequest)) {
322
-				
323
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
324
-			}
325
-			
326
-			$xfer += $this->pidGenRequest->write($output);
327
-			
328
-			$xfer += $output->writeFieldEnd();
329
-		}
330
-		
331
-		
332
-		$xfer += $output->writeFieldStop();
333
-		$xfer += $output->writeStructEnd();
334
-		return $xfer;
335
-	}
336
-	
337
-}
338
-
339
-
340
-
341
-
342
-class UnionPidService_healthCheck_args {
343
-	
344
-	static $_TSPEC;
345
-	
346
-	public function __construct($vals=null){
347
-		
348
-		if (!isset(self::$_TSPEC)){
349
-			
350
-			self::$_TSPEC = array(
351
-			
352
-			);
353
-			
354
-		}
355
-		
356
-		if (is_array($vals)){
357
-			
358
-			
359
-		}
360
-		
361
-	}
362
-	
363
-	
364
-	public function read($input){
365
-		
366
-		
367
-		
368
-		
369
-		
370
-		
371
-	}
372
-	
373
-	public function write($output){
374
-		
375
-		$xfer = 0;
376
-		$xfer += $output->writeStructBegin();
377
-		
378
-		$xfer += $output->writeFieldStop();
379
-		$xfer += $output->writeStructEnd();
380
-		return $xfer;
381
-	}
382
-	
383
-}
384
-
385
-
386
-
387
-
388
-class UnionPidService_queryPid_args {
389
-	
390
-	static $_TSPEC;
391
-	public $pidQueryRequest = null;
392
-	
393
-	public function __construct($vals=null){
394
-		
395
-		if (!isset(self::$_TSPEC)){
396
-			
397
-			self::$_TSPEC = array(
398
-			1 => array(
399
-			'var' => 'pidQueryRequest'
400
-			),
401
-			
402
-			);
403
-			
404
-		}
405
-		
406
-		if (is_array($vals)){
407
-			
408
-			
409
-			if (isset($vals['pidQueryRequest'])){
410
-				
411
-				$this->pidQueryRequest = $vals['pidQueryRequest'];
412
-			}
413
-			
414
-			
415
-		}
416
-		
417
-	}
418
-	
419
-	
420
-	public function read($input){
421
-		
422
-		
423
-		
424
-		
425
-		if(true) {
426
-			
427
-			
428
-			$this->pidQueryRequest = new \com\vip\adp\api\open\service\PidQueryRequest();
429
-			$this->pidQueryRequest->read($input);
430
-			
431
-		}
432
-		
433
-		
434
-		
435
-		
436
-		
437
-		
438
-	}
439
-	
440
-	public function write($output){
441
-		
442
-		$xfer = 0;
443
-		$xfer += $output->writeStructBegin();
444
-		
445
-		if($this->pidQueryRequest !== null) {
446
-			
447
-			$xfer += $output->writeFieldBegin('pidQueryRequest');
448
-			
449
-			if (!is_object($this->pidQueryRequest)) {
450
-				
451
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
452
-			}
453
-			
454
-			$xfer += $this->pidQueryRequest->write($output);
455
-			
456
-			$xfer += $output->writeFieldEnd();
457
-		}
458
-		
459
-		
460
-		$xfer += $output->writeFieldStop();
461
-		$xfer += $output->writeStructEnd();
462
-		return $xfer;
463
-	}
464
-	
465
-}
466
-
467
-
468
-
469
-
470
-class UnionPidService_queryPidWithOauth_args {
471
-	
472
-	static $_TSPEC;
473
-	public $pidQueryRequest = null;
474
-	
475
-	public function __construct($vals=null){
476
-		
477
-		if (!isset(self::$_TSPEC)){
478
-			
479
-			self::$_TSPEC = array(
480
-			1 => array(
481
-			'var' => 'pidQueryRequest'
482
-			),
483
-			
484
-			);
485
-			
486
-		}
487
-		
488
-		if (is_array($vals)){
489
-			
490
-			
491
-			if (isset($vals['pidQueryRequest'])){
492
-				
493
-				$this->pidQueryRequest = $vals['pidQueryRequest'];
494
-			}
495
-			
496
-			
497
-		}
498
-		
499
-	}
500
-	
501
-	
502
-	public function read($input){
503
-		
504
-		
505
-		
506
-		
507
-		if(true) {
508
-			
509
-			
510
-			$this->pidQueryRequest = new \com\vip\adp\api\open\service\PidQueryRequest();
511
-			$this->pidQueryRequest->read($input);
512
-			
513
-		}
514
-		
515
-		
516
-		
517
-		
518
-		
519
-		
520
-	}
521
-	
522
-	public function write($output){
523
-		
524
-		$xfer = 0;
525
-		$xfer += $output->writeStructBegin();
526
-		
527
-		if($this->pidQueryRequest !== null) {
528
-			
529
-			$xfer += $output->writeFieldBegin('pidQueryRequest');
530
-			
531
-			if (!is_object($this->pidQueryRequest)) {
532
-				
533
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
534
-			}
535
-			
536
-			$xfer += $this->pidQueryRequest->write($output);
537
-			
538
-			$xfer += $output->writeFieldEnd();
539
-		}
540
-		
541
-		
542
-		$xfer += $output->writeFieldStop();
543
-		$xfer += $output->writeStructEnd();
544
-		return $xfer;
545
-	}
546
-	
547
-}
548
-
549
-
550
-
551
-
552
-class UnionPidService_genPid_result {
553
-	
554
-	static $_TSPEC;
555
-	public $success = null;
556
-	
557
-	public function __construct($vals=null){
558
-		
559
-		if (!isset(self::$_TSPEC)){
560
-			
561
-			self::$_TSPEC = array(
562
-			0 => array(
563
-			'var' => 'success'
564
-			),
565
-			
566
-			);
567
-			
568
-		}
569
-		
570
-		if (is_array($vals)){
571
-			
572
-			
573
-			if (isset($vals['success'])){
574
-				
575
-				$this->success = $vals['success'];
576
-			}
577
-			
578
-			
579
-		}
580
-		
581
-	}
582
-	
583
-	
584
-	public function read($input){
585
-		
586
-		
587
-		
588
-		
589
-		if(true) {
590
-			
591
-			
592
-			$this->success = new \com\vip\adp\api\open\service\CpsUnionPidGenResponse();
593
-			$this->success->read($input);
594
-			
595
-		}
596
-		
597
-		
598
-		
599
-		
600
-		
601
-		
602
-	}
603
-	
604
-	public function write($output){
605
-		
606
-		$xfer = 0;
607
-		$xfer += $output->writeStructBegin();
608
-		
609
-		if($this->success !== null) {
610
-			
611
-			$xfer += $output->writeFieldBegin('success');
612
-			
613
-			if (!is_object($this->success)) {
614
-				
615
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
616
-			}
617
-			
618
-			$xfer += $this->success->write($output);
619
-			
620
-			$xfer += $output->writeFieldEnd();
621
-		}
622
-		
623
-		
624
-		$xfer += $output->writeFieldStop();
625
-		$xfer += $output->writeStructEnd();
626
-		return $xfer;
627
-	}
628
-	
629
-}
630
-
631
-
632
-
633
-
634
-class UnionPidService_genPidWithOauth_result {
635
-	
636
-	static $_TSPEC;
637
-	public $success = null;
638
-	
639
-	public function __construct($vals=null){
640
-		
641
-		if (!isset(self::$_TSPEC)){
642
-			
643
-			self::$_TSPEC = array(
644
-			0 => array(
645
-			'var' => 'success'
646
-			),
647
-			
648
-			);
649
-			
650
-		}
651
-		
652
-		if (is_array($vals)){
653
-			
654
-			
655
-			if (isset($vals['success'])){
656
-				
657
-				$this->success = $vals['success'];
658
-			}
659
-			
660
-			
661
-		}
662
-		
663
-	}
664
-	
665
-	
666
-	public function read($input){
667
-		
668
-		
669
-		
670
-		
671
-		if(true) {
672
-			
673
-			
674
-			$this->success = new \com\vip\adp\api\open\service\CpsUnionPidGenResponse();
675
-			$this->success->read($input);
676
-			
677
-		}
678
-		
679
-		
680
-		
681
-		
682
-		
683
-		
684
-	}
685
-	
686
-	public function write($output){
687
-		
688
-		$xfer = 0;
689
-		$xfer += $output->writeStructBegin();
690
-		
691
-		if($this->success !== null) {
692
-			
693
-			$xfer += $output->writeFieldBegin('success');
694
-			
695
-			if (!is_object($this->success)) {
696
-				
697
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
698
-			}
699
-			
700
-			$xfer += $this->success->write($output);
701
-			
702
-			$xfer += $output->writeFieldEnd();
703
-		}
704
-		
705
-		
706
-		$xfer += $output->writeFieldStop();
707
-		$xfer += $output->writeStructEnd();
708
-		return $xfer;
709
-	}
710
-	
711
-}
712
-
713
-
714
-
715
-
716
-class UnionPidService_healthCheck_result {
717
-	
718
-	static $_TSPEC;
719
-	public $success = null;
720
-	
721
-	public function __construct($vals=null){
722
-		
723
-		if (!isset(self::$_TSPEC)){
724
-			
725
-			self::$_TSPEC = array(
726
-			0 => array(
727
-			'var' => 'success'
728
-			),
729
-			
730
-			);
731
-			
732
-		}
733
-		
734
-		if (is_array($vals)){
735
-			
736
-			
737
-			if (isset($vals['success'])){
738
-				
739
-				$this->success = $vals['success'];
740
-			}
741
-			
742
-			
743
-		}
744
-		
745
-	}
746
-	
747
-	
748
-	public function read($input){
749
-		
750
-		
751
-		
752
-		
753
-		if(true) {
754
-			
755
-			
756
-			$this->success = new \com\vip\hermes\core\health\CheckResult();
757
-			$this->success->read($input);
758
-			
759
-		}
760
-		
761
-		
762
-		
763
-		
764
-		
765
-		
766
-	}
767
-	
768
-	public function write($output){
769
-		
770
-		$xfer = 0;
771
-		$xfer += $output->writeStructBegin();
772
-		
773
-		if($this->success !== null) {
774
-			
775
-			$xfer += $output->writeFieldBegin('success');
776
-			
777
-			if (!is_object($this->success)) {
778
-				
779
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
780
-			}
781
-			
782
-			$xfer += $this->success->write($output);
783
-			
784
-			$xfer += $output->writeFieldEnd();
785
-		}
786
-		
787
-		
788
-		$xfer += $output->writeFieldStop();
789
-		$xfer += $output->writeStructEnd();
790
-		return $xfer;
791
-	}
792
-	
793
-}
794
-
795
-
796
-
797
-
798
-class UnionPidService_queryPid_result {
799
-	
800
-	static $_TSPEC;
801
-	public $success = null;
802
-	
803
-	public function __construct($vals=null){
804
-		
805
-		if (!isset(self::$_TSPEC)){
806
-			
807
-			self::$_TSPEC = array(
808
-			0 => array(
809
-			'var' => 'success'
810
-			),
811
-			
812
-			);
813
-			
814
-		}
815
-		
816
-		if (is_array($vals)){
817
-			
818
-			
819
-			if (isset($vals['success'])){
820
-				
821
-				$this->success = $vals['success'];
822
-			}
823
-			
824
-			
825
-		}
826
-		
827
-	}
828
-	
829
-	
830
-	public function read($input){
831
-		
832
-		
833
-		
834
-		
835
-		if(true) {
836
-			
837
-			
838
-			$this->success = new \com\vip\adp\api\open\service\CpsUnionPidQueryResponse();
839
-			$this->success->read($input);
840
-			
841
-		}
842
-		
843
-		
844
-		
845
-		
846
-		
847
-		
848
-	}
849
-	
850
-	public function write($output){
851
-		
852
-		$xfer = 0;
853
-		$xfer += $output->writeStructBegin();
854
-		
855
-		if($this->success !== null) {
856
-			
857
-			$xfer += $output->writeFieldBegin('success');
858
-			
859
-			if (!is_object($this->success)) {
860
-				
861
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
862
-			}
863
-			
864
-			$xfer += $this->success->write($output);
865
-			
866
-			$xfer += $output->writeFieldEnd();
867
-		}
868
-		
869
-		
870
-		$xfer += $output->writeFieldStop();
871
-		$xfer += $output->writeStructEnd();
872
-		return $xfer;
873
-	}
874
-	
875
-}
876
-
877
-
878
-
879
-
880
-class UnionPidService_queryPidWithOauth_result {
881
-	
882
-	static $_TSPEC;
883
-	public $success = null;
884
-	
885
-	public function __construct($vals=null){
886
-		
887
-		if (!isset(self::$_TSPEC)){
888
-			
889
-			self::$_TSPEC = array(
890
-			0 => array(
891
-			'var' => 'success'
892
-			),
893
-			
894
-			);
895
-			
896
-		}
897
-		
898
-		if (is_array($vals)){
899
-			
900
-			
901
-			if (isset($vals['success'])){
902
-				
903
-				$this->success = $vals['success'];
904
-			}
905
-			
906
-			
907
-		}
908
-		
909
-	}
910
-	
911
-	
912
-	public function read($input){
913
-		
914
-		
915
-		
916
-		
917
-		if(true) {
918
-			
919
-			
920
-			$this->success = new \com\vip\adp\api\open\service\CpsUnionPidQueryResponse();
921
-			$this->success->read($input);
922
-			
923
-		}
924
-		
925
-		
926
-		
927
-		
928
-		
929
-		
930
-	}
931
-	
932
-	public function write($output){
933
-		
934
-		$xfer = 0;
935
-		$xfer += $output->writeStructBegin();
936
-		
937
-		if($this->success !== null) {
938
-			
939
-			$xfer += $output->writeFieldBegin('success');
940
-			
941
-			if (!is_object($this->success)) {
942
-				
943
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
944
-			}
945
-			
946
-			$xfer += $this->success->write($output);
947
-			
948
-			$xfer += $output->writeFieldEnd();
949
-		}
950
-		
951
-		
952
-		$xfer += $output->writeFieldStop();
953
-		$xfer += $output->writeStructEnd();
954
-		return $xfer;
955
-	}
956
-	
957
-}
958
-
959
-
960
-
961
-
962
-?>

+ 0 - 78
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPidServiceClient.php

@@ -1,78 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-$base_path = dirname(__FILE__).'/../../../../../../';
13
-require_once $base_path.'/Osp/Util/PathUtil.php';
14
-require_once $base_path.'/Osp/ClassLoader/ClassLoader.php';
15
-class UnionPidServiceClient{
16
-	
17
-	private static $isRegis;
18
-	private static $DEFAULT_PROXY_IP = "127.0.0.1";
19
-	private static $DEFAULT_PROXY_PORT = "2080";
20
-	
21
-	private static function regis(){
22
-		
23
-		$path = \Osp\Util\PathUtil::getRootPath ();
24
-		$nsLoader = new \Osp\ClassLoader\ClassLoader ();
25
-		$nsLoader->registerNamespace ( 'Thrift', $path );
26
-		$nsLoader->registerNamespace ( 'Osp', $path );
27
-		$nsLoader->registerNamespace ( 'com', $path );
28
-		$nsLoader->register ();
29
-	}
30
-	
31
-	
32
-	public static function getService(){
33
-		
34
-		if (! UnionPidServiceClient::$isRegis){
35
-			
36
-			UnionPidServiceClient::regis ();
37
-			UnionPidServiceClient::$isRegis = true;
38
-		}
39
-		
40
-		
41
-		$ctx = \Osp\Context\InvocationContextFactory::getInstance ();
42
-		$ip = UnionPidServiceClient::$DEFAULT_PROXY_IP;
43
-		$port = UnionPidServiceClient::$DEFAULT_PROXY_PORT;	
44
-		try{
45
-			
46
-			$envCfg = getenv ( "VIP_OSP_PROXY" );
47
-			$ipport = explode ( ":", $envCfg );
48
-			if (strlen ( $envCfg ) > 0 && count ( $ipport ) == 2){
49
-				
50
-				$ip = $ipport [0];
51
-				$port = $ipport [1];
52
-			}
53
-			
54
-		}
55
-		catch(\Exception $e){
56
-			
57
-			$ip = UnionPidServiceClient::$DEFAULT_PROXY_IP;
58
-			$port = UnionPidServiceClient::$DEFAULT_PROXY_PORT;
59
-		}
60
-		
61
-		if ($ctx->getCalleeIP () == null){
62
-			
63
-			$ctx->setCalleeIP ( $ip );
64
-		}
65
-		
66
-		if ($ctx->getCalleePort () == null){
67
-			
68
-			$ctx->setCalleePort ( $port );
69
-		}
70
-		
71
-		//$ctx->setProtocol ( \Osp\Protocol\OspProtocol::$Binary );
72
-		
73
-		return new \com\vip\adp\api\open\service\UnionPidServiceHelper();
74
-	}
75
-	
76
-}
77
-
78
-?>

+ 0 - 22
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPidServiceHelper.php

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-require_once dirname(__FILE__).'/UnionPidService.php';
13
-class UnionPidServiceHelper extends _UnionPidServiceClient{
14
-	
15
-	public function __construct(){
16
-		
17
-		parent::__construct();
18
-	}
19
-	
20
-}
21
-
22
-?>

+ 0 - 574
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPromotionMaterialService.php

@@ -1,574 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-interface UnionPromotionMaterialServiceIf{
13
-	
14
-	
15
-	public function getPromotionMaterial(\com\vip\adp\api\open\service\PromotionMaterialRequest $request);
16
-	
17
-	public function getPromotionMaterialWithOauth(\com\vip\adp\api\open\service\PromotionMaterialRequest $request);
18
-	
19
-	public function healthCheck();
20
-	
21
-}
22
-
23
-class _UnionPromotionMaterialServiceClient extends \Osp\Base\OspStub implements \com\vip\adp\api\open\service\UnionPromotionMaterialServiceIf{
24
-	
25
-	public function __construct(){
26
-		
27
-		parent::__construct("com.vip.adp.api.open.service.UnionPromotionMaterialService", "1.0.0");
28
-	}
29
-	
30
-	
31
-	public function getPromotionMaterial(\com\vip\adp\api\open\service\PromotionMaterialRequest $request){
32
-		
33
-		$this->send_getPromotionMaterial( $request);
34
-		return $this->recv_getPromotionMaterial();
35
-	}
36
-	
37
-	public function send_getPromotionMaterial(\com\vip\adp\api\open\service\PromotionMaterialRequest $request){
38
-		
39
-		$this->initInvocation("getPromotionMaterial");
40
-		$args = new \com\vip\adp\api\open\service\UnionPromotionMaterialService_getPromotionMaterial_args();
41
-		
42
-		$args->request = $request;
43
-		
44
-		$this->send_base($args);
45
-	}
46
-	
47
-	public function recv_getPromotionMaterial(){
48
-		
49
-		$result = new \com\vip\adp\api\open\service\UnionPromotionMaterialService_getPromotionMaterial_result();
50
-		$this->receive_base($result);
51
-		if ($result->success !== null){
52
-			
53
-			return $result->success;
54
-		}
55
-		
56
-	}
57
-	
58
-	
59
-	public function getPromotionMaterialWithOauth(\com\vip\adp\api\open\service\PromotionMaterialRequest $request){
60
-		
61
-		$this->send_getPromotionMaterialWithOauth( $request);
62
-		return $this->recv_getPromotionMaterialWithOauth();
63
-	}
64
-	
65
-	public function send_getPromotionMaterialWithOauth(\com\vip\adp\api\open\service\PromotionMaterialRequest $request){
66
-		
67
-		$this->initInvocation("getPromotionMaterialWithOauth");
68
-		$args = new \com\vip\adp\api\open\service\UnionPromotionMaterialService_getPromotionMaterialWithOauth_args();
69
-		
70
-		$args->request = $request;
71
-		
72
-		$this->send_base($args);
73
-	}
74
-	
75
-	public function recv_getPromotionMaterialWithOauth(){
76
-		
77
-		$result = new \com\vip\adp\api\open\service\UnionPromotionMaterialService_getPromotionMaterialWithOauth_result();
78
-		$this->receive_base($result);
79
-		if ($result->success !== null){
80
-			
81
-			return $result->success;
82
-		}
83
-		
84
-	}
85
-	
86
-	
87
-	public function healthCheck(){
88
-		
89
-		$this->send_healthCheck();
90
-		return $this->recv_healthCheck();
91
-	}
92
-	
93
-	public function send_healthCheck(){
94
-		
95
-		$this->initInvocation("healthCheck");
96
-		$args = new \com\vip\adp\api\open\service\UnionPromotionMaterialService_healthCheck_args();
97
-		
98
-		$this->send_base($args);
99
-	}
100
-	
101
-	public function recv_healthCheck(){
102
-		
103
-		$result = new \com\vip\adp\api\open\service\UnionPromotionMaterialService_healthCheck_result();
104
-		$this->receive_base($result);
105
-		if ($result->success !== null){
106
-			
107
-			return $result->success;
108
-		}
109
-		
110
-	}
111
-	
112
-	
113
-}
114
-
115
-
116
-
117
-
118
-class UnionPromotionMaterialService_getPromotionMaterial_args {
119
-	
120
-	static $_TSPEC;
121
-	public $request = null;
122
-	
123
-	public function __construct($vals=null){
124
-		
125
-		if (!isset(self::$_TSPEC)){
126
-			
127
-			self::$_TSPEC = array(
128
-			1 => array(
129
-			'var' => 'request'
130
-			),
131
-			
132
-			);
133
-			
134
-		}
135
-		
136
-		if (is_array($vals)){
137
-			
138
-			
139
-			if (isset($vals['request'])){
140
-				
141
-				$this->request = $vals['request'];
142
-			}
143
-			
144
-			
145
-		}
146
-		
147
-	}
148
-	
149
-	
150
-	public function read($input){
151
-		
152
-		
153
-		
154
-		
155
-		if(true) {
156
-			
157
-			
158
-			$this->request = new \com\vip\adp\api\open\service\PromotionMaterialRequest();
159
-			$this->request->read($input);
160
-			
161
-		}
162
-		
163
-		
164
-		
165
-		
166
-		
167
-		
168
-	}
169
-	
170
-	public function write($output){
171
-		
172
-		$xfer = 0;
173
-		$xfer += $output->writeStructBegin();
174
-		
175
-		if($this->request !== null) {
176
-			
177
-			$xfer += $output->writeFieldBegin('request');
178
-			
179
-			if (!is_object($this->request)) {
180
-				
181
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
182
-			}
183
-			
184
-			$xfer += $this->request->write($output);
185
-			
186
-			$xfer += $output->writeFieldEnd();
187
-		}
188
-		
189
-		
190
-		$xfer += $output->writeFieldStop();
191
-		$xfer += $output->writeStructEnd();
192
-		return $xfer;
193
-	}
194
-	
195
-}
196
-
197
-
198
-
199
-
200
-class UnionPromotionMaterialService_getPromotionMaterialWithOauth_args {
201
-	
202
-	static $_TSPEC;
203
-	public $request = null;
204
-	
205
-	public function __construct($vals=null){
206
-		
207
-		if (!isset(self::$_TSPEC)){
208
-			
209
-			self::$_TSPEC = array(
210
-			1 => array(
211
-			'var' => 'request'
212
-			),
213
-			
214
-			);
215
-			
216
-		}
217
-		
218
-		if (is_array($vals)){
219
-			
220
-			
221
-			if (isset($vals['request'])){
222
-				
223
-				$this->request = $vals['request'];
224
-			}
225
-			
226
-			
227
-		}
228
-		
229
-	}
230
-	
231
-	
232
-	public function read($input){
233
-		
234
-		
235
-		
236
-		
237
-		if(true) {
238
-			
239
-			
240
-			$this->request = new \com\vip\adp\api\open\service\PromotionMaterialRequest();
241
-			$this->request->read($input);
242
-			
243
-		}
244
-		
245
-		
246
-		
247
-		
248
-		
249
-		
250
-	}
251
-	
252
-	public function write($output){
253
-		
254
-		$xfer = 0;
255
-		$xfer += $output->writeStructBegin();
256
-		
257
-		if($this->request !== null) {
258
-			
259
-			$xfer += $output->writeFieldBegin('request');
260
-			
261
-			if (!is_object($this->request)) {
262
-				
263
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
264
-			}
265
-			
266
-			$xfer += $this->request->write($output);
267
-			
268
-			$xfer += $output->writeFieldEnd();
269
-		}
270
-		
271
-		
272
-		$xfer += $output->writeFieldStop();
273
-		$xfer += $output->writeStructEnd();
274
-		return $xfer;
275
-	}
276
-	
277
-}
278
-
279
-
280
-
281
-
282
-class UnionPromotionMaterialService_healthCheck_args {
283
-	
284
-	static $_TSPEC;
285
-	
286
-	public function __construct($vals=null){
287
-		
288
-		if (!isset(self::$_TSPEC)){
289
-			
290
-			self::$_TSPEC = array(
291
-			
292
-			);
293
-			
294
-		}
295
-		
296
-		if (is_array($vals)){
297
-			
298
-			
299
-		}
300
-		
301
-	}
302
-	
303
-	
304
-	public function read($input){
305
-		
306
-		
307
-		
308
-		
309
-		
310
-		
311
-	}
312
-	
313
-	public function write($output){
314
-		
315
-		$xfer = 0;
316
-		$xfer += $output->writeStructBegin();
317
-		
318
-		$xfer += $output->writeFieldStop();
319
-		$xfer += $output->writeStructEnd();
320
-		return $xfer;
321
-	}
322
-	
323
-}
324
-
325
-
326
-
327
-
328
-class UnionPromotionMaterialService_getPromotionMaterial_result {
329
-	
330
-	static $_TSPEC;
331
-	public $success = null;
332
-	
333
-	public function __construct($vals=null){
334
-		
335
-		if (!isset(self::$_TSPEC)){
336
-			
337
-			self::$_TSPEC = array(
338
-			0 => array(
339
-			'var' => 'success'
340
-			),
341
-			
342
-			);
343
-			
344
-		}
345
-		
346
-		if (is_array($vals)){
347
-			
348
-			
349
-			if (isset($vals['success'])){
350
-				
351
-				$this->success = $vals['success'];
352
-			}
353
-			
354
-			
355
-		}
356
-		
357
-	}
358
-	
359
-	
360
-	public function read($input){
361
-		
362
-		
363
-		
364
-		
365
-		if(true) {
366
-			
367
-			
368
-			$this->success = new \com\vip\adp\api\open\service\PromotionMaterialResponse();
369
-			$this->success->read($input);
370
-			
371
-		}
372
-		
373
-		
374
-		
375
-		
376
-		
377
-		
378
-	}
379
-	
380
-	public function write($output){
381
-		
382
-		$xfer = 0;
383
-		$xfer += $output->writeStructBegin();
384
-		
385
-		if($this->success !== null) {
386
-			
387
-			$xfer += $output->writeFieldBegin('success');
388
-			
389
-			if (!is_object($this->success)) {
390
-				
391
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
392
-			}
393
-			
394
-			$xfer += $this->success->write($output);
395
-			
396
-			$xfer += $output->writeFieldEnd();
397
-		}
398
-		
399
-		
400
-		$xfer += $output->writeFieldStop();
401
-		$xfer += $output->writeStructEnd();
402
-		return $xfer;
403
-	}
404
-	
405
-}
406
-
407
-
408
-
409
-
410
-class UnionPromotionMaterialService_getPromotionMaterialWithOauth_result {
411
-	
412
-	static $_TSPEC;
413
-	public $success = null;
414
-	
415
-	public function __construct($vals=null){
416
-		
417
-		if (!isset(self::$_TSPEC)){
418
-			
419
-			self::$_TSPEC = array(
420
-			0 => array(
421
-			'var' => 'success'
422
-			),
423
-			
424
-			);
425
-			
426
-		}
427
-		
428
-		if (is_array($vals)){
429
-			
430
-			
431
-			if (isset($vals['success'])){
432
-				
433
-				$this->success = $vals['success'];
434
-			}
435
-			
436
-			
437
-		}
438
-		
439
-	}
440
-	
441
-	
442
-	public function read($input){
443
-		
444
-		
445
-		
446
-		
447
-		if(true) {
448
-			
449
-			
450
-			$this->success = new \com\vip\adp\api\open\service\PromotionMaterialResponse();
451
-			$this->success->read($input);
452
-			
453
-		}
454
-		
455
-		
456
-		
457
-		
458
-		
459
-		
460
-	}
461
-	
462
-	public function write($output){
463
-		
464
-		$xfer = 0;
465
-		$xfer += $output->writeStructBegin();
466
-		
467
-		if($this->success !== null) {
468
-			
469
-			$xfer += $output->writeFieldBegin('success');
470
-			
471
-			if (!is_object($this->success)) {
472
-				
473
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
474
-			}
475
-			
476
-			$xfer += $this->success->write($output);
477
-			
478
-			$xfer += $output->writeFieldEnd();
479
-		}
480
-		
481
-		
482
-		$xfer += $output->writeFieldStop();
483
-		$xfer += $output->writeStructEnd();
484
-		return $xfer;
485
-	}
486
-	
487
-}
488
-
489
-
490
-
491
-
492
-class UnionPromotionMaterialService_healthCheck_result {
493
-	
494
-	static $_TSPEC;
495
-	public $success = null;
496
-	
497
-	public function __construct($vals=null){
498
-		
499
-		if (!isset(self::$_TSPEC)){
500
-			
501
-			self::$_TSPEC = array(
502
-			0 => array(
503
-			'var' => 'success'
504
-			),
505
-			
506
-			);
507
-			
508
-		}
509
-		
510
-		if (is_array($vals)){
511
-			
512
-			
513
-			if (isset($vals['success'])){
514
-				
515
-				$this->success = $vals['success'];
516
-			}
517
-			
518
-			
519
-		}
520
-		
521
-	}
522
-	
523
-	
524
-	public function read($input){
525
-		
526
-		
527
-		
528
-		
529
-		if(true) {
530
-			
531
-			
532
-			$this->success = new \com\vip\hermes\core\health\CheckResult();
533
-			$this->success->read($input);
534
-			
535
-		}
536
-		
537
-		
538
-		
539
-		
540
-		
541
-		
542
-	}
543
-	
544
-	public function write($output){
545
-		
546
-		$xfer = 0;
547
-		$xfer += $output->writeStructBegin();
548
-		
549
-		if($this->success !== null) {
550
-			
551
-			$xfer += $output->writeFieldBegin('success');
552
-			
553
-			if (!is_object($this->success)) {
554
-				
555
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
556
-			}
557
-			
558
-			$xfer += $this->success->write($output);
559
-			
560
-			$xfer += $output->writeFieldEnd();
561
-		}
562
-		
563
-		
564
-		$xfer += $output->writeFieldStop();
565
-		$xfer += $output->writeStructEnd();
566
-		return $xfer;
567
-	}
568
-	
569
-}
570
-
571
-
572
-
573
-
574
-?>

+ 0 - 78
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPromotionMaterialServiceClient.php

@@ -1,78 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-$base_path = dirname(__FILE__).'/../../../../../../';
13
-require_once $base_path.'/Osp/Util/PathUtil.php';
14
-require_once $base_path.'/Osp/ClassLoader/ClassLoader.php';
15
-class UnionPromotionMaterialServiceClient{
16
-	
17
-	private static $isRegis;
18
-	private static $DEFAULT_PROXY_IP = "127.0.0.1";
19
-	private static $DEFAULT_PROXY_PORT = "2080";
20
-	
21
-	private static function regis(){
22
-		
23
-		$path = \Osp\Util\PathUtil::getRootPath ();
24
-		$nsLoader = new \Osp\ClassLoader\ClassLoader ();
25
-		$nsLoader->registerNamespace ( 'Thrift', $path );
26
-		$nsLoader->registerNamespace ( 'Osp', $path );
27
-		$nsLoader->registerNamespace ( 'com', $path );
28
-		$nsLoader->register ();
29
-	}
30
-	
31
-	
32
-	public static function getService(){
33
-		
34
-		if (! UnionPromotionMaterialServiceClient::$isRegis){
35
-			
36
-			UnionPromotionMaterialServiceClient::regis ();
37
-			UnionPromotionMaterialServiceClient::$isRegis = true;
38
-		}
39
-		
40
-		
41
-		$ctx = \Osp\Context\InvocationContextFactory::getInstance ();
42
-		$ip = UnionPromotionMaterialServiceClient::$DEFAULT_PROXY_IP;
43
-		$port = UnionPromotionMaterialServiceClient::$DEFAULT_PROXY_PORT;	
44
-		try{
45
-			
46
-			$envCfg = getenv ( "VIP_OSP_PROXY" );
47
-			$ipport = explode ( ":", $envCfg );
48
-			if (strlen ( $envCfg ) > 0 && count ( $ipport ) == 2){
49
-				
50
-				$ip = $ipport [0];
51
-				$port = $ipport [1];
52
-			}
53
-			
54
-		}
55
-		catch(\Exception $e){
56
-			
57
-			$ip = UnionPromotionMaterialServiceClient::$DEFAULT_PROXY_IP;
58
-			$port = UnionPromotionMaterialServiceClient::$DEFAULT_PROXY_PORT;
59
-		}
60
-		
61
-		if ($ctx->getCalleeIP () == null){
62
-			
63
-			$ctx->setCalleeIP ( $ip );
64
-		}
65
-		
66
-		if ($ctx->getCalleePort () == null){
67
-			
68
-			$ctx->setCalleePort ( $port );
69
-		}
70
-		
71
-		//$ctx->setProtocol ( \Osp\Protocol\OspProtocol::$Binary );
72
-		
73
-		return new \com\vip\adp\api\open\service\UnionPromotionMaterialServiceHelper();
74
-	}
75
-	
76
-}
77
-
78
-?>

+ 0 - 22
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionPromotionMaterialServiceHelper.php

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-require_once dirname(__FILE__).'/UnionPromotionMaterialService.php';
13
-class UnionPromotionMaterialServiceHelper extends _UnionPromotionMaterialServiceClient{
14
-	
15
-	public function __construct(){
16
-		
17
-		parent::__construct();
18
-	}
19
-	
20
-}
21
-
22
-?>

Разница между файлами не показана из-за своего большого размера
+ 0 - 1766
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionUrlService.php


+ 0 - 78
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionUrlServiceClient.php

@@ -1,78 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-$base_path = dirname(__FILE__).'/../../../../../../';
13
-require_once $base_path.'/Osp/Util/PathUtil.php';
14
-require_once $base_path.'/Osp/ClassLoader/ClassLoader.php';
15
-class UnionUrlServiceClient{
16
-	
17
-	private static $isRegis;
18
-	private static $DEFAULT_PROXY_IP = "127.0.0.1";
19
-	private static $DEFAULT_PROXY_PORT = "2080";
20
-	
21
-	private static function regis(){
22
-		
23
-		$path = \Osp\Util\PathUtil::getRootPath ();
24
-		$nsLoader = new \Osp\ClassLoader\ClassLoader ();
25
-		$nsLoader->registerNamespace ( 'Thrift', $path );
26
-		$nsLoader->registerNamespace ( 'Osp', $path );
27
-		$nsLoader->registerNamespace ( 'com', $path );
28
-		$nsLoader->register ();
29
-	}
30
-	
31
-	
32
-	public static function getService(){
33
-		
34
-		if (! UnionUrlServiceClient::$isRegis){
35
-			
36
-			UnionUrlServiceClient::regis ();
37
-			UnionUrlServiceClient::$isRegis = true;
38
-		}
39
-		
40
-		
41
-		$ctx = \Osp\Context\InvocationContextFactory::getInstance ();
42
-		$ip = UnionUrlServiceClient::$DEFAULT_PROXY_IP;
43
-		$port = UnionUrlServiceClient::$DEFAULT_PROXY_PORT;	
44
-		try{
45
-			
46
-			$envCfg = getenv ( "VIP_OSP_PROXY" );
47
-			$ipport = explode ( ":", $envCfg );
48
-			if (strlen ( $envCfg ) > 0 && count ( $ipport ) == 2){
49
-				
50
-				$ip = $ipport [0];
51
-				$port = $ipport [1];
52
-			}
53
-			
54
-		}
55
-		catch(\Exception $e){
56
-			
57
-			$ip = UnionUrlServiceClient::$DEFAULT_PROXY_IP;
58
-			$port = UnionUrlServiceClient::$DEFAULT_PROXY_PORT;
59
-		}
60
-		
61
-		if ($ctx->getCalleeIP () == null){
62
-			
63
-			$ctx->setCalleeIP ( $ip );
64
-		}
65
-		
66
-		if ($ctx->getCalleePort () == null){
67
-			
68
-			$ctx->setCalleePort ( $port );
69
-		}
70
-		
71
-		//$ctx->setProtocol ( \Osp\Protocol\OspProtocol::$Binary );
72
-		
73
-		return new \com\vip\adp\api\open\service\UnionUrlServiceHelper();
74
-	}
75
-	
76
-}
77
-
78
-?>

+ 0 - 22
extend/vip_sdk/src/com/vip/adp/api/open/service/UnionUrlServiceHelper.php

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-require_once dirname(__FILE__).'/UnionUrlService.php';
13
-class UnionUrlServiceHelper extends _UnionUrlServiceClient{
14
-	
15
-	public function __construct(){
16
-		
17
-		parent::__construct();
18
-	}
19
-	
20
-}
21
-
22
-?>

+ 0 - 144
extend/vip_sdk/src/com/vip/adp/api/open/service/UrlGenResponse.php

@@ -1,144 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class UrlGenResponse {
14
-	
15
-	static $_TSPEC;
16
-	public $urlInfoList = null;
17
-	
18
-	public function __construct($vals=null){
19
-		
20
-		if (!isset(self::$_TSPEC)){
21
-			
22
-			self::$_TSPEC = array(
23
-			1 => array(
24
-			'var' => 'urlInfoList'
25
-			),
26
-			
27
-			);
28
-			
29
-		}
30
-		
31
-		if (is_array($vals)){
32
-			
33
-			
34
-			if (isset($vals['urlInfoList'])){
35
-				
36
-				$this->urlInfoList = $vals['urlInfoList'];
37
-			}
38
-			
39
-			
40
-		}
41
-		
42
-	}
43
-	
44
-	
45
-	public function getName(){
46
-		
47
-		return 'UrlGenResponse';
48
-	}
49
-	
50
-	public function read($input){
51
-		
52
-		$input->readStructBegin();
53
-		while(true){
54
-			
55
-			$schemeField = $input->readFieldBegin();
56
-			if ($schemeField == null) break;
57
-			$needSkip = true;
58
-			
59
-			
60
-			if ("urlInfoList" == $schemeField){
61
-				
62
-				$needSkip = false;
63
-				
64
-				$this->urlInfoList = array();
65
-				$_size0 = 0;
66
-				$input->readListBegin();
67
-				while(true){
68
-					
69
-					try{
70
-						
71
-						$elem0 = null;
72
-						
73
-						$elem0 = new \com\vip\adp\api\open\service\UrlInfo();
74
-						$elem0->read($input);
75
-						
76
-						$this->urlInfoList[$_size0++] = $elem0;
77
-					}
78
-					catch(\Exception $e){
79
-						
80
-						break;
81
-					}
82
-				}
83
-				
84
-				$input->readListEnd();
85
-				
86
-			}
87
-			
88
-			
89
-			
90
-			if($needSkip){
91
-				
92
-				\Osp\Protocol\ProtocolUtil::skip($input);
93
-			}
94
-			
95
-			$input->readFieldEnd();
96
-		}
97
-		
98
-		$input->readStructEnd();
99
-		
100
-		
101
-		
102
-	}
103
-	
104
-	public function write($output){
105
-		
106
-		$xfer = 0;
107
-		$xfer += $output->writeStructBegin();
108
-		
109
-		if($this->urlInfoList !== null) {
110
-			
111
-			$xfer += $output->writeFieldBegin('urlInfoList');
112
-			
113
-			if (!is_array($this->urlInfoList)){
114
-				
115
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
116
-			}
117
-			
118
-			$output->writeListBegin();
119
-			foreach ($this->urlInfoList as $iter0){
120
-				
121
-				
122
-				if (!is_object($iter0)) {
123
-					
124
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
125
-				}
126
-				
127
-				$xfer += $iter0->write($output);
128
-				
129
-			}
130
-			
131
-			$output->writeListEnd();
132
-			
133
-			$xfer += $output->writeFieldEnd();
134
-		}
135
-		
136
-		
137
-		$xfer += $output->writeFieldStop();
138
-		$xfer += $output->writeStructEnd();
139
-		return $xfer;
140
-	}
141
-	
142
-}
143
-
144
-?>

+ 0 - 394
extend/vip_sdk/src/com/vip/adp/api/open/service/UrlInfo.php

@@ -1,394 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class UrlInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $source = null;
17
-	public $url = null;
18
-	public $longUrl = null;
19
-	public $ulUrl = null;
20
-	public $deeplinkUrl = null;
21
-	public $traFrom = null;
22
-	public $noEvokeUrl = null;
23
-	public $noEvokeLongUrl = null;
24
-	public $vipWxUrl = null;
25
-	public $vipWxCode = null;
26
-	public $vipQuickAppUrl = null;
27
-	
28
-	public function __construct($vals=null){
29
-		
30
-		if (!isset(self::$_TSPEC)){
31
-			
32
-			self::$_TSPEC = array(
33
-			1 => array(
34
-			'var' => 'source'
35
-			),
36
-			2 => array(
37
-			'var' => 'url'
38
-			),
39
-			3 => array(
40
-			'var' => 'longUrl'
41
-			),
42
-			4 => array(
43
-			'var' => 'ulUrl'
44
-			),
45
-			5 => array(
46
-			'var' => 'deeplinkUrl'
47
-			),
48
-			6 => array(
49
-			'var' => 'traFrom'
50
-			),
51
-			7 => array(
52
-			'var' => 'noEvokeUrl'
53
-			),
54
-			8 => array(
55
-			'var' => 'noEvokeLongUrl'
56
-			),
57
-			9 => array(
58
-			'var' => 'vipWxUrl'
59
-			),
60
-			10 => array(
61
-			'var' => 'vipWxCode'
62
-			),
63
-			11 => array(
64
-			'var' => 'vipQuickAppUrl'
65
-			),
66
-			
67
-			);
68
-			
69
-		}
70
-		
71
-		if (is_array($vals)){
72
-			
73
-			
74
-			if (isset($vals['source'])){
75
-				
76
-				$this->source = $vals['source'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['url'])){
81
-				
82
-				$this->url = $vals['url'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['longUrl'])){
87
-				
88
-				$this->longUrl = $vals['longUrl'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['ulUrl'])){
93
-				
94
-				$this->ulUrl = $vals['ulUrl'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['deeplinkUrl'])){
99
-				
100
-				$this->deeplinkUrl = $vals['deeplinkUrl'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['traFrom'])){
105
-				
106
-				$this->traFrom = $vals['traFrom'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['noEvokeUrl'])){
111
-				
112
-				$this->noEvokeUrl = $vals['noEvokeUrl'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['noEvokeLongUrl'])){
117
-				
118
-				$this->noEvokeLongUrl = $vals['noEvokeLongUrl'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['vipWxUrl'])){
123
-				
124
-				$this->vipWxUrl = $vals['vipWxUrl'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['vipWxCode'])){
129
-				
130
-				$this->vipWxCode = $vals['vipWxCode'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['vipQuickAppUrl'])){
135
-				
136
-				$this->vipQuickAppUrl = $vals['vipQuickAppUrl'];
137
-			}
138
-			
139
-			
140
-		}
141
-		
142
-	}
143
-	
144
-	
145
-	public function getName(){
146
-		
147
-		return 'UrlInfo';
148
-	}
149
-	
150
-	public function read($input){
151
-		
152
-		$input->readStructBegin();
153
-		while(true){
154
-			
155
-			$schemeField = $input->readFieldBegin();
156
-			if ($schemeField == null) break;
157
-			$needSkip = true;
158
-			
159
-			
160
-			if ("source" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->source);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("url" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readString($this->url);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("longUrl" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->longUrl);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("ulUrl" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readString($this->ulUrl);
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("deeplinkUrl" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readString($this->deeplinkUrl);
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("traFrom" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readString($this->traFrom);
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("noEvokeUrl" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readString($this->noEvokeUrl);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("noEvokeLongUrl" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readString($this->noEvokeLongUrl);
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("vipWxUrl" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readString($this->vipWxUrl);
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("vipWxCode" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readString($this->vipWxCode);
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("vipQuickAppUrl" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readString($this->vipQuickAppUrl);
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			if($needSkip){
270
-				
271
-				\Osp\Protocol\ProtocolUtil::skip($input);
272
-			}
273
-			
274
-			$input->readFieldEnd();
275
-		}
276
-		
277
-		$input->readStructEnd();
278
-		
279
-		
280
-		
281
-	}
282
-	
283
-	public function write($output){
284
-		
285
-		$xfer = 0;
286
-		$xfer += $output->writeStructBegin();
287
-		
288
-		if($this->source !== null) {
289
-			
290
-			$xfer += $output->writeFieldBegin('source');
291
-			$xfer += $output->writeString($this->source);
292
-			
293
-			$xfer += $output->writeFieldEnd();
294
-		}
295
-		
296
-		
297
-		if($this->url !== null) {
298
-			
299
-			$xfer += $output->writeFieldBegin('url');
300
-			$xfer += $output->writeString($this->url);
301
-			
302
-			$xfer += $output->writeFieldEnd();
303
-		}
304
-		
305
-		
306
-		if($this->longUrl !== null) {
307
-			
308
-			$xfer += $output->writeFieldBegin('longUrl');
309
-			$xfer += $output->writeString($this->longUrl);
310
-			
311
-			$xfer += $output->writeFieldEnd();
312
-		}
313
-		
314
-		
315
-		if($this->ulUrl !== null) {
316
-			
317
-			$xfer += $output->writeFieldBegin('ulUrl');
318
-			$xfer += $output->writeString($this->ulUrl);
319
-			
320
-			$xfer += $output->writeFieldEnd();
321
-		}
322
-		
323
-		
324
-		if($this->deeplinkUrl !== null) {
325
-			
326
-			$xfer += $output->writeFieldBegin('deeplinkUrl');
327
-			$xfer += $output->writeString($this->deeplinkUrl);
328
-			
329
-			$xfer += $output->writeFieldEnd();
330
-		}
331
-		
332
-		
333
-		if($this->traFrom !== null) {
334
-			
335
-			$xfer += $output->writeFieldBegin('traFrom');
336
-			$xfer += $output->writeString($this->traFrom);
337
-			
338
-			$xfer += $output->writeFieldEnd();
339
-		}
340
-		
341
-		
342
-		if($this->noEvokeUrl !== null) {
343
-			
344
-			$xfer += $output->writeFieldBegin('noEvokeUrl');
345
-			$xfer += $output->writeString($this->noEvokeUrl);
346
-			
347
-			$xfer += $output->writeFieldEnd();
348
-		}
349
-		
350
-		
351
-		if($this->noEvokeLongUrl !== null) {
352
-			
353
-			$xfer += $output->writeFieldBegin('noEvokeLongUrl');
354
-			$xfer += $output->writeString($this->noEvokeLongUrl);
355
-			
356
-			$xfer += $output->writeFieldEnd();
357
-		}
358
-		
359
-		
360
-		if($this->vipWxUrl !== null) {
361
-			
362
-			$xfer += $output->writeFieldBegin('vipWxUrl');
363
-			$xfer += $output->writeString($this->vipWxUrl);
364
-			
365
-			$xfer += $output->writeFieldEnd();
366
-		}
367
-		
368
-		
369
-		if($this->vipWxCode !== null) {
370
-			
371
-			$xfer += $output->writeFieldBegin('vipWxCode');
372
-			$xfer += $output->writeString($this->vipWxCode);
373
-			
374
-			$xfer += $output->writeFieldEnd();
375
-		}
376
-		
377
-		
378
-		if($this->vipQuickAppUrl !== null) {
379
-			
380
-			$xfer += $output->writeFieldBegin('vipQuickAppUrl');
381
-			$xfer += $output->writeString($this->vipQuickAppUrl);
382
-			
383
-			$xfer += $output->writeFieldEnd();
384
-		}
385
-		
386
-		
387
-		$xfer += $output->writeFieldStop();
388
-		$xfer += $output->writeStructEnd();
389
-		return $xfer;
390
-	}
391
-	
392
-}
393
-
394
-?>

+ 0 - 311
extend/vip_sdk/src/com/vip/adp/api/open/service/UserRecommendRequest.php

@@ -1,311 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class UserRecommendRequest {
14
-	
15
-	static $_TSPEC;
16
-	public $page = null;
17
-	public $pageSize = null;
18
-	public $requestId = null;
19
-	public $inStock = null;
20
-	public $goodsSaleStats = null;
21
-	public $offlineStore = null;
22
-	public $commonParams = null;
23
-	public $chanTag = null;
24
-	
25
-	public function __construct($vals=null){
26
-		
27
-		if (!isset(self::$_TSPEC)){
28
-			
29
-			self::$_TSPEC = array(
30
-			1 => array(
31
-			'var' => 'page'
32
-			),
33
-			2 => array(
34
-			'var' => 'pageSize'
35
-			),
36
-			3 => array(
37
-			'var' => 'requestId'
38
-			),
39
-			4 => array(
40
-			'var' => 'inStock'
41
-			),
42
-			5 => array(
43
-			'var' => 'goodsSaleStats'
44
-			),
45
-			6 => array(
46
-			'var' => 'offlineStore'
47
-			),
48
-			7 => array(
49
-			'var' => 'commonParams'
50
-			),
51
-			8 => array(
52
-			'var' => 'chanTag'
53
-			),
54
-			
55
-			);
56
-			
57
-		}
58
-		
59
-		if (is_array($vals)){
60
-			
61
-			
62
-			if (isset($vals['page'])){
63
-				
64
-				$this->page = $vals['page'];
65
-			}
66
-			
67
-			
68
-			if (isset($vals['pageSize'])){
69
-				
70
-				$this->pageSize = $vals['pageSize'];
71
-			}
72
-			
73
-			
74
-			if (isset($vals['requestId'])){
75
-				
76
-				$this->requestId = $vals['requestId'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['inStock'])){
81
-				
82
-				$this->inStock = $vals['inStock'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['goodsSaleStats'])){
87
-				
88
-				$this->goodsSaleStats = $vals['goodsSaleStats'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['offlineStore'])){
93
-				
94
-				$this->offlineStore = $vals['offlineStore'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['commonParams'])){
99
-				
100
-				$this->commonParams = $vals['commonParams'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['chanTag'])){
105
-				
106
-				$this->chanTag = $vals['chanTag'];
107
-			}
108
-			
109
-			
110
-		}
111
-		
112
-	}
113
-	
114
-	
115
-	public function getName(){
116
-		
117
-		return 'UserRecommendRequest';
118
-	}
119
-	
120
-	public function read($input){
121
-		
122
-		$input->readStructBegin();
123
-		while(true){
124
-			
125
-			$schemeField = $input->readFieldBegin();
126
-			if ($schemeField == null) break;
127
-			$needSkip = true;
128
-			
129
-			
130
-			if ("page" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readI32($this->page); 
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("pageSize" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readI32($this->pageSize); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("requestId" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->requestId);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("inStock" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI32($this->inStock); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("goodsSaleStats" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readI32($this->goodsSaleStats); 
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("offlineStore" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readI32($this->offlineStore); 
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("commonParams" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				
194
-				$this->commonParams = new \com\vip\adp\api\open\service\CommonParams();
195
-				$this->commonParams->read($input);
196
-				
197
-			}
198
-			
199
-			
200
-			
201
-			
202
-			if ("chanTag" == $schemeField){
203
-				
204
-				$needSkip = false;
205
-				$input->readString($this->chanTag);
206
-				
207
-			}
208
-			
209
-			
210
-			
211
-			if($needSkip){
212
-				
213
-				\Osp\Protocol\ProtocolUtil::skip($input);
214
-			}
215
-			
216
-			$input->readFieldEnd();
217
-		}
218
-		
219
-		$input->readStructEnd();
220
-		
221
-		
222
-		
223
-	}
224
-	
225
-	public function write($output){
226
-		
227
-		$xfer = 0;
228
-		$xfer += $output->writeStructBegin();
229
-		
230
-		$xfer += $output->writeFieldBegin('page');
231
-		$xfer += $output->writeI32($this->page);
232
-		
233
-		$xfer += $output->writeFieldEnd();
234
-		
235
-		if($this->pageSize !== null) {
236
-			
237
-			$xfer += $output->writeFieldBegin('pageSize');
238
-			$xfer += $output->writeI32($this->pageSize);
239
-			
240
-			$xfer += $output->writeFieldEnd();
241
-		}
242
-		
243
-		
244
-		if($this->requestId !== null) {
245
-			
246
-			$xfer += $output->writeFieldBegin('requestId');
247
-			$xfer += $output->writeString($this->requestId);
248
-			
249
-			$xfer += $output->writeFieldEnd();
250
-		}
251
-		
252
-		
253
-		if($this->inStock !== null) {
254
-			
255
-			$xfer += $output->writeFieldBegin('inStock');
256
-			$xfer += $output->writeI32($this->inStock);
257
-			
258
-			$xfer += $output->writeFieldEnd();
259
-		}
260
-		
261
-		
262
-		if($this->goodsSaleStats !== null) {
263
-			
264
-			$xfer += $output->writeFieldBegin('goodsSaleStats');
265
-			$xfer += $output->writeI32($this->goodsSaleStats);
266
-			
267
-			$xfer += $output->writeFieldEnd();
268
-		}
269
-		
270
-		
271
-		if($this->offlineStore !== null) {
272
-			
273
-			$xfer += $output->writeFieldBegin('offlineStore');
274
-			$xfer += $output->writeI32($this->offlineStore);
275
-			
276
-			$xfer += $output->writeFieldEnd();
277
-		}
278
-		
279
-		
280
-		if($this->commonParams !== null) {
281
-			
282
-			$xfer += $output->writeFieldBegin('commonParams');
283
-			
284
-			if (!is_object($this->commonParams)) {
285
-				
286
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
287
-			}
288
-			
289
-			$xfer += $this->commonParams->write($output);
290
-			
291
-			$xfer += $output->writeFieldEnd();
292
-		}
293
-		
294
-		
295
-		if($this->chanTag !== null) {
296
-			
297
-			$xfer += $output->writeFieldBegin('chanTag');
298
-			$xfer += $output->writeString($this->chanTag);
299
-			
300
-			$xfer += $output->writeFieldEnd();
301
-		}
302
-		
303
-		
304
-		$xfer += $output->writeFieldStop();
305
-		$xfer += $output->writeStructEnd();
306
-		return $xfer;
307
-	}
308
-	
309
-}
310
-
311
-?>

+ 0 - 125
extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkCheckReq.php

@@ -1,125 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class VipLinkCheckReq {
14
-	
15
-	static $_TSPEC;
16
-	public $source = null;
17
-	public $content = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'source'
26
-			),
27
-			2 => array(
28
-			'var' => 'content'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['source'])){
39
-				
40
-				$this->source = $vals['source'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['content'])){
45
-				
46
-				$this->content = $vals['content'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'VipLinkCheckReq';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("source" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->source);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("content" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->content);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		$xfer += $output->writeFieldBegin('source');
109
-		$xfer += $output->writeString($this->source);
110
-		
111
-		$xfer += $output->writeFieldEnd();
112
-		
113
-		$xfer += $output->writeFieldBegin('content');
114
-		$xfer += $output->writeString($this->content);
115
-		
116
-		$xfer += $output->writeFieldEnd();
117
-		
118
-		$xfer += $output->writeFieldStop();
119
-		$xfer += $output->writeStructEnd();
120
-		return $xfer;
121
-	}
122
-	
123
-}
124
-
125
-?>

+ 0 - 221
extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkCheckResp.php

@@ -1,221 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class VipLinkCheckResp {
14
-	
15
-	static $_TSPEC;
16
-	public $successMap = null;
17
-	public $failMap = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'successMap'
26
-			),
27
-			2 => array(
28
-			'var' => 'failMap'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['successMap'])){
39
-				
40
-				$this->successMap = $vals['successMap'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['failMap'])){
45
-				
46
-				$this->failMap = $vals['failMap'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'VipLinkCheckResp';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("successMap" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				
74
-				$this->successMap = array();
75
-				$input->readMapBegin();
76
-				while(true){
77
-					
78
-					try{
79
-						
80
-						$key0 = '';
81
-						$input->readString($key0);
82
-						
83
-						$val0 = null;
84
-						
85
-						$val0 = new \com\vip\adp\api\open\service\VipLinkCheckVO();
86
-						$val0->read($input);
87
-						
88
-						$this->successMap[$key0] = $val0;
89
-					}
90
-					catch(\Exception $e){
91
-						
92
-						break;
93
-					}
94
-				}
95
-				
96
-				$input->readMapEnd();
97
-				
98
-			}
99
-			
100
-			
101
-			
102
-			
103
-			if ("failMap" == $schemeField){
104
-				
105
-				$needSkip = false;
106
-				
107
-				$this->failMap = array();
108
-				$input->readMapBegin();
109
-				while(true){
110
-					
111
-					try{
112
-						
113
-						$key1 = '';
114
-						$input->readString($key1);
115
-						
116
-						$val1 = null;
117
-						
118
-						$val1 = new \com\vip\adp\api\open\service\VipLinkCheckVO();
119
-						$val1->read($input);
120
-						
121
-						$this->failMap[$key1] = $val1;
122
-					}
123
-					catch(\Exception $e){
124
-						
125
-						break;
126
-					}
127
-				}
128
-				
129
-				$input->readMapEnd();
130
-				
131
-			}
132
-			
133
-			
134
-			
135
-			if($needSkip){
136
-				
137
-				\Osp\Protocol\ProtocolUtil::skip($input);
138
-			}
139
-			
140
-			$input->readFieldEnd();
141
-		}
142
-		
143
-		$input->readStructEnd();
144
-		
145
-		
146
-		
147
-	}
148
-	
149
-	public function write($output){
150
-		
151
-		$xfer = 0;
152
-		$xfer += $output->writeStructBegin();
153
-		
154
-		if($this->successMap !== null) {
155
-			
156
-			$xfer += $output->writeFieldBegin('successMap');
157
-			
158
-			if (!is_array($this->successMap)){
159
-				
160
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
161
-			}
162
-			
163
-			$output->writeMapBegin();
164
-			foreach ($this->successMap as $kiter0 => $viter0){
165
-				
166
-				$xfer += $output->writeString($kiter0);
167
-				
168
-				
169
-				if (!is_object($viter0)) {
170
-					
171
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
172
-				}
173
-				
174
-				$xfer += $viter0->write($output);
175
-				
176
-			}
177
-			
178
-			$output->writeMapEnd();
179
-			
180
-			$xfer += $output->writeFieldEnd();
181
-		}
182
-		
183
-		
184
-		if($this->failMap !== null) {
185
-			
186
-			$xfer += $output->writeFieldBegin('failMap');
187
-			
188
-			if (!is_array($this->failMap)){
189
-				
190
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
191
-			}
192
-			
193
-			$output->writeMapBegin();
194
-			foreach ($this->failMap as $kiter0 => $viter0){
195
-				
196
-				$xfer += $output->writeString($kiter0);
197
-				
198
-				
199
-				if (!is_object($viter0)) {
200
-					
201
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
202
-				}
203
-				
204
-				$xfer += $viter0->write($output);
205
-				
206
-			}
207
-			
208
-			$output->writeMapEnd();
209
-			
210
-			$xfer += $output->writeFieldEnd();
211
-		}
212
-		
213
-		
214
-		$xfer += $output->writeFieldStop();
215
-		$xfer += $output->writeStructEnd();
216
-		return $xfer;
217
-	}
218
-	
219
-}
220
-
221
-?>

+ 0 - 206
extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkCheckVO.php

@@ -1,206 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-
13
-class VipLinkCheckVO {
14
-	
15
-	static $_TSPEC;
16
-	public $linkType = null;
17
-	public $landUrl = null;
18
-	public $goodsId = null;
19
-	public $brandId = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'linkType'
28
-			),
29
-			2 => array(
30
-			'var' => 'landUrl'
31
-			),
32
-			3 => array(
33
-			'var' => 'goodsId'
34
-			),
35
-			4 => array(
36
-			'var' => 'brandId'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['linkType'])){
47
-				
48
-				$this->linkType = $vals['linkType'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['landUrl'])){
53
-				
54
-				$this->landUrl = $vals['landUrl'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['goodsId'])){
59
-				
60
-				$this->goodsId = $vals['goodsId'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['brandId'])){
65
-				
66
-				$this->brandId = $vals['brandId'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'VipLinkCheckVO';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("linkType" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				
94
-				$names = \com\vip\adp\api\open\service\VipLinkTypeEnum::$__names;
95
-				$name = null;
96
-				$input->readString($name);
97
-				foreach ($names as $k => $v){
98
-					
99
-					if($name == $v){
100
-						
101
-						$this->linkType = $k;
102
-						break;
103
-					}
104
-					
105
-				}
106
-				
107
-				
108
-			}
109
-			
110
-			
111
-			
112
-			
113
-			if ("landUrl" == $schemeField){
114
-				
115
-				$needSkip = false;
116
-				$input->readString($this->landUrl);
117
-				
118
-			}
119
-			
120
-			
121
-			
122
-			
123
-			if ("goodsId" == $schemeField){
124
-				
125
-				$needSkip = false;
126
-				$input->readString($this->goodsId);
127
-				
128
-			}
129
-			
130
-			
131
-			
132
-			
133
-			if ("brandId" == $schemeField){
134
-				
135
-				$needSkip = false;
136
-				$input->readString($this->brandId);
137
-				
138
-			}
139
-			
140
-			
141
-			
142
-			if($needSkip){
143
-				
144
-				\Osp\Protocol\ProtocolUtil::skip($input);
145
-			}
146
-			
147
-			$input->readFieldEnd();
148
-		}
149
-		
150
-		$input->readStructEnd();
151
-		
152
-		
153
-		
154
-	}
155
-	
156
-	public function write($output){
157
-		
158
-		$xfer = 0;
159
-		$xfer += $output->writeStructBegin();
160
-		
161
-		if($this->linkType !== null) {
162
-			
163
-			$xfer += $output->writeFieldBegin('linkType');
164
-			
165
-			$em = new \com\vip\adp\api\open\service\VipLinkTypeEnum; 
166
-			$output->writeString($em::$__names[$this->linkType]);  
167
-			
168
-			$xfer += $output->writeFieldEnd();
169
-		}
170
-		
171
-		
172
-		if($this->landUrl !== null) {
173
-			
174
-			$xfer += $output->writeFieldBegin('landUrl');
175
-			$xfer += $output->writeString($this->landUrl);
176
-			
177
-			$xfer += $output->writeFieldEnd();
178
-		}
179
-		
180
-		
181
-		if($this->goodsId !== null) {
182
-			
183
-			$xfer += $output->writeFieldBegin('goodsId');
184
-			$xfer += $output->writeString($this->goodsId);
185
-			
186
-			$xfer += $output->writeFieldEnd();
187
-		}
188
-		
189
-		
190
-		if($this->brandId !== null) {
191
-			
192
-			$xfer += $output->writeFieldBegin('brandId');
193
-			$xfer += $output->writeString($this->brandId);
194
-			
195
-			$xfer += $output->writeFieldEnd();
196
-		}
197
-		
198
-		
199
-		$xfer += $output->writeFieldStop();
200
-		$xfer += $output->writeStructEnd();
201
-		return $xfer;
202
-	}
203
-	
204
-}
205
-
206
-?>

+ 0 - 40
extend/vip_sdk/src/com/vip/adp/api/open/service/VipLinkTypeEnum.php

@@ -1,40 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\api\open\service;
12
-final class VipLinkTypeEnum{
13
-	
14
-	
15
-	const ILLEGAL_LINK = -1;
16
-	
17
-	const NOT_VIPSHOP_LINK = 0;
18
-	
19
-	const GOODS = 1;
20
-	
21
-	const BRAND = 2;
22
-	
23
-	const OTHER = 9;
24
-	
25
-	static public $__names = array(
26
-	
27
-	-1 => 'ILLEGAL_LINK',
28
-	
29
-	0 => 'NOT_VIPSHOP_LINK',
30
-	
31
-	1 => 'GOODS',
32
-	
33
-	2 => 'BRAND',
34
-	
35
-	9 => 'OTHER',
36
-	
37
-	);
38
-}
39
-
40
-?>

+ 0 - 365
extend/vip_sdk/src/com/vip/adp/common/service/PMSCouponInfo.php

@@ -1,365 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\adp\common\service;
12
-
13
-class PMSCouponInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $couponNo = null;
17
-	public $couponName = null;
18
-	public $buy = null;
19
-	public $fav = null;
20
-	public $activateBeginTime = null;
21
-	public $activateEndTime = null;
22
-	public $useBeginTime = null;
23
-	public $useEndTime = null;
24
-	public $totalAmount = null;
25
-	public $activedAmount = null;
26
-	
27
-	public function __construct($vals=null){
28
-		
29
-		if (!isset(self::$_TSPEC)){
30
-			
31
-			self::$_TSPEC = array(
32
-			1 => array(
33
-			'var' => 'couponNo'
34
-			),
35
-			2 => array(
36
-			'var' => 'couponName'
37
-			),
38
-			3 => array(
39
-			'var' => 'buy'
40
-			),
41
-			4 => array(
42
-			'var' => 'fav'
43
-			),
44
-			5 => array(
45
-			'var' => 'activateBeginTime'
46
-			),
47
-			6 => array(
48
-			'var' => 'activateEndTime'
49
-			),
50
-			7 => array(
51
-			'var' => 'useBeginTime'
52
-			),
53
-			8 => array(
54
-			'var' => 'useEndTime'
55
-			),
56
-			9 => array(
57
-			'var' => 'totalAmount'
58
-			),
59
-			10 => array(
60
-			'var' => 'activedAmount'
61
-			),
62
-			
63
-			);
64
-			
65
-		}
66
-		
67
-		if (is_array($vals)){
68
-			
69
-			
70
-			if (isset($vals['couponNo'])){
71
-				
72
-				$this->couponNo = $vals['couponNo'];
73
-			}
74
-			
75
-			
76
-			if (isset($vals['couponName'])){
77
-				
78
-				$this->couponName = $vals['couponName'];
79
-			}
80
-			
81
-			
82
-			if (isset($vals['buy'])){
83
-				
84
-				$this->buy = $vals['buy'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['fav'])){
89
-				
90
-				$this->fav = $vals['fav'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['activateBeginTime'])){
95
-				
96
-				$this->activateBeginTime = $vals['activateBeginTime'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['activateEndTime'])){
101
-				
102
-				$this->activateEndTime = $vals['activateEndTime'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['useBeginTime'])){
107
-				
108
-				$this->useBeginTime = $vals['useBeginTime'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['useEndTime'])){
113
-				
114
-				$this->useEndTime = $vals['useEndTime'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['totalAmount'])){
119
-				
120
-				$this->totalAmount = $vals['totalAmount'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['activedAmount'])){
125
-				
126
-				$this->activedAmount = $vals['activedAmount'];
127
-			}
128
-			
129
-			
130
-		}
131
-		
132
-	}
133
-	
134
-	
135
-	public function getName(){
136
-		
137
-		return 'PMSCouponInfo';
138
-	}
139
-	
140
-	public function read($input){
141
-		
142
-		$input->readStructBegin();
143
-		while(true){
144
-			
145
-			$schemeField = $input->readFieldBegin();
146
-			if ($schemeField == null) break;
147
-			$needSkip = true;
148
-			
149
-			
150
-			if ("couponNo" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->couponNo);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("couponName" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->couponName);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("buy" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readString($this->buy);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("fav" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->fav);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("activateBeginTime" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readI64($this->activateBeginTime); 
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("activateEndTime" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readI64($this->activateEndTime); 
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("useBeginTime" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readI64($this->useBeginTime); 
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("useEndTime" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readI64($this->useEndTime); 
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("totalAmount" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readI64($this->totalAmount); 
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("activedAmount" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readI64($this->activedAmount); 
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			if($needSkip){
250
-				
251
-				\Osp\Protocol\ProtocolUtil::skip($input);
252
-			}
253
-			
254
-			$input->readFieldEnd();
255
-		}
256
-		
257
-		$input->readStructEnd();
258
-		
259
-		
260
-		
261
-	}
262
-	
263
-	public function write($output){
264
-		
265
-		$xfer = 0;
266
-		$xfer += $output->writeStructBegin();
267
-		
268
-		if($this->couponNo !== null) {
269
-			
270
-			$xfer += $output->writeFieldBegin('couponNo');
271
-			$xfer += $output->writeString($this->couponNo);
272
-			
273
-			$xfer += $output->writeFieldEnd();
274
-		}
275
-		
276
-		
277
-		if($this->couponName !== null) {
278
-			
279
-			$xfer += $output->writeFieldBegin('couponName');
280
-			$xfer += $output->writeString($this->couponName);
281
-			
282
-			$xfer += $output->writeFieldEnd();
283
-		}
284
-		
285
-		
286
-		if($this->buy !== null) {
287
-			
288
-			$xfer += $output->writeFieldBegin('buy');
289
-			$xfer += $output->writeString($this->buy);
290
-			
291
-			$xfer += $output->writeFieldEnd();
292
-		}
293
-		
294
-		
295
-		if($this->fav !== null) {
296
-			
297
-			$xfer += $output->writeFieldBegin('fav');
298
-			$xfer += $output->writeString($this->fav);
299
-			
300
-			$xfer += $output->writeFieldEnd();
301
-		}
302
-		
303
-		
304
-		if($this->activateBeginTime !== null) {
305
-			
306
-			$xfer += $output->writeFieldBegin('activateBeginTime');
307
-			$xfer += $output->writeI64($this->activateBeginTime);
308
-			
309
-			$xfer += $output->writeFieldEnd();
310
-		}
311
-		
312
-		
313
-		if($this->activateEndTime !== null) {
314
-			
315
-			$xfer += $output->writeFieldBegin('activateEndTime');
316
-			$xfer += $output->writeI64($this->activateEndTime);
317
-			
318
-			$xfer += $output->writeFieldEnd();
319
-		}
320
-		
321
-		
322
-		if($this->useBeginTime !== null) {
323
-			
324
-			$xfer += $output->writeFieldBegin('useBeginTime');
325
-			$xfer += $output->writeI64($this->useBeginTime);
326
-			
327
-			$xfer += $output->writeFieldEnd();
328
-		}
329
-		
330
-		
331
-		if($this->useEndTime !== null) {
332
-			
333
-			$xfer += $output->writeFieldBegin('useEndTime');
334
-			$xfer += $output->writeI64($this->useEndTime);
335
-			
336
-			$xfer += $output->writeFieldEnd();
337
-		}
338
-		
339
-		
340
-		if($this->totalAmount !== null) {
341
-			
342
-			$xfer += $output->writeFieldBegin('totalAmount');
343
-			$xfer += $output->writeI64($this->totalAmount);
344
-			
345
-			$xfer += $output->writeFieldEnd();
346
-		}
347
-		
348
-		
349
-		if($this->activedAmount !== null) {
350
-			
351
-			$xfer += $output->writeFieldBegin('activedAmount');
352
-			$xfer += $output->writeI64($this->activedAmount);
353
-			
354
-			$xfer += $output->writeFieldEnd();
355
-		}
356
-		
357
-		
358
-		$xfer += $output->writeFieldStop();
359
-		$xfer += $output->writeStructEnd();
360
-		return $xfer;
361
-	}
362
-	
363
-}
364
-
365
-?>

+ 0 - 129
extend/vip_sdk/src/com/vip/api/promotion/vis/common/FileFid.php

@@ -1,129 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\common;
12
-
13
-class FileFid {
14
-	
15
-	static $_TSPEC;
16
-	public $fid = null;
17
-	public $isSync = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'fid'
26
-			),
27
-			2 => array(
28
-			'var' => 'isSync'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['fid'])){
39
-				
40
-				$this->fid = $vals['fid'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['isSync'])){
45
-				
46
-				$this->isSync = $vals['isSync'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'FileFid';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("fid" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->fid);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("isSync" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readBool($this->isSync);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->fid !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('fid');
111
-			$xfer += $output->writeString($this->fid);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		$xfer += $output->writeFieldBegin('isSync');
118
-		$xfer += $output->writeBool($this->isSync);
119
-		
120
-		$xfer += $output->writeFieldEnd();
121
-		
122
-		$xfer += $output->writeFieldStop();
123
-		$xfer += $output->writeStructEnd();
124
-		return $xfer;
125
-	}
126
-	
127
-}
128
-
129
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/api/promotion/vis/common/NameValueItem.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\common;
12
-
13
-class NameValueItem {
14
-	
15
-	static $_TSPEC;
16
-	public $name = null;
17
-	public $value = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'name'
26
-			),
27
-			2 => array(
28
-			'var' => 'value'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['name'])){
39
-				
40
-				$this->name = $vals['name'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['value'])){
45
-				
46
-				$this->value = $vals['value'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'NameValueItem';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("name" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->name);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("value" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->value);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->name !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('name');
111
-			$xfer += $output->writeString($this->name);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->value !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('value');
120
-			$xfer += $output->writeString($this->value);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/api/promotion/vis/common/Pager.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\common;
12
-
13
-class Pager {
14
-	
15
-	static $_TSPEC;
16
-	public $page = null;
17
-	public $size = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'page'
26
-			),
27
-			2 => array(
28
-			'var' => 'size'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['page'])){
39
-				
40
-				$this->page = $vals['page'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['size'])){
45
-				
46
-				$this->size = $vals['size'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'Pager';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("page" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readI32($this->page); 
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("size" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readI32($this->size); 
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->page !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('page');
111
-			$xfer += $output->writeI32($this->page);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->size !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('size');
120
-			$xfer += $output->writeI32($this->size);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 421
extend/vip_sdk/src/com/vip/api/promotion/vis/common/ResultModel.php

@@ -1,421 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\common;
12
-
13
-class ResultModel {
14
-	
15
-	static $_TSPEC;
16
-	public $code = null;
17
-	public $msg = null;
18
-	public $doNextStep = null;
19
-	public $fid = null;
20
-	public $errorMsg = null;
21
-	public $totalCount = null;
22
-	public $successCount = null;
23
-	public $failCount = null;
24
-	public $noticeMsgList = null;
25
-	public $errorType = null;
26
-	
27
-	public function __construct($vals=null){
28
-		
29
-		if (!isset(self::$_TSPEC)){
30
-			
31
-			self::$_TSPEC = array(
32
-			1 => array(
33
-			'var' => 'code'
34
-			),
35
-			2 => array(
36
-			'var' => 'msg'
37
-			),
38
-			3 => array(
39
-			'var' => 'doNextStep'
40
-			),
41
-			4 => array(
42
-			'var' => 'fid'
43
-			),
44
-			5 => array(
45
-			'var' => 'errorMsg'
46
-			),
47
-			6 => array(
48
-			'var' => 'totalCount'
49
-			),
50
-			7 => array(
51
-			'var' => 'successCount'
52
-			),
53
-			8 => array(
54
-			'var' => 'failCount'
55
-			),
56
-			9 => array(
57
-			'var' => 'noticeMsgList'
58
-			),
59
-			10 => array(
60
-			'var' => 'errorType'
61
-			),
62
-			
63
-			);
64
-			
65
-		}
66
-		
67
-		if (is_array($vals)){
68
-			
69
-			
70
-			if (isset($vals['code'])){
71
-				
72
-				$this->code = $vals['code'];
73
-			}
74
-			
75
-			
76
-			if (isset($vals['msg'])){
77
-				
78
-				$this->msg = $vals['msg'];
79
-			}
80
-			
81
-			
82
-			if (isset($vals['doNextStep'])){
83
-				
84
-				$this->doNextStep = $vals['doNextStep'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['fid'])){
89
-				
90
-				$this->fid = $vals['fid'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['errorMsg'])){
95
-				
96
-				$this->errorMsg = $vals['errorMsg'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['totalCount'])){
101
-				
102
-				$this->totalCount = $vals['totalCount'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['successCount'])){
107
-				
108
-				$this->successCount = $vals['successCount'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['failCount'])){
113
-				
114
-				$this->failCount = $vals['failCount'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['noticeMsgList'])){
119
-				
120
-				$this->noticeMsgList = $vals['noticeMsgList'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['errorType'])){
125
-				
126
-				$this->errorType = $vals['errorType'];
127
-			}
128
-			
129
-			
130
-		}
131
-		
132
-	}
133
-	
134
-	
135
-	public function getName(){
136
-		
137
-		return 'ResultModel';
138
-	}
139
-	
140
-	public function read($input){
141
-		
142
-		$input->readStructBegin();
143
-		while(true){
144
-			
145
-			$schemeField = $input->readFieldBegin();
146
-			if ($schemeField == null) break;
147
-			$needSkip = true;
148
-			
149
-			
150
-			if ("code" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readI32($this->code); 
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("msg" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->msg);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("doNextStep" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readBool($this->doNextStep);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("fid" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->fid);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("errorMsg" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				
194
-				$this->errorMsg = array();
195
-				$_size1 = 0;
196
-				$input->readListBegin();
197
-				while(true){
198
-					
199
-					try{
200
-						
201
-						$elem1 = null;
202
-						$input->readString($elem1);
203
-						
204
-						$this->errorMsg[$_size1++] = $elem1;
205
-					}
206
-					catch(\Exception $e){
207
-						
208
-						break;
209
-					}
210
-				}
211
-				
212
-				$input->readListEnd();
213
-				
214
-			}
215
-			
216
-			
217
-			
218
-			
219
-			if ("totalCount" == $schemeField){
220
-				
221
-				$needSkip = false;
222
-				$input->readI32($this->totalCount); 
223
-				
224
-			}
225
-			
226
-			
227
-			
228
-			
229
-			if ("successCount" == $schemeField){
230
-				
231
-				$needSkip = false;
232
-				$input->readI32($this->successCount); 
233
-				
234
-			}
235
-			
236
-			
237
-			
238
-			
239
-			if ("failCount" == $schemeField){
240
-				
241
-				$needSkip = false;
242
-				$input->readI32($this->failCount); 
243
-				
244
-			}
245
-			
246
-			
247
-			
248
-			
249
-			if ("noticeMsgList" == $schemeField){
250
-				
251
-				$needSkip = false;
252
-				
253
-				$this->noticeMsgList = array();
254
-				$_size2 = 0;
255
-				$input->readListBegin();
256
-				while(true){
257
-					
258
-					try{
259
-						
260
-						$elem2 = null;
261
-						$input->readString($elem2);
262
-						
263
-						$this->noticeMsgList[$_size2++] = $elem2;
264
-					}
265
-					catch(\Exception $e){
266
-						
267
-						break;
268
-					}
269
-				}
270
-				
271
-				$input->readListEnd();
272
-				
273
-			}
274
-			
275
-			
276
-			
277
-			
278
-			if ("errorType" == $schemeField){
279
-				
280
-				$needSkip = false;
281
-				$input->readString($this->errorType);
282
-				
283
-			}
284
-			
285
-			
286
-			
287
-			if($needSkip){
288
-				
289
-				\Osp\Protocol\ProtocolUtil::skip($input);
290
-			}
291
-			
292
-			$input->readFieldEnd();
293
-		}
294
-		
295
-		$input->readStructEnd();
296
-		
297
-		
298
-		
299
-	}
300
-	
301
-	public function write($output){
302
-		
303
-		$xfer = 0;
304
-		$xfer += $output->writeStructBegin();
305
-		
306
-		$xfer += $output->writeFieldBegin('code');
307
-		$xfer += $output->writeI32($this->code);
308
-		
309
-		$xfer += $output->writeFieldEnd();
310
-		
311
-		$xfer += $output->writeFieldBegin('msg');
312
-		$xfer += $output->writeString($this->msg);
313
-		
314
-		$xfer += $output->writeFieldEnd();
315
-		
316
-		if($this->doNextStep !== null) {
317
-			
318
-			$xfer += $output->writeFieldBegin('doNextStep');
319
-			$xfer += $output->writeBool($this->doNextStep);
320
-			
321
-			$xfer += $output->writeFieldEnd();
322
-		}
323
-		
324
-		
325
-		if($this->fid !== null) {
326
-			
327
-			$xfer += $output->writeFieldBegin('fid');
328
-			$xfer += $output->writeString($this->fid);
329
-			
330
-			$xfer += $output->writeFieldEnd();
331
-		}
332
-		
333
-		
334
-		if($this->errorMsg !== null) {
335
-			
336
-			$xfer += $output->writeFieldBegin('errorMsg');
337
-			
338
-			if (!is_array($this->errorMsg)){
339
-				
340
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
341
-			}
342
-			
343
-			$output->writeListBegin();
344
-			foreach ($this->errorMsg as $iter0){
345
-				
346
-				$xfer += $output->writeString($iter0);
347
-				
348
-			}
349
-			
350
-			$output->writeListEnd();
351
-			
352
-			$xfer += $output->writeFieldEnd();
353
-		}
354
-		
355
-		
356
-		if($this->totalCount !== null) {
357
-			
358
-			$xfer += $output->writeFieldBegin('totalCount');
359
-			$xfer += $output->writeI32($this->totalCount);
360
-			
361
-			$xfer += $output->writeFieldEnd();
362
-		}
363
-		
364
-		
365
-		if($this->successCount !== null) {
366
-			
367
-			$xfer += $output->writeFieldBegin('successCount');
368
-			$xfer += $output->writeI32($this->successCount);
369
-			
370
-			$xfer += $output->writeFieldEnd();
371
-		}
372
-		
373
-		
374
-		if($this->failCount !== null) {
375
-			
376
-			$xfer += $output->writeFieldBegin('failCount');
377
-			$xfer += $output->writeI32($this->failCount);
378
-			
379
-			$xfer += $output->writeFieldEnd();
380
-		}
381
-		
382
-		
383
-		if($this->noticeMsgList !== null) {
384
-			
385
-			$xfer += $output->writeFieldBegin('noticeMsgList');
386
-			
387
-			if (!is_array($this->noticeMsgList)){
388
-				
389
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
390
-			}
391
-			
392
-			$output->writeListBegin();
393
-			foreach ($this->noticeMsgList as $iter0){
394
-				
395
-				$xfer += $output->writeString($iter0);
396
-				
397
-			}
398
-			
399
-			$output->writeListEnd();
400
-			
401
-			$xfer += $output->writeFieldEnd();
402
-		}
403
-		
404
-		
405
-		if($this->errorType !== null) {
406
-			
407
-			$xfer += $output->writeFieldBegin('errorType');
408
-			$xfer += $output->writeString($this->errorType);
409
-			
410
-			$xfer += $output->writeFieldEnd();
411
-		}
412
-		
413
-		
414
-		$xfer += $output->writeFieldStop();
415
-		$xfer += $output->writeStructEnd();
416
-		return $xfer;
417
-	}
418
-	
419
-}
420
-
421
-?>

+ 0 - 129
extend/vip_sdk/src/com/vip/api/promotion/vis/common/TimedTaskResultModel.php

@@ -1,129 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\common;
12
-
13
-class TimedTaskResultModel {
14
-	
15
-	static $_TSPEC;
16
-	public $ResultCode = null;
17
-	public $Message = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'ResultCode'
26
-			),
27
-			2 => array(
28
-			'var' => 'Message'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['ResultCode'])){
39
-				
40
-				$this->ResultCode = $vals['ResultCode'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['Message'])){
45
-				
46
-				$this->Message = $vals['Message'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'TimedTaskResultModel';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("ResultCode" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->ResultCode);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("Message" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->Message);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		$xfer += $output->writeFieldBegin('ResultCode');
109
-		$xfer += $output->writeString($this->ResultCode);
110
-		
111
-		$xfer += $output->writeFieldEnd();
112
-		
113
-		if($this->Message !== null) {
114
-			
115
-			$xfer += $output->writeFieldBegin('Message');
116
-			$xfer += $output->writeString($this->Message);
117
-			
118
-			$xfer += $output->writeFieldEnd();
119
-		}
120
-		
121
-		
122
-		$xfer += $output->writeFieldStop();
123
-		$xfer += $output->writeStructEnd();
124
-		return $xfer;
125
-	}
126
-	
127
-}
128
-
129
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ActivityInfoModel.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ActivityInfoModel {
14
-	
15
-	static $_TSPEC;
16
-	public $activityType = null;
17
-	public $bearType = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'activityType'
26
-			),
27
-			2 => array(
28
-			'var' => 'bearType'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['activityType'])){
39
-				
40
-				$this->activityType = $vals['activityType'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['bearType'])){
45
-				
46
-				$this->bearType = $vals['bearType'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'ActivityInfoModel';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("activityType" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readByte($this->activityType); 
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("bearType" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readByte($this->bearType); 
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->activityType !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('activityType');
111
-			$xfer += $output->writeByte($this->activityType);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->bearType !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('bearType');
120
-			$xfer += $output->writeByte($this->bearType);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 202
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ActivityModel.php

@@ -1,202 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ActivityModel {
14
-	
15
-	static $_TSPEC;
16
-	public $onlineStarttime = null;
17
-	public $onlineEndtime = null;
18
-	public $commodityList = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'onlineStarttime'
27
-			),
28
-			2 => array(
29
-			'var' => 'onlineEndtime'
30
-			),
31
-			3 => array(
32
-			'var' => 'commodityList'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['onlineStarttime'])){
43
-				
44
-				$this->onlineStarttime = $vals['onlineStarttime'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['onlineEndtime'])){
49
-				
50
-				$this->onlineEndtime = $vals['onlineEndtime'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['commodityList'])){
55
-				
56
-				$this->commodityList = $vals['commodityList'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'ActivityModel';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("onlineStarttime" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->onlineStarttime);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			
90
-			if ("onlineEndtime" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readString($this->onlineEndtime);
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("commodityList" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				
104
-				$this->commodityList = array();
105
-				$_size0 = 0;
106
-				$input->readListBegin();
107
-				while(true){
108
-					
109
-					try{
110
-						
111
-						$elem0 = null;
112
-						
113
-						$elem0 = new \com\vip\api\promotion\vis\protcontract\service\CommodityModel();
114
-						$elem0->read($input);
115
-						
116
-						$this->commodityList[$_size0++] = $elem0;
117
-					}
118
-					catch(\Exception $e){
119
-						
120
-						break;
121
-					}
122
-				}
123
-				
124
-				$input->readListEnd();
125
-				
126
-			}
127
-			
128
-			
129
-			
130
-			if($needSkip){
131
-				
132
-				\Osp\Protocol\ProtocolUtil::skip($input);
133
-			}
134
-			
135
-			$input->readFieldEnd();
136
-		}
137
-		
138
-		$input->readStructEnd();
139
-		
140
-		
141
-		
142
-	}
143
-	
144
-	public function write($output){
145
-		
146
-		$xfer = 0;
147
-		$xfer += $output->writeStructBegin();
148
-		
149
-		if($this->onlineStarttime !== null) {
150
-			
151
-			$xfer += $output->writeFieldBegin('onlineStarttime');
152
-			$xfer += $output->writeString($this->onlineStarttime);
153
-			
154
-			$xfer += $output->writeFieldEnd();
155
-		}
156
-		
157
-		
158
-		if($this->onlineEndtime !== null) {
159
-			
160
-			$xfer += $output->writeFieldBegin('onlineEndtime');
161
-			$xfer += $output->writeString($this->onlineEndtime);
162
-			
163
-			$xfer += $output->writeFieldEnd();
164
-		}
165
-		
166
-		
167
-		if($this->commodityList !== null) {
168
-			
169
-			$xfer += $output->writeFieldBegin('commodityList');
170
-			
171
-			if (!is_array($this->commodityList)){
172
-				
173
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
174
-			}
175
-			
176
-			$output->writeListBegin();
177
-			foreach ($this->commodityList as $iter0){
178
-				
179
-				
180
-				if (!is_object($iter0)) {
181
-					
182
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
183
-				}
184
-				
185
-				$xfer += $iter0->write($output);
186
-				
187
-			}
188
-			
189
-			$output->writeListEnd();
190
-			
191
-			$xfer += $output->writeFieldEnd();
192
-		}
193
-		
194
-		
195
-		$xfer += $output->writeFieldStop();
196
-		$xfer += $output->writeStructEnd();
197
-		return $xfer;
198
-	}
199
-	
200
-}
201
-
202
-?>

+ 0 - 112
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BatchProtContractDetailModel.php

@@ -1,112 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class BatchProtContractDetailModel {
14
-	
15
-	static $_TSPEC;
16
-	public $mainInfo = null;
17
-	
18
-	public function __construct($vals=null){
19
-		
20
-		if (!isset(self::$_TSPEC)){
21
-			
22
-			self::$_TSPEC = array(
23
-			1 => array(
24
-			'var' => 'mainInfo'
25
-			),
26
-			
27
-			);
28
-			
29
-		}
30
-		
31
-		if (is_array($vals)){
32
-			
33
-			
34
-			if (isset($vals['mainInfo'])){
35
-				
36
-				$this->mainInfo = $vals['mainInfo'];
37
-			}
38
-			
39
-			
40
-		}
41
-		
42
-	}
43
-	
44
-	
45
-	public function getName(){
46
-		
47
-		return 'BatchProtContractDetailModel';
48
-	}
49
-	
50
-	public function read($input){
51
-		
52
-		$input->readStructBegin();
53
-		while(true){
54
-			
55
-			$schemeField = $input->readFieldBegin();
56
-			if ($schemeField == null) break;
57
-			$needSkip = true;
58
-			
59
-			
60
-			if ("mainInfo" == $schemeField){
61
-				
62
-				$needSkip = false;
63
-				
64
-				$this->mainInfo = new \com\vip\api\promotion\vis\protcontract\service\ProtContractMainInfoModel();
65
-				$this->mainInfo->read($input);
66
-				
67
-			}
68
-			
69
-			
70
-			
71
-			if($needSkip){
72
-				
73
-				\Osp\Protocol\ProtocolUtil::skip($input);
74
-			}
75
-			
76
-			$input->readFieldEnd();
77
-		}
78
-		
79
-		$input->readStructEnd();
80
-		
81
-		
82
-		
83
-	}
84
-	
85
-	public function write($output){
86
-		
87
-		$xfer = 0;
88
-		$xfer += $output->writeStructBegin();
89
-		
90
-		if($this->mainInfo !== null) {
91
-			
92
-			$xfer += $output->writeFieldBegin('mainInfo');
93
-			
94
-			if (!is_object($this->mainInfo)) {
95
-				
96
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
97
-			}
98
-			
99
-			$xfer += $this->mainInfo->write($output);
100
-			
101
-			$xfer += $output->writeFieldEnd();
102
-		}
103
-		
104
-		
105
-		$xfer += $output->writeFieldStop();
106
-		$xfer += $output->writeStructEnd();
107
-		return $xfer;
108
-	}
109
-	
110
-}
111
-
112
-?>

+ 0 - 197
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BatchProtContractDetailParam.php

@@ -1,197 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class BatchProtContractDetailParam {
14
-	
15
-	static $_TSPEC;
16
-	public $protNos = null;
17
-	public $dataAreaIds = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'protNos'
26
-			),
27
-			3 => array(
28
-			'var' => 'dataAreaIds'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['protNos'])){
39
-				
40
-				$this->protNos = $vals['protNos'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['dataAreaIds'])){
45
-				
46
-				$this->dataAreaIds = $vals['dataAreaIds'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'BatchProtContractDetailParam';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("protNos" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				
74
-				$this->protNos = array();
75
-				$_size0 = 0;
76
-				$input->readListBegin();
77
-				while(true){
78
-					
79
-					try{
80
-						
81
-						$elem0 = null;
82
-						$input->readString($elem0);
83
-						
84
-						$this->protNos[$_size0++] = $elem0;
85
-					}
86
-					catch(\Exception $e){
87
-						
88
-						break;
89
-					}
90
-				}
91
-				
92
-				$input->readListEnd();
93
-				
94
-			}
95
-			
96
-			
97
-			
98
-			
99
-			if ("dataAreaIds" == $schemeField){
100
-				
101
-				$needSkip = false;
102
-				
103
-				$this->dataAreaIds = array();
104
-				$_size1 = 0;
105
-				$input->readListBegin();
106
-				while(true){
107
-					
108
-					try{
109
-						
110
-						$elem1 = null;
111
-						$input->readString($elem1);
112
-						
113
-						$this->dataAreaIds[$_size1++] = $elem1;
114
-					}
115
-					catch(\Exception $e){
116
-						
117
-						break;
118
-					}
119
-				}
120
-				
121
-				$input->readListEnd();
122
-				
123
-			}
124
-			
125
-			
126
-			
127
-			if($needSkip){
128
-				
129
-				\Osp\Protocol\ProtocolUtil::skip($input);
130
-			}
131
-			
132
-			$input->readFieldEnd();
133
-		}
134
-		
135
-		$input->readStructEnd();
136
-		
137
-		
138
-		
139
-	}
140
-	
141
-	public function write($output){
142
-		
143
-		$xfer = 0;
144
-		$xfer += $output->writeStructBegin();
145
-		
146
-		if($this->protNos !== null) {
147
-			
148
-			$xfer += $output->writeFieldBegin('protNos');
149
-			
150
-			if (!is_array($this->protNos)){
151
-				
152
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
153
-			}
154
-			
155
-			$output->writeListBegin();
156
-			foreach ($this->protNos as $iter0){
157
-				
158
-				$xfer += $output->writeString($iter0);
159
-				
160
-			}
161
-			
162
-			$output->writeListEnd();
163
-			
164
-			$xfer += $output->writeFieldEnd();
165
-		}
166
-		
167
-		
168
-		if($this->dataAreaIds !== null) {
169
-			
170
-			$xfer += $output->writeFieldBegin('dataAreaIds');
171
-			
172
-			if (!is_array($this->dataAreaIds)){
173
-				
174
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
175
-			}
176
-			
177
-			$output->writeListBegin();
178
-			foreach ($this->dataAreaIds as $iter0){
179
-				
180
-				$xfer += $output->writeString($iter0);
181
-				
182
-			}
183
-			
184
-			$output->writeListEnd();
185
-			
186
-			$xfer += $output->writeFieldEnd();
187
-		}
188
-		
189
-		
190
-		$xfer += $output->writeFieldStop();
191
-		$xfer += $output->writeStructEnd();
192
-		return $xfer;
193
-	}
194
-	
195
-}
196
-
197
-?>

+ 0 - 336
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BrandGoods.php

@@ -1,336 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class BrandGoods {
14
-	
15
-	static $_TSPEC;
16
-	public $brandSn = null;
17
-	public $brandName = null;
18
-	public $totalGoodsValue = null;
19
-	public $vipBearValue = null;
20
-	public $vendorBearValue = null;
21
-	public $memo = null;
22
-	public $brandDeduction = null;
23
-	public $newDeduction = null;
24
-	public $vipScaleValue = null;
25
-	
26
-	public function __construct($vals=null){
27
-		
28
-		if (!isset(self::$_TSPEC)){
29
-			
30
-			self::$_TSPEC = array(
31
-			1 => array(
32
-			'var' => 'brandSn'
33
-			),
34
-			2 => array(
35
-			'var' => 'brandName'
36
-			),
37
-			3 => array(
38
-			'var' => 'totalGoodsValue'
39
-			),
40
-			4 => array(
41
-			'var' => 'vipBearValue'
42
-			),
43
-			5 => array(
44
-			'var' => 'vendorBearValue'
45
-			),
46
-			6 => array(
47
-			'var' => 'memo'
48
-			),
49
-			7 => array(
50
-			'var' => 'brandDeduction'
51
-			),
52
-			8 => array(
53
-			'var' => 'newDeduction'
54
-			),
55
-			9 => array(
56
-			'var' => 'vipScaleValue'
57
-			),
58
-			
59
-			);
60
-			
61
-		}
62
-		
63
-		if (is_array($vals)){
64
-			
65
-			
66
-			if (isset($vals['brandSn'])){
67
-				
68
-				$this->brandSn = $vals['brandSn'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['brandName'])){
73
-				
74
-				$this->brandName = $vals['brandName'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['totalGoodsValue'])){
79
-				
80
-				$this->totalGoodsValue = $vals['totalGoodsValue'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['vipBearValue'])){
85
-				
86
-				$this->vipBearValue = $vals['vipBearValue'];
87
-			}
88
-			
89
-			
90
-			if (isset($vals['vendorBearValue'])){
91
-				
92
-				$this->vendorBearValue = $vals['vendorBearValue'];
93
-			}
94
-			
95
-			
96
-			if (isset($vals['memo'])){
97
-				
98
-				$this->memo = $vals['memo'];
99
-			}
100
-			
101
-			
102
-			if (isset($vals['brandDeduction'])){
103
-				
104
-				$this->brandDeduction = $vals['brandDeduction'];
105
-			}
106
-			
107
-			
108
-			if (isset($vals['newDeduction'])){
109
-				
110
-				$this->newDeduction = $vals['newDeduction'];
111
-			}
112
-			
113
-			
114
-			if (isset($vals['vipScaleValue'])){
115
-				
116
-				$this->vipScaleValue = $vals['vipScaleValue'];
117
-			}
118
-			
119
-			
120
-		}
121
-		
122
-	}
123
-	
124
-	
125
-	public function getName(){
126
-		
127
-		return 'BrandGoods';
128
-	}
129
-	
130
-	public function read($input){
131
-		
132
-		$input->readStructBegin();
133
-		while(true){
134
-			
135
-			$schemeField = $input->readFieldBegin();
136
-			if ($schemeField == null) break;
137
-			$needSkip = true;
138
-			
139
-			
140
-			if ("brandSn" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readString($this->brandSn);
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("brandName" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->brandName);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("totalGoodsValue" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readI32($this->totalGoodsValue); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("vipBearValue" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readI32($this->vipBearValue); 
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("vendorBearValue" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readI32($this->vendorBearValue); 
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("memo" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readString($this->memo);
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("brandDeduction" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readByte($this->brandDeduction); 
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("newDeduction" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readByte($this->newDeduction); 
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("vipScaleValue" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readDouble($this->vipScaleValue);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			if($needSkip){
230
-				
231
-				\Osp\Protocol\ProtocolUtil::skip($input);
232
-			}
233
-			
234
-			$input->readFieldEnd();
235
-		}
236
-		
237
-		$input->readStructEnd();
238
-		
239
-		
240
-		
241
-	}
242
-	
243
-	public function write($output){
244
-		
245
-		$xfer = 0;
246
-		$xfer += $output->writeStructBegin();
247
-		
248
-		if($this->brandSn !== null) {
249
-			
250
-			$xfer += $output->writeFieldBegin('brandSn');
251
-			$xfer += $output->writeString($this->brandSn);
252
-			
253
-			$xfer += $output->writeFieldEnd();
254
-		}
255
-		
256
-		
257
-		if($this->brandName !== null) {
258
-			
259
-			$xfer += $output->writeFieldBegin('brandName');
260
-			$xfer += $output->writeString($this->brandName);
261
-			
262
-			$xfer += $output->writeFieldEnd();
263
-		}
264
-		
265
-		
266
-		if($this->totalGoodsValue !== null) {
267
-			
268
-			$xfer += $output->writeFieldBegin('totalGoodsValue');
269
-			$xfer += $output->writeI32($this->totalGoodsValue);
270
-			
271
-			$xfer += $output->writeFieldEnd();
272
-		}
273
-		
274
-		
275
-		if($this->vipBearValue !== null) {
276
-			
277
-			$xfer += $output->writeFieldBegin('vipBearValue');
278
-			$xfer += $output->writeI32($this->vipBearValue);
279
-			
280
-			$xfer += $output->writeFieldEnd();
281
-		}
282
-		
283
-		
284
-		if($this->vendorBearValue !== null) {
285
-			
286
-			$xfer += $output->writeFieldBegin('vendorBearValue');
287
-			$xfer += $output->writeI32($this->vendorBearValue);
288
-			
289
-			$xfer += $output->writeFieldEnd();
290
-		}
291
-		
292
-		
293
-		if($this->memo !== null) {
294
-			
295
-			$xfer += $output->writeFieldBegin('memo');
296
-			$xfer += $output->writeString($this->memo);
297
-			
298
-			$xfer += $output->writeFieldEnd();
299
-		}
300
-		
301
-		
302
-		if($this->brandDeduction !== null) {
303
-			
304
-			$xfer += $output->writeFieldBegin('brandDeduction');
305
-			$xfer += $output->writeByte($this->brandDeduction);
306
-			
307
-			$xfer += $output->writeFieldEnd();
308
-		}
309
-		
310
-		
311
-		if($this->newDeduction !== null) {
312
-			
313
-			$xfer += $output->writeFieldBegin('newDeduction');
314
-			$xfer += $output->writeByte($this->newDeduction);
315
-			
316
-			$xfer += $output->writeFieldEnd();
317
-		}
318
-		
319
-		
320
-		if($this->vipScaleValue !== null) {
321
-			
322
-			$xfer += $output->writeFieldBegin('vipScaleValue');
323
-			$xfer += $output->writeDouble($this->vipScaleValue);
324
-			
325
-			$xfer += $output->writeFieldEnd();
326
-		}
327
-		
328
-		
329
-		$xfer += $output->writeFieldStop();
330
-		$xfer += $output->writeStructEnd();
331
-		return $xfer;
332
-	}
333
-	
334
-}
335
-
336
-?>

+ 0 - 133
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/BuyAndCutInfo.php

@@ -1,133 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class BuyAndCutInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $buy = null;
17
-	public $cut = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'buy'
26
-			),
27
-			2 => array(
28
-			'var' => 'cut'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['buy'])){
39
-				
40
-				$this->buy = $vals['buy'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['cut'])){
45
-				
46
-				$this->cut = $vals['cut'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'BuyAndCutInfo';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("buy" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readString($this->buy);
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("cut" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->cut);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			if($needSkip){
90
-				
91
-				\Osp\Protocol\ProtocolUtil::skip($input);
92
-			}
93
-			
94
-			$input->readFieldEnd();
95
-		}
96
-		
97
-		$input->readStructEnd();
98
-		
99
-		
100
-		
101
-	}
102
-	
103
-	public function write($output){
104
-		
105
-		$xfer = 0;
106
-		$xfer += $output->writeStructBegin();
107
-		
108
-		if($this->buy !== null) {
109
-			
110
-			$xfer += $output->writeFieldBegin('buy');
111
-			$xfer += $output->writeString($this->buy);
112
-			
113
-			$xfer += $output->writeFieldEnd();
114
-		}
115
-		
116
-		
117
-		if($this->cut !== null) {
118
-			
119
-			$xfer += $output->writeFieldBegin('cut');
120
-			$xfer += $output->writeString($this->cut);
121
-			
122
-			$xfer += $output->writeFieldEnd();
123
-		}
124
-		
125
-		
126
-		$xfer += $output->writeFieldStop();
127
-		$xfer += $output->writeStructEnd();
128
-		return $xfer;
129
-	}
130
-	
131
-}
132
-
133
-?>

+ 0 - 179
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/CheckCaptchaParam.php

@@ -1,179 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class CheckCaptchaParam {
14
-	
15
-	static $_TSPEC;
16
-	public $captchaCode = null;
17
-	public $captchaType = null;
18
-	public $ip = null;
19
-	public $cid = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'captchaCode'
28
-			),
29
-			2 => array(
30
-			'var' => 'captchaType'
31
-			),
32
-			3 => array(
33
-			'var' => 'ip'
34
-			),
35
-			4 => array(
36
-			'var' => 'cid'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['captchaCode'])){
47
-				
48
-				$this->captchaCode = $vals['captchaCode'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['captchaType'])){
53
-				
54
-				$this->captchaType = $vals['captchaType'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['ip'])){
59
-				
60
-				$this->ip = $vals['ip'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['cid'])){
65
-				
66
-				$this->cid = $vals['cid'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'CheckCaptchaParam';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("captchaCode" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readString($this->captchaCode);
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("captchaType" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readByte($this->captchaType); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("ip" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->ip);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("cid" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->cid);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			if($needSkip){
130
-				
131
-				\Osp\Protocol\ProtocolUtil::skip($input);
132
-			}
133
-			
134
-			$input->readFieldEnd();
135
-		}
136
-		
137
-		$input->readStructEnd();
138
-		
139
-		
140
-		
141
-	}
142
-	
143
-	public function write($output){
144
-		
145
-		$xfer = 0;
146
-		$xfer += $output->writeStructBegin();
147
-		
148
-		$xfer += $output->writeFieldBegin('captchaCode');
149
-		$xfer += $output->writeString($this->captchaCode);
150
-		
151
-		$xfer += $output->writeFieldEnd();
152
-		
153
-		$xfer += $output->writeFieldBegin('captchaType');
154
-		$xfer += $output->writeByte($this->captchaType);
155
-		
156
-		$xfer += $output->writeFieldEnd();
157
-		
158
-		$xfer += $output->writeFieldBegin('ip');
159
-		$xfer += $output->writeString($this->ip);
160
-		
161
-		$xfer += $output->writeFieldEnd();
162
-		
163
-		if($this->cid !== null) {
164
-			
165
-			$xfer += $output->writeFieldBegin('cid');
166
-			$xfer += $output->writeString($this->cid);
167
-			
168
-			$xfer += $output->writeFieldEnd();
169
-		}
170
-		
171
-		
172
-		$xfer += $output->writeFieldStop();
173
-		$xfer += $output->writeStructEnd();
174
-		return $xfer;
175
-	}
176
-	
177
-}
178
-
179
-?>

+ 0 - 568
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/CommodityModel.php

@@ -1,568 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class CommodityModel {
14
-	
15
-	static $_TSPEC;
16
-	public $mid = null;
17
-	public $commodityNo = null;
18
-	public $barCode = null;
19
-	public $commodityName = null;
20
-	public $brandId = null;
21
-	public $spellTypeDesc = null;
22
-	public $spellTypeFullDesc = null;
23
-	public $spellPersonNum = null;
24
-	public $spellNumLimit = null;
25
-	public $preferentialTypeDesc = null;
26
-	public $prepayPreferential = null;
27
-	public $prepayTypeDesc = null;
28
-	public $prepayValue = null;
29
-	public $discountValue = null;
30
-	public $actPrice = null;
31
-	public $userHelpCount = null;
32
-	public $floorPrice = null;
33
-	
34
-	public function __construct($vals=null){
35
-		
36
-		if (!isset(self::$_TSPEC)){
37
-			
38
-			self::$_TSPEC = array(
39
-			1 => array(
40
-			'var' => 'mid'
41
-			),
42
-			2 => array(
43
-			'var' => 'commodityNo'
44
-			),
45
-			3 => array(
46
-			'var' => 'barCode'
47
-			),
48
-			4 => array(
49
-			'var' => 'commodityName'
50
-			),
51
-			5 => array(
52
-			'var' => 'brandId'
53
-			),
54
-			6 => array(
55
-			'var' => 'spellTypeDesc'
56
-			),
57
-			7 => array(
58
-			'var' => 'spellTypeFullDesc'
59
-			),
60
-			8 => array(
61
-			'var' => 'spellPersonNum'
62
-			),
63
-			9 => array(
64
-			'var' => 'spellNumLimit'
65
-			),
66
-			10 => array(
67
-			'var' => 'preferentialTypeDesc'
68
-			),
69
-			11 => array(
70
-			'var' => 'prepayPreferential'
71
-			),
72
-			12 => array(
73
-			'var' => 'prepayTypeDesc'
74
-			),
75
-			13 => array(
76
-			'var' => 'prepayValue'
77
-			),
78
-			14 => array(
79
-			'var' => 'discountValue'
80
-			),
81
-			16 => array(
82
-			'var' => 'actPrice'
83
-			),
84
-			17 => array(
85
-			'var' => 'userHelpCount'
86
-			),
87
-			18 => array(
88
-			'var' => 'floorPrice'
89
-			),
90
-			
91
-			);
92
-			
93
-		}
94
-		
95
-		if (is_array($vals)){
96
-			
97
-			
98
-			if (isset($vals['mid'])){
99
-				
100
-				$this->mid = $vals['mid'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['commodityNo'])){
105
-				
106
-				$this->commodityNo = $vals['commodityNo'];
107
-			}
108
-			
109
-			
110
-			if (isset($vals['barCode'])){
111
-				
112
-				$this->barCode = $vals['barCode'];
113
-			}
114
-			
115
-			
116
-			if (isset($vals['commodityName'])){
117
-				
118
-				$this->commodityName = $vals['commodityName'];
119
-			}
120
-			
121
-			
122
-			if (isset($vals['brandId'])){
123
-				
124
-				$this->brandId = $vals['brandId'];
125
-			}
126
-			
127
-			
128
-			if (isset($vals['spellTypeDesc'])){
129
-				
130
-				$this->spellTypeDesc = $vals['spellTypeDesc'];
131
-			}
132
-			
133
-			
134
-			if (isset($vals['spellTypeFullDesc'])){
135
-				
136
-				$this->spellTypeFullDesc = $vals['spellTypeFullDesc'];
137
-			}
138
-			
139
-			
140
-			if (isset($vals['spellPersonNum'])){
141
-				
142
-				$this->spellPersonNum = $vals['spellPersonNum'];
143
-			}
144
-			
145
-			
146
-			if (isset($vals['spellNumLimit'])){
147
-				
148
-				$this->spellNumLimit = $vals['spellNumLimit'];
149
-			}
150
-			
151
-			
152
-			if (isset($vals['preferentialTypeDesc'])){
153
-				
154
-				$this->preferentialTypeDesc = $vals['preferentialTypeDesc'];
155
-			}
156
-			
157
-			
158
-			if (isset($vals['prepayPreferential'])){
159
-				
160
-				$this->prepayPreferential = $vals['prepayPreferential'];
161
-			}
162
-			
163
-			
164
-			if (isset($vals['prepayTypeDesc'])){
165
-				
166
-				$this->prepayTypeDesc = $vals['prepayTypeDesc'];
167
-			}
168
-			
169
-			
170
-			if (isset($vals['prepayValue'])){
171
-				
172
-				$this->prepayValue = $vals['prepayValue'];
173
-			}
174
-			
175
-			
176
-			if (isset($vals['discountValue'])){
177
-				
178
-				$this->discountValue = $vals['discountValue'];
179
-			}
180
-			
181
-			
182
-			if (isset($vals['actPrice'])){
183
-				
184
-				$this->actPrice = $vals['actPrice'];
185
-			}
186
-			
187
-			
188
-			if (isset($vals['userHelpCount'])){
189
-				
190
-				$this->userHelpCount = $vals['userHelpCount'];
191
-			}
192
-			
193
-			
194
-			if (isset($vals['floorPrice'])){
195
-				
196
-				$this->floorPrice = $vals['floorPrice'];
197
-			}
198
-			
199
-			
200
-		}
201
-		
202
-	}
203
-	
204
-	
205
-	public function getName(){
206
-		
207
-		return 'CommodityModel';
208
-	}
209
-	
210
-	public function read($input){
211
-		
212
-		$input->readStructBegin();
213
-		while(true){
214
-			
215
-			$schemeField = $input->readFieldBegin();
216
-			if ($schemeField == null) break;
217
-			$needSkip = true;
218
-			
219
-			
220
-			if ("mid" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				$input->readString($this->mid);
224
-				
225
-			}
226
-			
227
-			
228
-			
229
-			
230
-			if ("commodityNo" == $schemeField){
231
-				
232
-				$needSkip = false;
233
-				$input->readString($this->commodityNo);
234
-				
235
-			}
236
-			
237
-			
238
-			
239
-			
240
-			if ("barCode" == $schemeField){
241
-				
242
-				$needSkip = false;
243
-				$input->readString($this->barCode);
244
-				
245
-			}
246
-			
247
-			
248
-			
249
-			
250
-			if ("commodityName" == $schemeField){
251
-				
252
-				$needSkip = false;
253
-				$input->readString($this->commodityName);
254
-				
255
-			}
256
-			
257
-			
258
-			
259
-			
260
-			if ("brandId" == $schemeField){
261
-				
262
-				$needSkip = false;
263
-				$input->readString($this->brandId);
264
-				
265
-			}
266
-			
267
-			
268
-			
269
-			
270
-			if ("spellTypeDesc" == $schemeField){
271
-				
272
-				$needSkip = false;
273
-				$input->readString($this->spellTypeDesc);
274
-				
275
-			}
276
-			
277
-			
278
-			
279
-			
280
-			if ("spellTypeFullDesc" == $schemeField){
281
-				
282
-				$needSkip = false;
283
-				$input->readString($this->spellTypeFullDesc);
284
-				
285
-			}
286
-			
287
-			
288
-			
289
-			
290
-			if ("spellPersonNum" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				$input->readI32($this->spellPersonNum); 
294
-				
295
-			}
296
-			
297
-			
298
-			
299
-			
300
-			if ("spellNumLimit" == $schemeField){
301
-				
302
-				$needSkip = false;
303
-				$input->readI32($this->spellNumLimit); 
304
-				
305
-			}
306
-			
307
-			
308
-			
309
-			
310
-			if ("preferentialTypeDesc" == $schemeField){
311
-				
312
-				$needSkip = false;
313
-				$input->readString($this->preferentialTypeDesc);
314
-				
315
-			}
316
-			
317
-			
318
-			
319
-			
320
-			if ("prepayPreferential" == $schemeField){
321
-				
322
-				$needSkip = false;
323
-				$input->readString($this->prepayPreferential);
324
-				
325
-			}
326
-			
327
-			
328
-			
329
-			
330
-			if ("prepayTypeDesc" == $schemeField){
331
-				
332
-				$needSkip = false;
333
-				$input->readString($this->prepayTypeDesc);
334
-				
335
-			}
336
-			
337
-			
338
-			
339
-			
340
-			if ("prepayValue" == $schemeField){
341
-				
342
-				$needSkip = false;
343
-				$input->readString($this->prepayValue);
344
-				
345
-			}
346
-			
347
-			
348
-			
349
-			
350
-			if ("discountValue" == $schemeField){
351
-				
352
-				$needSkip = false;
353
-				$input->readString($this->discountValue);
354
-				
355
-			}
356
-			
357
-			
358
-			
359
-			
360
-			if ("actPrice" == $schemeField){
361
-				
362
-				$needSkip = false;
363
-				$input->readString($this->actPrice);
364
-				
365
-			}
366
-			
367
-			
368
-			
369
-			
370
-			if ("userHelpCount" == $schemeField){
371
-				
372
-				$needSkip = false;
373
-				$input->readString($this->userHelpCount);
374
-				
375
-			}
376
-			
377
-			
378
-			
379
-			
380
-			if ("floorPrice" == $schemeField){
381
-				
382
-				$needSkip = false;
383
-				$input->readString($this->floorPrice);
384
-				
385
-			}
386
-			
387
-			
388
-			
389
-			if($needSkip){
390
-				
391
-				\Osp\Protocol\ProtocolUtil::skip($input);
392
-			}
393
-			
394
-			$input->readFieldEnd();
395
-		}
396
-		
397
-		$input->readStructEnd();
398
-		
399
-		
400
-		
401
-	}
402
-	
403
-	public function write($output){
404
-		
405
-		$xfer = 0;
406
-		$xfer += $output->writeStructBegin();
407
-		
408
-		if($this->mid !== null) {
409
-			
410
-			$xfer += $output->writeFieldBegin('mid');
411
-			$xfer += $output->writeString($this->mid);
412
-			
413
-			$xfer += $output->writeFieldEnd();
414
-		}
415
-		
416
-		
417
-		if($this->commodityNo !== null) {
418
-			
419
-			$xfer += $output->writeFieldBegin('commodityNo');
420
-			$xfer += $output->writeString($this->commodityNo);
421
-			
422
-			$xfer += $output->writeFieldEnd();
423
-		}
424
-		
425
-		
426
-		if($this->barCode !== null) {
427
-			
428
-			$xfer += $output->writeFieldBegin('barCode');
429
-			$xfer += $output->writeString($this->barCode);
430
-			
431
-			$xfer += $output->writeFieldEnd();
432
-		}
433
-		
434
-		
435
-		if($this->commodityName !== null) {
436
-			
437
-			$xfer += $output->writeFieldBegin('commodityName');
438
-			$xfer += $output->writeString($this->commodityName);
439
-			
440
-			$xfer += $output->writeFieldEnd();
441
-		}
442
-		
443
-		
444
-		if($this->brandId !== null) {
445
-			
446
-			$xfer += $output->writeFieldBegin('brandId');
447
-			$xfer += $output->writeString($this->brandId);
448
-			
449
-			$xfer += $output->writeFieldEnd();
450
-		}
451
-		
452
-		
453
-		if($this->spellTypeDesc !== null) {
454
-			
455
-			$xfer += $output->writeFieldBegin('spellTypeDesc');
456
-			$xfer += $output->writeString($this->spellTypeDesc);
457
-			
458
-			$xfer += $output->writeFieldEnd();
459
-		}
460
-		
461
-		
462
-		if($this->spellTypeFullDesc !== null) {
463
-			
464
-			$xfer += $output->writeFieldBegin('spellTypeFullDesc');
465
-			$xfer += $output->writeString($this->spellTypeFullDesc);
466
-			
467
-			$xfer += $output->writeFieldEnd();
468
-		}
469
-		
470
-		
471
-		if($this->spellPersonNum !== null) {
472
-			
473
-			$xfer += $output->writeFieldBegin('spellPersonNum');
474
-			$xfer += $output->writeI32($this->spellPersonNum);
475
-			
476
-			$xfer += $output->writeFieldEnd();
477
-		}
478
-		
479
-		
480
-		if($this->spellNumLimit !== null) {
481
-			
482
-			$xfer += $output->writeFieldBegin('spellNumLimit');
483
-			$xfer += $output->writeI32($this->spellNumLimit);
484
-			
485
-			$xfer += $output->writeFieldEnd();
486
-		}
487
-		
488
-		
489
-		if($this->preferentialTypeDesc !== null) {
490
-			
491
-			$xfer += $output->writeFieldBegin('preferentialTypeDesc');
492
-			$xfer += $output->writeString($this->preferentialTypeDesc);
493
-			
494
-			$xfer += $output->writeFieldEnd();
495
-		}
496
-		
497
-		
498
-		if($this->prepayPreferential !== null) {
499
-			
500
-			$xfer += $output->writeFieldBegin('prepayPreferential');
501
-			$xfer += $output->writeString($this->prepayPreferential);
502
-			
503
-			$xfer += $output->writeFieldEnd();
504
-		}
505
-		
506
-		
507
-		if($this->prepayTypeDesc !== null) {
508
-			
509
-			$xfer += $output->writeFieldBegin('prepayTypeDesc');
510
-			$xfer += $output->writeString($this->prepayTypeDesc);
511
-			
512
-			$xfer += $output->writeFieldEnd();
513
-		}
514
-		
515
-		
516
-		if($this->prepayValue !== null) {
517
-			
518
-			$xfer += $output->writeFieldBegin('prepayValue');
519
-			$xfer += $output->writeString($this->prepayValue);
520
-			
521
-			$xfer += $output->writeFieldEnd();
522
-		}
523
-		
524
-		
525
-		if($this->discountValue !== null) {
526
-			
527
-			$xfer += $output->writeFieldBegin('discountValue');
528
-			$xfer += $output->writeString($this->discountValue);
529
-			
530
-			$xfer += $output->writeFieldEnd();
531
-		}
532
-		
533
-		
534
-		if($this->actPrice !== null) {
535
-			
536
-			$xfer += $output->writeFieldBegin('actPrice');
537
-			$xfer += $output->writeString($this->actPrice);
538
-			
539
-			$xfer += $output->writeFieldEnd();
540
-		}
541
-		
542
-		
543
-		if($this->userHelpCount !== null) {
544
-			
545
-			$xfer += $output->writeFieldBegin('userHelpCount');
546
-			$xfer += $output->writeString($this->userHelpCount);
547
-			
548
-			$xfer += $output->writeFieldEnd();
549
-		}
550
-		
551
-		
552
-		if($this->floorPrice !== null) {
553
-			
554
-			$xfer += $output->writeFieldBegin('floorPrice');
555
-			$xfer += $output->writeString($this->floorPrice);
556
-			
557
-			$xfer += $output->writeFieldEnd();
558
-		}
559
-		
560
-		
561
-		$xfer += $output->writeFieldStop();
562
-		$xfer += $output->writeStructEnd();
563
-		return $xfer;
564
-	}
565
-	
566
-}
567
-
568
-?>

+ 0 - 257
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/CouponInfo.php

@@ -1,257 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class CouponInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $activityType = null;
18
-	public $redMoney = null;
19
-	public $redNum = null;
20
-	public $fullMoney = null;
21
-	public $vendorBearInfo = null;
22
-	
23
-	public function __construct($vals=null){
24
-		
25
-		if (!isset(self::$_TSPEC)){
26
-			
27
-			self::$_TSPEC = array(
28
-			1 => array(
29
-			'var' => 'mainId'
30
-			),
31
-			2 => array(
32
-			'var' => 'activityType'
33
-			),
34
-			3 => array(
35
-			'var' => 'redMoney'
36
-			),
37
-			4 => array(
38
-			'var' => 'redNum'
39
-			),
40
-			5 => array(
41
-			'var' => 'fullMoney'
42
-			),
43
-			6 => array(
44
-			'var' => 'vendorBearInfo'
45
-			),
46
-			
47
-			);
48
-			
49
-		}
50
-		
51
-		if (is_array($vals)){
52
-			
53
-			
54
-			if (isset($vals['mainId'])){
55
-				
56
-				$this->mainId = $vals['mainId'];
57
-			}
58
-			
59
-			
60
-			if (isset($vals['activityType'])){
61
-				
62
-				$this->activityType = $vals['activityType'];
63
-			}
64
-			
65
-			
66
-			if (isset($vals['redMoney'])){
67
-				
68
-				$this->redMoney = $vals['redMoney'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['redNum'])){
73
-				
74
-				$this->redNum = $vals['redNum'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['fullMoney'])){
79
-				
80
-				$this->fullMoney = $vals['fullMoney'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['vendorBearInfo'])){
85
-				
86
-				$this->vendorBearInfo = $vals['vendorBearInfo'];
87
-			}
88
-			
89
-			
90
-		}
91
-		
92
-	}
93
-	
94
-	
95
-	public function getName(){
96
-		
97
-		return 'CouponInfo';
98
-	}
99
-	
100
-	public function read($input){
101
-		
102
-		$input->readStructBegin();
103
-		while(true){
104
-			
105
-			$schemeField = $input->readFieldBegin();
106
-			if ($schemeField == null) break;
107
-			$needSkip = true;
108
-			
109
-			
110
-			if ("mainId" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readI64($this->mainId); 
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("activityType" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readByte($this->activityType); 
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("redMoney" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readString($this->redMoney);
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("redNum" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readI32($this->redNum); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("fullMoney" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->fullMoney);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("vendorBearInfo" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				
164
-				$this->vendorBearInfo = new \com\vip\api\promotion\vis\protcontract\service\VendorBearInfo();
165
-				$this->vendorBearInfo->read($input);
166
-				
167
-			}
168
-			
169
-			
170
-			
171
-			if($needSkip){
172
-				
173
-				\Osp\Protocol\ProtocolUtil::skip($input);
174
-			}
175
-			
176
-			$input->readFieldEnd();
177
-		}
178
-		
179
-		$input->readStructEnd();
180
-		
181
-		
182
-		
183
-	}
184
-	
185
-	public function write($output){
186
-		
187
-		$xfer = 0;
188
-		$xfer += $output->writeStructBegin();
189
-		
190
-		if($this->mainId !== null) {
191
-			
192
-			$xfer += $output->writeFieldBegin('mainId');
193
-			$xfer += $output->writeI64($this->mainId);
194
-			
195
-			$xfer += $output->writeFieldEnd();
196
-		}
197
-		
198
-		
199
-		if($this->activityType !== null) {
200
-			
201
-			$xfer += $output->writeFieldBegin('activityType');
202
-			$xfer += $output->writeByte($this->activityType);
203
-			
204
-			$xfer += $output->writeFieldEnd();
205
-		}
206
-		
207
-		
208
-		if($this->redMoney !== null) {
209
-			
210
-			$xfer += $output->writeFieldBegin('redMoney');
211
-			$xfer += $output->writeString($this->redMoney);
212
-			
213
-			$xfer += $output->writeFieldEnd();
214
-		}
215
-		
216
-		
217
-		if($this->redNum !== null) {
218
-			
219
-			$xfer += $output->writeFieldBegin('redNum');
220
-			$xfer += $output->writeI32($this->redNum);
221
-			
222
-			$xfer += $output->writeFieldEnd();
223
-		}
224
-		
225
-		
226
-		if($this->fullMoney !== null) {
227
-			
228
-			$xfer += $output->writeFieldBegin('fullMoney');
229
-			$xfer += $output->writeString($this->fullMoney);
230
-			
231
-			$xfer += $output->writeFieldEnd();
232
-		}
233
-		
234
-		
235
-		if($this->vendorBearInfo !== null) {
236
-			
237
-			$xfer += $output->writeFieldBegin('vendorBearInfo');
238
-			
239
-			if (!is_object($this->vendorBearInfo)) {
240
-				
241
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
242
-			}
243
-			
244
-			$xfer += $this->vendorBearInfo->write($output);
245
-			
246
-			$xfer += $output->writeFieldEnd();
247
-		}
248
-		
249
-		
250
-		$xfer += $output->writeFieldStop();
251
-		$xfer += $output->writeStructEnd();
252
-		return $xfer;
253
-	}
254
-	
255
-}
256
-
257
-?>

+ 0 - 260
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/DiscountInfoModel.php

@@ -1,260 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class DiscountInfoModel {
14
-	
15
-	static $_TSPEC;
16
-	public $fullCutInfo = null;
17
-	public $mobileInfo = null;
18
-	public $couponInfo = null;
19
-	public $prepayInfo = null;
20
-	public $exclusivePrice = null;
21
-	
22
-	public function __construct($vals=null){
23
-		
24
-		if (!isset(self::$_TSPEC)){
25
-			
26
-			self::$_TSPEC = array(
27
-			1 => array(
28
-			'var' => 'fullCutInfo'
29
-			),
30
-			2 => array(
31
-			'var' => 'mobileInfo'
32
-			),
33
-			3 => array(
34
-			'var' => 'couponInfo'
35
-			),
36
-			4 => array(
37
-			'var' => 'prepayInfo'
38
-			),
39
-			5 => array(
40
-			'var' => 'exclusivePrice'
41
-			),
42
-			
43
-			);
44
-			
45
-		}
46
-		
47
-		if (is_array($vals)){
48
-			
49
-			
50
-			if (isset($vals['fullCutInfo'])){
51
-				
52
-				$this->fullCutInfo = $vals['fullCutInfo'];
53
-			}
54
-			
55
-			
56
-			if (isset($vals['mobileInfo'])){
57
-				
58
-				$this->mobileInfo = $vals['mobileInfo'];
59
-			}
60
-			
61
-			
62
-			if (isset($vals['couponInfo'])){
63
-				
64
-				$this->couponInfo = $vals['couponInfo'];
65
-			}
66
-			
67
-			
68
-			if (isset($vals['prepayInfo'])){
69
-				
70
-				$this->prepayInfo = $vals['prepayInfo'];
71
-			}
72
-			
73
-			
74
-			if (isset($vals['exclusivePrice'])){
75
-				
76
-				$this->exclusivePrice = $vals['exclusivePrice'];
77
-			}
78
-			
79
-			
80
-		}
81
-		
82
-	}
83
-	
84
-	
85
-	public function getName(){
86
-		
87
-		return 'DiscountInfoModel';
88
-	}
89
-	
90
-	public function read($input){
91
-		
92
-		$input->readStructBegin();
93
-		while(true){
94
-			
95
-			$schemeField = $input->readFieldBegin();
96
-			if ($schemeField == null) break;
97
-			$needSkip = true;
98
-			
99
-			
100
-			if ("fullCutInfo" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				
104
-				$this->fullCutInfo = new \com\vip\api\promotion\vis\protcontract\service\FullCutInfo();
105
-				$this->fullCutInfo->read($input);
106
-				
107
-			}
108
-			
109
-			
110
-			
111
-			
112
-			if ("mobileInfo" == $schemeField){
113
-				
114
-				$needSkip = false;
115
-				
116
-				$this->mobileInfo = new \com\vip\api\promotion\vis\protcontract\service\MobileInfo();
117
-				$this->mobileInfo->read($input);
118
-				
119
-			}
120
-			
121
-			
122
-			
123
-			
124
-			if ("couponInfo" == $schemeField){
125
-				
126
-				$needSkip = false;
127
-				
128
-				$this->couponInfo = new \com\vip\api\promotion\vis\protcontract\service\CouponInfo();
129
-				$this->couponInfo->read($input);
130
-				
131
-			}
132
-			
133
-			
134
-			
135
-			
136
-			if ("prepayInfo" == $schemeField){
137
-				
138
-				$needSkip = false;
139
-				
140
-				$this->prepayInfo = new \com\vip\api\promotion\vis\protcontract\service\PrepayInfo();
141
-				$this->prepayInfo->read($input);
142
-				
143
-			}
144
-			
145
-			
146
-			
147
-			
148
-			if ("exclusivePrice" == $schemeField){
149
-				
150
-				$needSkip = false;
151
-				
152
-				$this->exclusivePrice = new \com\vip\api\promotion\vis\protcontract\service\ExclusivePrice();
153
-				$this->exclusivePrice->read($input);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			if($needSkip){
160
-				
161
-				\Osp\Protocol\ProtocolUtil::skip($input);
162
-			}
163
-			
164
-			$input->readFieldEnd();
165
-		}
166
-		
167
-		$input->readStructEnd();
168
-		
169
-		
170
-		
171
-	}
172
-	
173
-	public function write($output){
174
-		
175
-		$xfer = 0;
176
-		$xfer += $output->writeStructBegin();
177
-		
178
-		if($this->fullCutInfo !== null) {
179
-			
180
-			$xfer += $output->writeFieldBegin('fullCutInfo');
181
-			
182
-			if (!is_object($this->fullCutInfo)) {
183
-				
184
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
185
-			}
186
-			
187
-			$xfer += $this->fullCutInfo->write($output);
188
-			
189
-			$xfer += $output->writeFieldEnd();
190
-		}
191
-		
192
-		
193
-		if($this->mobileInfo !== null) {
194
-			
195
-			$xfer += $output->writeFieldBegin('mobileInfo');
196
-			
197
-			if (!is_object($this->mobileInfo)) {
198
-				
199
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
200
-			}
201
-			
202
-			$xfer += $this->mobileInfo->write($output);
203
-			
204
-			$xfer += $output->writeFieldEnd();
205
-		}
206
-		
207
-		
208
-		if($this->couponInfo !== null) {
209
-			
210
-			$xfer += $output->writeFieldBegin('couponInfo');
211
-			
212
-			if (!is_object($this->couponInfo)) {
213
-				
214
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
215
-			}
216
-			
217
-			$xfer += $this->couponInfo->write($output);
218
-			
219
-			$xfer += $output->writeFieldEnd();
220
-		}
221
-		
222
-		
223
-		if($this->prepayInfo !== null) {
224
-			
225
-			$xfer += $output->writeFieldBegin('prepayInfo');
226
-			
227
-			if (!is_object($this->prepayInfo)) {
228
-				
229
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
230
-			}
231
-			
232
-			$xfer += $this->prepayInfo->write($output);
233
-			
234
-			$xfer += $output->writeFieldEnd();
235
-		}
236
-		
237
-		
238
-		if($this->exclusivePrice !== null) {
239
-			
240
-			$xfer += $output->writeFieldBegin('exclusivePrice');
241
-			
242
-			if (!is_object($this->exclusivePrice)) {
243
-				
244
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
245
-			}
246
-			
247
-			$xfer += $this->exclusivePrice->write($output);
248
-			
249
-			$xfer += $output->writeFieldEnd();
250
-		}
251
-		
252
-		
253
-		$xfer += $output->writeFieldStop();
254
-		$xfer += $output->writeStructEnd();
255
-		return $xfer;
256
-	}
257
-	
258
-}
259
-
260
-?>

+ 0 - 326
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ExclusivePrice.php

@@ -1,326 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ExclusivePrice {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $activityType = null;
18
-	public $discountContent = null;
19
-	public $exclusivePriceDiscounts = null;
20
-	public $vendorBearInfo = null;
21
-	public $actNo = null;
22
-	public $actName = null;
23
-	
24
-	public function __construct($vals=null){
25
-		
26
-		if (!isset(self::$_TSPEC)){
27
-			
28
-			self::$_TSPEC = array(
29
-			1 => array(
30
-			'var' => 'mainId'
31
-			),
32
-			2 => array(
33
-			'var' => 'activityType'
34
-			),
35
-			3 => array(
36
-			'var' => 'discountContent'
37
-			),
38
-			4 => array(
39
-			'var' => 'exclusivePriceDiscounts'
40
-			),
41
-			5 => array(
42
-			'var' => 'vendorBearInfo'
43
-			),
44
-			6 => array(
45
-			'var' => 'actNo'
46
-			),
47
-			7 => array(
48
-			'var' => 'actName'
49
-			),
50
-			
51
-			);
52
-			
53
-		}
54
-		
55
-		if (is_array($vals)){
56
-			
57
-			
58
-			if (isset($vals['mainId'])){
59
-				
60
-				$this->mainId = $vals['mainId'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['activityType'])){
65
-				
66
-				$this->activityType = $vals['activityType'];
67
-			}
68
-			
69
-			
70
-			if (isset($vals['discountContent'])){
71
-				
72
-				$this->discountContent = $vals['discountContent'];
73
-			}
74
-			
75
-			
76
-			if (isset($vals['exclusivePriceDiscounts'])){
77
-				
78
-				$this->exclusivePriceDiscounts = $vals['exclusivePriceDiscounts'];
79
-			}
80
-			
81
-			
82
-			if (isset($vals['vendorBearInfo'])){
83
-				
84
-				$this->vendorBearInfo = $vals['vendorBearInfo'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['actNo'])){
89
-				
90
-				$this->actNo = $vals['actNo'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['actName'])){
95
-				
96
-				$this->actName = $vals['actName'];
97
-			}
98
-			
99
-			
100
-		}
101
-		
102
-	}
103
-	
104
-	
105
-	public function getName(){
106
-		
107
-		return 'ExclusivePrice';
108
-	}
109
-	
110
-	public function read($input){
111
-		
112
-		$input->readStructBegin();
113
-		while(true){
114
-			
115
-			$schemeField = $input->readFieldBegin();
116
-			if ($schemeField == null) break;
117
-			$needSkip = true;
118
-			
119
-			
120
-			if ("mainId" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readI64($this->mainId); 
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			
130
-			if ("activityType" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readByte($this->activityType); 
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("discountContent" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readString($this->discountContent);
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("exclusivePriceDiscounts" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				
154
-				$this->exclusivePriceDiscounts = array();
155
-				$_size0 = 0;
156
-				$input->readListBegin();
157
-				while(true){
158
-					
159
-					try{
160
-						
161
-						$elem0 = null;
162
-						
163
-						$elem0 = new \com\vip\api\promotion\vis\common\NameValueItem();
164
-						$elem0->read($input);
165
-						
166
-						$this->exclusivePriceDiscounts[$_size0++] = $elem0;
167
-					}
168
-					catch(\Exception $e){
169
-						
170
-						break;
171
-					}
172
-				}
173
-				
174
-				$input->readListEnd();
175
-				
176
-			}
177
-			
178
-			
179
-			
180
-			
181
-			if ("vendorBearInfo" == $schemeField){
182
-				
183
-				$needSkip = false;
184
-				
185
-				$this->vendorBearInfo = new \com\vip\api\promotion\vis\protcontract\service\VendorBearInfo();
186
-				$this->vendorBearInfo->read($input);
187
-				
188
-			}
189
-			
190
-			
191
-			
192
-			
193
-			if ("actNo" == $schemeField){
194
-				
195
-				$needSkip = false;
196
-				$input->readString($this->actNo);
197
-				
198
-			}
199
-			
200
-			
201
-			
202
-			
203
-			if ("actName" == $schemeField){
204
-				
205
-				$needSkip = false;
206
-				$input->readString($this->actName);
207
-				
208
-			}
209
-			
210
-			
211
-			
212
-			if($needSkip){
213
-				
214
-				\Osp\Protocol\ProtocolUtil::skip($input);
215
-			}
216
-			
217
-			$input->readFieldEnd();
218
-		}
219
-		
220
-		$input->readStructEnd();
221
-		
222
-		
223
-		
224
-	}
225
-	
226
-	public function write($output){
227
-		
228
-		$xfer = 0;
229
-		$xfer += $output->writeStructBegin();
230
-		
231
-		if($this->mainId !== null) {
232
-			
233
-			$xfer += $output->writeFieldBegin('mainId');
234
-			$xfer += $output->writeI64($this->mainId);
235
-			
236
-			$xfer += $output->writeFieldEnd();
237
-		}
238
-		
239
-		
240
-		if($this->activityType !== null) {
241
-			
242
-			$xfer += $output->writeFieldBegin('activityType');
243
-			$xfer += $output->writeByte($this->activityType);
244
-			
245
-			$xfer += $output->writeFieldEnd();
246
-		}
247
-		
248
-		
249
-		if($this->discountContent !== null) {
250
-			
251
-			$xfer += $output->writeFieldBegin('discountContent');
252
-			$xfer += $output->writeString($this->discountContent);
253
-			
254
-			$xfer += $output->writeFieldEnd();
255
-		}
256
-		
257
-		
258
-		if($this->exclusivePriceDiscounts !== null) {
259
-			
260
-			$xfer += $output->writeFieldBegin('exclusivePriceDiscounts');
261
-			
262
-			if (!is_array($this->exclusivePriceDiscounts)){
263
-				
264
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
265
-			}
266
-			
267
-			$output->writeListBegin();
268
-			foreach ($this->exclusivePriceDiscounts as $iter0){
269
-				
270
-				
271
-				if (!is_object($iter0)) {
272
-					
273
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
274
-				}
275
-				
276
-				$xfer += $iter0->write($output);
277
-				
278
-			}
279
-			
280
-			$output->writeListEnd();
281
-			
282
-			$xfer += $output->writeFieldEnd();
283
-		}
284
-		
285
-		
286
-		if($this->vendorBearInfo !== null) {
287
-			
288
-			$xfer += $output->writeFieldBegin('vendorBearInfo');
289
-			
290
-			if (!is_object($this->vendorBearInfo)) {
291
-				
292
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
293
-			}
294
-			
295
-			$xfer += $this->vendorBearInfo->write($output);
296
-			
297
-			$xfer += $output->writeFieldEnd();
298
-		}
299
-		
300
-		
301
-		if($this->actNo !== null) {
302
-			
303
-			$xfer += $output->writeFieldBegin('actNo');
304
-			$xfer += $output->writeString($this->actNo);
305
-			
306
-			$xfer += $output->writeFieldEnd();
307
-		}
308
-		
309
-		
310
-		if($this->actName !== null) {
311
-			
312
-			$xfer += $output->writeFieldBegin('actName');
313
-			$xfer += $output->writeString($this->actName);
314
-			
315
-			$xfer += $output->writeFieldEnd();
316
-		}
317
-		
318
-		
319
-		$xfer += $output->writeFieldStop();
320
-		$xfer += $output->writeStructEnd();
321
-		return $xfer;
322
-	}
323
-	
324
-}
325
-
326
-?>

+ 0 - 500
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/FullCutInfo.php

@@ -1,500 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class FullCutInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $activityType = null;
18
-	public $activityChildType = null;
19
-	public $isTop = null;
20
-	public $buyCuts = null;
21
-	public $discountContent = null;
22
-	public $spellPersonNum = null;
23
-	public $spellType = null;
24
-	public $spellPreferentialValue = null;
25
-	public $topNum = null;
26
-	public $vendorBearInfo = null;
27
-	public $actNo = null;
28
-	public $actName = null;
29
-	
30
-	public function __construct($vals=null){
31
-		
32
-		if (!isset(self::$_TSPEC)){
33
-			
34
-			self::$_TSPEC = array(
35
-			1 => array(
36
-			'var' => 'mainId'
37
-			),
38
-			2 => array(
39
-			'var' => 'activityType'
40
-			),
41
-			3 => array(
42
-			'var' => 'activityChildType'
43
-			),
44
-			4 => array(
45
-			'var' => 'isTop'
46
-			),
47
-			5 => array(
48
-			'var' => 'buyCuts'
49
-			),
50
-			6 => array(
51
-			'var' => 'discountContent'
52
-			),
53
-			7 => array(
54
-			'var' => 'spellPersonNum'
55
-			),
56
-			8 => array(
57
-			'var' => 'spellType'
58
-			),
59
-			9 => array(
60
-			'var' => 'spellPreferentialValue'
61
-			),
62
-			10 => array(
63
-			'var' => 'topNum'
64
-			),
65
-			11 => array(
66
-			'var' => 'vendorBearInfo'
67
-			),
68
-			12 => array(
69
-			'var' => 'actNo'
70
-			),
71
-			13 => array(
72
-			'var' => 'actName'
73
-			),
74
-			
75
-			);
76
-			
77
-		}
78
-		
79
-		if (is_array($vals)){
80
-			
81
-			
82
-			if (isset($vals['mainId'])){
83
-				
84
-				$this->mainId = $vals['mainId'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['activityType'])){
89
-				
90
-				$this->activityType = $vals['activityType'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['activityChildType'])){
95
-				
96
-				$this->activityChildType = $vals['activityChildType'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['isTop'])){
101
-				
102
-				$this->isTop = $vals['isTop'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['buyCuts'])){
107
-				
108
-				$this->buyCuts = $vals['buyCuts'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['discountContent'])){
113
-				
114
-				$this->discountContent = $vals['discountContent'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['spellPersonNum'])){
119
-				
120
-				$this->spellPersonNum = $vals['spellPersonNum'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['spellType'])){
125
-				
126
-				$this->spellType = $vals['spellType'];
127
-			}
128
-			
129
-			
130
-			if (isset($vals['spellPreferentialValue'])){
131
-				
132
-				$this->spellPreferentialValue = $vals['spellPreferentialValue'];
133
-			}
134
-			
135
-			
136
-			if (isset($vals['topNum'])){
137
-				
138
-				$this->topNum = $vals['topNum'];
139
-			}
140
-			
141
-			
142
-			if (isset($vals['vendorBearInfo'])){
143
-				
144
-				$this->vendorBearInfo = $vals['vendorBearInfo'];
145
-			}
146
-			
147
-			
148
-			if (isset($vals['actNo'])){
149
-				
150
-				$this->actNo = $vals['actNo'];
151
-			}
152
-			
153
-			
154
-			if (isset($vals['actName'])){
155
-				
156
-				$this->actName = $vals['actName'];
157
-			}
158
-			
159
-			
160
-		}
161
-		
162
-	}
163
-	
164
-	
165
-	public function getName(){
166
-		
167
-		return 'FullCutInfo';
168
-	}
169
-	
170
-	public function read($input){
171
-		
172
-		$input->readStructBegin();
173
-		while(true){
174
-			
175
-			$schemeField = $input->readFieldBegin();
176
-			if ($schemeField == null) break;
177
-			$needSkip = true;
178
-			
179
-			
180
-			if ("mainId" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readI64($this->mainId); 
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("activityType" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readByte($this->activityType); 
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("activityChildType" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readByte($this->activityChildType); 
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("isTop" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readByte($this->isTop); 
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("buyCuts" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				
224
-				$this->buyCuts = array();
225
-				$_size0 = 0;
226
-				$input->readListBegin();
227
-				while(true){
228
-					
229
-					try{
230
-						
231
-						$elem0 = null;
232
-						
233
-						$elem0 = new \com\vip\api\promotion\vis\protcontract\service\BuyAndCutInfo();
234
-						$elem0->read($input);
235
-						
236
-						$this->buyCuts[$_size0++] = $elem0;
237
-					}
238
-					catch(\Exception $e){
239
-						
240
-						break;
241
-					}
242
-				}
243
-				
244
-				$input->readListEnd();
245
-				
246
-			}
247
-			
248
-			
249
-			
250
-			
251
-			if ("discountContent" == $schemeField){
252
-				
253
-				$needSkip = false;
254
-				$input->readString($this->discountContent);
255
-				
256
-			}
257
-			
258
-			
259
-			
260
-			
261
-			if ("spellPersonNum" == $schemeField){
262
-				
263
-				$needSkip = false;
264
-				$input->readI32($this->spellPersonNum); 
265
-				
266
-			}
267
-			
268
-			
269
-			
270
-			
271
-			if ("spellType" == $schemeField){
272
-				
273
-				$needSkip = false;
274
-				$input->readByte($this->spellType); 
275
-				
276
-			}
277
-			
278
-			
279
-			
280
-			
281
-			if ("spellPreferentialValue" == $schemeField){
282
-				
283
-				$needSkip = false;
284
-				$input->readString($this->spellPreferentialValue);
285
-				
286
-			}
287
-			
288
-			
289
-			
290
-			
291
-			if ("topNum" == $schemeField){
292
-				
293
-				$needSkip = false;
294
-				$input->readI32($this->topNum); 
295
-				
296
-			}
297
-			
298
-			
299
-			
300
-			
301
-			if ("vendorBearInfo" == $schemeField){
302
-				
303
-				$needSkip = false;
304
-				
305
-				$this->vendorBearInfo = new \com\vip\api\promotion\vis\protcontract\service\VendorBearInfo();
306
-				$this->vendorBearInfo->read($input);
307
-				
308
-			}
309
-			
310
-			
311
-			
312
-			
313
-			if ("actNo" == $schemeField){
314
-				
315
-				$needSkip = false;
316
-				$input->readString($this->actNo);
317
-				
318
-			}
319
-			
320
-			
321
-			
322
-			
323
-			if ("actName" == $schemeField){
324
-				
325
-				$needSkip = false;
326
-				$input->readString($this->actName);
327
-				
328
-			}
329
-			
330
-			
331
-			
332
-			if($needSkip){
333
-				
334
-				\Osp\Protocol\ProtocolUtil::skip($input);
335
-			}
336
-			
337
-			$input->readFieldEnd();
338
-		}
339
-		
340
-		$input->readStructEnd();
341
-		
342
-		
343
-		
344
-	}
345
-	
346
-	public function write($output){
347
-		
348
-		$xfer = 0;
349
-		$xfer += $output->writeStructBegin();
350
-		
351
-		if($this->mainId !== null) {
352
-			
353
-			$xfer += $output->writeFieldBegin('mainId');
354
-			$xfer += $output->writeI64($this->mainId);
355
-			
356
-			$xfer += $output->writeFieldEnd();
357
-		}
358
-		
359
-		
360
-		if($this->activityType !== null) {
361
-			
362
-			$xfer += $output->writeFieldBegin('activityType');
363
-			$xfer += $output->writeByte($this->activityType);
364
-			
365
-			$xfer += $output->writeFieldEnd();
366
-		}
367
-		
368
-		
369
-		if($this->activityChildType !== null) {
370
-			
371
-			$xfer += $output->writeFieldBegin('activityChildType');
372
-			$xfer += $output->writeByte($this->activityChildType);
373
-			
374
-			$xfer += $output->writeFieldEnd();
375
-		}
376
-		
377
-		
378
-		if($this->isTop !== null) {
379
-			
380
-			$xfer += $output->writeFieldBegin('isTop');
381
-			$xfer += $output->writeByte($this->isTop);
382
-			
383
-			$xfer += $output->writeFieldEnd();
384
-		}
385
-		
386
-		
387
-		if($this->buyCuts !== null) {
388
-			
389
-			$xfer += $output->writeFieldBegin('buyCuts');
390
-			
391
-			if (!is_array($this->buyCuts)){
392
-				
393
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
394
-			}
395
-			
396
-			$output->writeListBegin();
397
-			foreach ($this->buyCuts as $iter0){
398
-				
399
-				
400
-				if (!is_object($iter0)) {
401
-					
402
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
403
-				}
404
-				
405
-				$xfer += $iter0->write($output);
406
-				
407
-			}
408
-			
409
-			$output->writeListEnd();
410
-			
411
-			$xfer += $output->writeFieldEnd();
412
-		}
413
-		
414
-		
415
-		if($this->discountContent !== null) {
416
-			
417
-			$xfer += $output->writeFieldBegin('discountContent');
418
-			$xfer += $output->writeString($this->discountContent);
419
-			
420
-			$xfer += $output->writeFieldEnd();
421
-		}
422
-		
423
-		
424
-		if($this->spellPersonNum !== null) {
425
-			
426
-			$xfer += $output->writeFieldBegin('spellPersonNum');
427
-			$xfer += $output->writeI32($this->spellPersonNum);
428
-			
429
-			$xfer += $output->writeFieldEnd();
430
-		}
431
-		
432
-		
433
-		if($this->spellType !== null) {
434
-			
435
-			$xfer += $output->writeFieldBegin('spellType');
436
-			$xfer += $output->writeByte($this->spellType);
437
-			
438
-			$xfer += $output->writeFieldEnd();
439
-		}
440
-		
441
-		
442
-		if($this->spellPreferentialValue !== null) {
443
-			
444
-			$xfer += $output->writeFieldBegin('spellPreferentialValue');
445
-			$xfer += $output->writeString($this->spellPreferentialValue);
446
-			
447
-			$xfer += $output->writeFieldEnd();
448
-		}
449
-		
450
-		
451
-		if($this->topNum !== null) {
452
-			
453
-			$xfer += $output->writeFieldBegin('topNum');
454
-			$xfer += $output->writeI32($this->topNum);
455
-			
456
-			$xfer += $output->writeFieldEnd();
457
-		}
458
-		
459
-		
460
-		if($this->vendorBearInfo !== null) {
461
-			
462
-			$xfer += $output->writeFieldBegin('vendorBearInfo');
463
-			
464
-			if (!is_object($this->vendorBearInfo)) {
465
-				
466
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
467
-			}
468
-			
469
-			$xfer += $this->vendorBearInfo->write($output);
470
-			
471
-			$xfer += $output->writeFieldEnd();
472
-		}
473
-		
474
-		
475
-		if($this->actNo !== null) {
476
-			
477
-			$xfer += $output->writeFieldBegin('actNo');
478
-			$xfer += $output->writeString($this->actNo);
479
-			
480
-			$xfer += $output->writeFieldEnd();
481
-		}
482
-		
483
-		
484
-		if($this->actName !== null) {
485
-			
486
-			$xfer += $output->writeFieldBegin('actName');
487
-			$xfer += $output->writeString($this->actName);
488
-			
489
-			$xfer += $output->writeFieldEnd();
490
-		}
491
-		
492
-		
493
-		$xfer += $output->writeFieldStop();
494
-		$xfer += $output->writeStructEnd();
495
-		return $xfer;
496
-	}
497
-	
498
-}
499
-
500
-?>

+ 0 - 179
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/GetCaptchaParam.php

@@ -1,179 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class GetCaptchaParam {
14
-	
15
-	static $_TSPEC;
16
-	public $captchaType = null;
17
-	public $id = null;
18
-	public $ip = null;
19
-	public $cid = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'captchaType'
28
-			),
29
-			2 => array(
30
-			'var' => 'id'
31
-			),
32
-			3 => array(
33
-			'var' => 'ip'
34
-			),
35
-			4 => array(
36
-			'var' => 'cid'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['captchaType'])){
47
-				
48
-				$this->captchaType = $vals['captchaType'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['id'])){
53
-				
54
-				$this->id = $vals['id'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['ip'])){
59
-				
60
-				$this->ip = $vals['ip'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['cid'])){
65
-				
66
-				$this->cid = $vals['cid'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'GetCaptchaParam';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("captchaType" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readByte($this->captchaType); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("id" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readI64($this->id); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("ip" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->ip);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("cid" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->cid);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			if($needSkip){
130
-				
131
-				\Osp\Protocol\ProtocolUtil::skip($input);
132
-			}
133
-			
134
-			$input->readFieldEnd();
135
-		}
136
-		
137
-		$input->readStructEnd();
138
-		
139
-		
140
-		
141
-	}
142
-	
143
-	public function write($output){
144
-		
145
-		$xfer = 0;
146
-		$xfer += $output->writeStructBegin();
147
-		
148
-		$xfer += $output->writeFieldBegin('captchaType');
149
-		$xfer += $output->writeByte($this->captchaType);
150
-		
151
-		$xfer += $output->writeFieldEnd();
152
-		
153
-		$xfer += $output->writeFieldBegin('id');
154
-		$xfer += $output->writeI64($this->id);
155
-		
156
-		$xfer += $output->writeFieldEnd();
157
-		
158
-		$xfer += $output->writeFieldBegin('ip');
159
-		$xfer += $output->writeString($this->ip);
160
-		
161
-		$xfer += $output->writeFieldEnd();
162
-		
163
-		if($this->cid !== null) {
164
-			
165
-			$xfer += $output->writeFieldBegin('cid');
166
-			$xfer += $output->writeString($this->cid);
167
-			
168
-			$xfer += $output->writeFieldEnd();
169
-		}
170
-		
171
-		
172
-		$xfer += $output->writeFieldStop();
173
-		$xfer += $output->writeStructEnd();
174
-		return $xfer;
175
-	}
176
-	
177
-}
178
-
179
-?>

+ 0 - 199
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/MobileInfo.php

@@ -1,199 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class MobileInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $activityType = null;
18
-	public $mobileRemark = null;
19
-	public $vendorBearInfo = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'mainId'
28
-			),
29
-			2 => array(
30
-			'var' => 'activityType'
31
-			),
32
-			3 => array(
33
-			'var' => 'mobileRemark'
34
-			),
35
-			4 => array(
36
-			'var' => 'vendorBearInfo'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['mainId'])){
47
-				
48
-				$this->mainId = $vals['mainId'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['activityType'])){
53
-				
54
-				$this->activityType = $vals['activityType'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['mobileRemark'])){
59
-				
60
-				$this->mobileRemark = $vals['mobileRemark'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['vendorBearInfo'])){
65
-				
66
-				$this->vendorBearInfo = $vals['vendorBearInfo'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'MobileInfo';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("mainId" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI64($this->mainId); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("activityType" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readByte($this->activityType); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("mobileRemark" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->mobileRemark);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("vendorBearInfo" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				
124
-				$this->vendorBearInfo = new \com\vip\api\promotion\vis\protcontract\service\VendorBearInfo();
125
-				$this->vendorBearInfo->read($input);
126
-				
127
-			}
128
-			
129
-			
130
-			
131
-			if($needSkip){
132
-				
133
-				\Osp\Protocol\ProtocolUtil::skip($input);
134
-			}
135
-			
136
-			$input->readFieldEnd();
137
-		}
138
-		
139
-		$input->readStructEnd();
140
-		
141
-		
142
-		
143
-	}
144
-	
145
-	public function write($output){
146
-		
147
-		$xfer = 0;
148
-		$xfer += $output->writeStructBegin();
149
-		
150
-		if($this->mainId !== null) {
151
-			
152
-			$xfer += $output->writeFieldBegin('mainId');
153
-			$xfer += $output->writeI64($this->mainId);
154
-			
155
-			$xfer += $output->writeFieldEnd();
156
-		}
157
-		
158
-		
159
-		if($this->activityType !== null) {
160
-			
161
-			$xfer += $output->writeFieldBegin('activityType');
162
-			$xfer += $output->writeByte($this->activityType);
163
-			
164
-			$xfer += $output->writeFieldEnd();
165
-		}
166
-		
167
-		
168
-		if($this->mobileRemark !== null) {
169
-			
170
-			$xfer += $output->writeFieldBegin('mobileRemark');
171
-			$xfer += $output->writeString($this->mobileRemark);
172
-			
173
-			$xfer += $output->writeFieldEnd();
174
-		}
175
-		
176
-		
177
-		if($this->vendorBearInfo !== null) {
178
-			
179
-			$xfer += $output->writeFieldBegin('vendorBearInfo');
180
-			
181
-			if (!is_object($this->vendorBearInfo)) {
182
-				
183
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
184
-			}
185
-			
186
-			$xfer += $this->vendorBearInfo->write($output);
187
-			
188
-			$xfer += $output->writeFieldEnd();
189
-		}
190
-		
191
-		
192
-		$xfer += $output->writeFieldStop();
193
-		$xfer += $output->writeStructEnd();
194
-		return $xfer;
195
-	}
196
-	
197
-}
198
-
199
-?>

+ 0 - 158
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/OperatorParams.php

@@ -1,158 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class OperatorParams {
14
-	
15
-	static $_TSPEC;
16
-	public $operatorType = null;
17
-	public $operatorId = null;
18
-	public $operatorNickname = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'operatorType'
27
-			),
28
-			2 => array(
29
-			'var' => 'operatorId'
30
-			),
31
-			3 => array(
32
-			'var' => 'operatorNickname'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['operatorType'])){
43
-				
44
-				$this->operatorType = $vals['operatorType'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['operatorId'])){
49
-				
50
-				$this->operatorId = $vals['operatorId'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['operatorNickname'])){
55
-				
56
-				$this->operatorNickname = $vals['operatorNickname'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'OperatorParams';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("operatorType" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readByte($this->operatorType); 
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			
90
-			if ("operatorId" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI32($this->operatorId); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("operatorNickname" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readString($this->operatorNickname);
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			if($needSkip){
110
-				
111
-				\Osp\Protocol\ProtocolUtil::skip($input);
112
-			}
113
-			
114
-			$input->readFieldEnd();
115
-		}
116
-		
117
-		$input->readStructEnd();
118
-		
119
-		
120
-		
121
-	}
122
-	
123
-	public function write($output){
124
-		
125
-		$xfer = 0;
126
-		$xfer += $output->writeStructBegin();
127
-		
128
-		$xfer += $output->writeFieldBegin('operatorType');
129
-		$xfer += $output->writeByte($this->operatorType);
130
-		
131
-		$xfer += $output->writeFieldEnd();
132
-		
133
-		if($this->operatorId !== null) {
134
-			
135
-			$xfer += $output->writeFieldBegin('operatorId');
136
-			$xfer += $output->writeI32($this->operatorId);
137
-			
138
-			$xfer += $output->writeFieldEnd();
139
-		}
140
-		
141
-		
142
-		if($this->operatorNickname !== null) {
143
-			
144
-			$xfer += $output->writeFieldBegin('operatorNickname');
145
-			$xfer += $output->writeString($this->operatorNickname);
146
-			
147
-			$xfer += $output->writeFieldEnd();
148
-		}
149
-		
150
-		
151
-		$xfer += $output->writeFieldStop();
152
-		$xfer += $output->writeStructEnd();
153
-		return $xfer;
154
-	}
155
-	
156
-}
157
-
158
-?>

+ 0 - 373
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/PrepayInfo.php

@@ -1,373 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class PrepayInfo {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $activityType = null;
18
-	public $preferentialType = null;
19
-	public $prepayType = null;
20
-	public $prepayValue = null;
21
-	public $prepayPreferential = null;
22
-	public $discountContent = null;
23
-	public $vendorBearInfo = null;
24
-	public $actNo = null;
25
-	public $actName = null;
26
-	
27
-	public function __construct($vals=null){
28
-		
29
-		if (!isset(self::$_TSPEC)){
30
-			
31
-			self::$_TSPEC = array(
32
-			1 => array(
33
-			'var' => 'mainId'
34
-			),
35
-			2 => array(
36
-			'var' => 'activityType'
37
-			),
38
-			3 => array(
39
-			'var' => 'preferentialType'
40
-			),
41
-			4 => array(
42
-			'var' => 'prepayType'
43
-			),
44
-			5 => array(
45
-			'var' => 'prepayValue'
46
-			),
47
-			6 => array(
48
-			'var' => 'prepayPreferential'
49
-			),
50
-			7 => array(
51
-			'var' => 'discountContent'
52
-			),
53
-			8 => array(
54
-			'var' => 'vendorBearInfo'
55
-			),
56
-			9 => array(
57
-			'var' => 'actNo'
58
-			),
59
-			10 => array(
60
-			'var' => 'actName'
61
-			),
62
-			
63
-			);
64
-			
65
-		}
66
-		
67
-		if (is_array($vals)){
68
-			
69
-			
70
-			if (isset($vals['mainId'])){
71
-				
72
-				$this->mainId = $vals['mainId'];
73
-			}
74
-			
75
-			
76
-			if (isset($vals['activityType'])){
77
-				
78
-				$this->activityType = $vals['activityType'];
79
-			}
80
-			
81
-			
82
-			if (isset($vals['preferentialType'])){
83
-				
84
-				$this->preferentialType = $vals['preferentialType'];
85
-			}
86
-			
87
-			
88
-			if (isset($vals['prepayType'])){
89
-				
90
-				$this->prepayType = $vals['prepayType'];
91
-			}
92
-			
93
-			
94
-			if (isset($vals['prepayValue'])){
95
-				
96
-				$this->prepayValue = $vals['prepayValue'];
97
-			}
98
-			
99
-			
100
-			if (isset($vals['prepayPreferential'])){
101
-				
102
-				$this->prepayPreferential = $vals['prepayPreferential'];
103
-			}
104
-			
105
-			
106
-			if (isset($vals['discountContent'])){
107
-				
108
-				$this->discountContent = $vals['discountContent'];
109
-			}
110
-			
111
-			
112
-			if (isset($vals['vendorBearInfo'])){
113
-				
114
-				$this->vendorBearInfo = $vals['vendorBearInfo'];
115
-			}
116
-			
117
-			
118
-			if (isset($vals['actNo'])){
119
-				
120
-				$this->actNo = $vals['actNo'];
121
-			}
122
-			
123
-			
124
-			if (isset($vals['actName'])){
125
-				
126
-				$this->actName = $vals['actName'];
127
-			}
128
-			
129
-			
130
-		}
131
-		
132
-	}
133
-	
134
-	
135
-	public function getName(){
136
-		
137
-		return 'PrepayInfo';
138
-	}
139
-	
140
-	public function read($input){
141
-		
142
-		$input->readStructBegin();
143
-		while(true){
144
-			
145
-			$schemeField = $input->readFieldBegin();
146
-			if ($schemeField == null) break;
147
-			$needSkip = true;
148
-			
149
-			
150
-			if ("mainId" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readI64($this->mainId); 
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("activityType" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readByte($this->activityType); 
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("preferentialType" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readByte($this->preferentialType); 
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("prepayType" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readByte($this->prepayType); 
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("prepayValue" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readString($this->prepayValue);
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("prepayPreferential" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readString($this->prepayPreferential);
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			
210
-			if ("discountContent" == $schemeField){
211
-				
212
-				$needSkip = false;
213
-				$input->readString($this->discountContent);
214
-				
215
-			}
216
-			
217
-			
218
-			
219
-			
220
-			if ("vendorBearInfo" == $schemeField){
221
-				
222
-				$needSkip = false;
223
-				
224
-				$this->vendorBearInfo = new \com\vip\api\promotion\vis\protcontract\service\VendorBearInfo();
225
-				$this->vendorBearInfo->read($input);
226
-				
227
-			}
228
-			
229
-			
230
-			
231
-			
232
-			if ("actNo" == $schemeField){
233
-				
234
-				$needSkip = false;
235
-				$input->readString($this->actNo);
236
-				
237
-			}
238
-			
239
-			
240
-			
241
-			
242
-			if ("actName" == $schemeField){
243
-				
244
-				$needSkip = false;
245
-				$input->readString($this->actName);
246
-				
247
-			}
248
-			
249
-			
250
-			
251
-			if($needSkip){
252
-				
253
-				\Osp\Protocol\ProtocolUtil::skip($input);
254
-			}
255
-			
256
-			$input->readFieldEnd();
257
-		}
258
-		
259
-		$input->readStructEnd();
260
-		
261
-		
262
-		
263
-	}
264
-	
265
-	public function write($output){
266
-		
267
-		$xfer = 0;
268
-		$xfer += $output->writeStructBegin();
269
-		
270
-		if($this->mainId !== null) {
271
-			
272
-			$xfer += $output->writeFieldBegin('mainId');
273
-			$xfer += $output->writeI64($this->mainId);
274
-			
275
-			$xfer += $output->writeFieldEnd();
276
-		}
277
-		
278
-		
279
-		if($this->activityType !== null) {
280
-			
281
-			$xfer += $output->writeFieldBegin('activityType');
282
-			$xfer += $output->writeByte($this->activityType);
283
-			
284
-			$xfer += $output->writeFieldEnd();
285
-		}
286
-		
287
-		
288
-		if($this->preferentialType !== null) {
289
-			
290
-			$xfer += $output->writeFieldBegin('preferentialType');
291
-			$xfer += $output->writeByte($this->preferentialType);
292
-			
293
-			$xfer += $output->writeFieldEnd();
294
-		}
295
-		
296
-		
297
-		if($this->prepayType !== null) {
298
-			
299
-			$xfer += $output->writeFieldBegin('prepayType');
300
-			$xfer += $output->writeByte($this->prepayType);
301
-			
302
-			$xfer += $output->writeFieldEnd();
303
-		}
304
-		
305
-		
306
-		if($this->prepayValue !== null) {
307
-			
308
-			$xfer += $output->writeFieldBegin('prepayValue');
309
-			$xfer += $output->writeString($this->prepayValue);
310
-			
311
-			$xfer += $output->writeFieldEnd();
312
-		}
313
-		
314
-		
315
-		if($this->prepayPreferential !== null) {
316
-			
317
-			$xfer += $output->writeFieldBegin('prepayPreferential');
318
-			$xfer += $output->writeString($this->prepayPreferential);
319
-			
320
-			$xfer += $output->writeFieldEnd();
321
-		}
322
-		
323
-		
324
-		if($this->discountContent !== null) {
325
-			
326
-			$xfer += $output->writeFieldBegin('discountContent');
327
-			$xfer += $output->writeString($this->discountContent);
328
-			
329
-			$xfer += $output->writeFieldEnd();
330
-		}
331
-		
332
-		
333
-		if($this->vendorBearInfo !== null) {
334
-			
335
-			$xfer += $output->writeFieldBegin('vendorBearInfo');
336
-			
337
-			if (!is_object($this->vendorBearInfo)) {
338
-				
339
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
340
-			}
341
-			
342
-			$xfer += $this->vendorBearInfo->write($output);
343
-			
344
-			$xfer += $output->writeFieldEnd();
345
-		}
346
-		
347
-		
348
-		if($this->actNo !== null) {
349
-			
350
-			$xfer += $output->writeFieldBegin('actNo');
351
-			$xfer += $output->writeString($this->actNo);
352
-			
353
-			$xfer += $output->writeFieldEnd();
354
-		}
355
-		
356
-		
357
-		if($this->actName !== null) {
358
-			
359
-			$xfer += $output->writeFieldBegin('actName');
360
-			$xfer += $output->writeString($this->actName);
361
-			
362
-			$xfer += $output->writeFieldEnd();
363
-		}
364
-		
365
-		
366
-		$xfer += $output->writeFieldStop();
367
-		$xfer += $output->writeStructEnd();
368
-		return $xfer;
369
-	}
370
-	
371
-}
372
-
373
-?>

Разница между файлами не показана из-за своего большого размера
+ 0 - 6342
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractApiService.php


+ 0 - 78
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractApiServiceClient.php

@@ -1,78 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-$base_path = dirname(__FILE__).'/../../../../../../../';
13
-require_once $base_path.'/Osp/Util/PathUtil.php';
14
-require_once $base_path.'/Osp/ClassLoader/ClassLoader.php';
15
-class ProtContractApiServiceClient{
16
-	
17
-	private static $isRegis;
18
-	private static $DEFAULT_PROXY_IP = "127.0.0.1";
19
-	private static $DEFAULT_PROXY_PORT = "2080";
20
-	
21
-	private static function regis(){
22
-		
23
-		$path = \Osp\Util\PathUtil::getRootPath ();
24
-		$nsLoader = new \Osp\ClassLoader\ClassLoader ();
25
-		$nsLoader->registerNamespace ( 'Thrift', $path );
26
-		$nsLoader->registerNamespace ( 'Osp', $path );
27
-		$nsLoader->registerNamespace ( 'com', $path );
28
-		$nsLoader->register ();
29
-	}
30
-	
31
-	
32
-	public static function getService(){
33
-		
34
-		if (! ProtContractApiServiceClient::$isRegis){
35
-			
36
-			ProtContractApiServiceClient::regis ();
37
-			ProtContractApiServiceClient::$isRegis = true;
38
-		}
39
-		
40
-		
41
-		$ctx = \Osp\Context\InvocationContextFactory::getInstance ();
42
-		$ip = ProtContractApiServiceClient::$DEFAULT_PROXY_IP;
43
-		$port = ProtContractApiServiceClient::$DEFAULT_PROXY_PORT;	
44
-		try{
45
-			
46
-			$envCfg = getenv ( "VIP_OSP_PROXY" );
47
-			$ipport = explode ( ":", $envCfg );
48
-			if (strlen ( $envCfg ) > 0 && count ( $ipport ) == 2){
49
-				
50
-				$ip = $ipport [0];
51
-				$port = $ipport [1];
52
-			}
53
-			
54
-		}
55
-		catch(\Exception $e){
56
-			
57
-			$ip = ProtContractApiServiceClient::$DEFAULT_PROXY_IP;
58
-			$port = ProtContractApiServiceClient::$DEFAULT_PROXY_PORT;
59
-		}
60
-		
61
-		if ($ctx->getCalleeIP () == null){
62
-			
63
-			$ctx->setCalleeIP ( $ip );
64
-		}
65
-		
66
-		if ($ctx->getCalleePort () == null){
67
-			
68
-			$ctx->setCalleePort ( $port );
69
-		}
70
-		
71
-		//$ctx->setProtocol ( \Osp\Protocol\OspProtocol::$Binary );
72
-		
73
-		return new \com\vip\api\promotion\vis\protcontract\service\ProtContractApiServiceHelper();
74
-	}
75
-	
76
-}
77
-
78
-?>

+ 0 - 22
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractApiServiceHelper.php

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-require_once dirname(__FILE__).'/ProtContractApiService.php';
13
-class ProtContractApiServiceHelper extends _ProtContractApiServiceClient{
14
-	
15
-	public function __construct(){
16
-		
17
-		parent::__construct();
18
-	}
19
-	
20
-}
21
-
22
-?>

+ 0 - 191
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAttachmentModel.php

@@ -1,191 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractAttachmentModel {
14
-	
15
-	static $_TSPEC;
16
-	public $id = null;
17
-	public $mainId = null;
18
-	public $title = null;
19
-	public $url = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'id'
28
-			),
29
-			2 => array(
30
-			'var' => 'mainId'
31
-			),
32
-			3 => array(
33
-			'var' => 'title'
34
-			),
35
-			4 => array(
36
-			'var' => 'url'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['id'])){
47
-				
48
-				$this->id = $vals['id'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['mainId'])){
53
-				
54
-				$this->mainId = $vals['mainId'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['title'])){
59
-				
60
-				$this->title = $vals['title'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['url'])){
65
-				
66
-				$this->url = $vals['url'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'ProtContractAttachmentModel';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("id" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI64($this->id); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("mainId" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readI64($this->mainId); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("title" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->title);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("url" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->url);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			if($needSkip){
130
-				
131
-				\Osp\Protocol\ProtocolUtil::skip($input);
132
-			}
133
-			
134
-			$input->readFieldEnd();
135
-		}
136
-		
137
-		$input->readStructEnd();
138
-		
139
-		
140
-		
141
-	}
142
-	
143
-	public function write($output){
144
-		
145
-		$xfer = 0;
146
-		$xfer += $output->writeStructBegin();
147
-		
148
-		if($this->id !== null) {
149
-			
150
-			$xfer += $output->writeFieldBegin('id');
151
-			$xfer += $output->writeI64($this->id);
152
-			
153
-			$xfer += $output->writeFieldEnd();
154
-		}
155
-		
156
-		
157
-		if($this->mainId !== null) {
158
-			
159
-			$xfer += $output->writeFieldBegin('mainId');
160
-			$xfer += $output->writeI64($this->mainId);
161
-			
162
-			$xfer += $output->writeFieldEnd();
163
-		}
164
-		
165
-		
166
-		if($this->title !== null) {
167
-			
168
-			$xfer += $output->writeFieldBegin('title');
169
-			$xfer += $output->writeString($this->title);
170
-			
171
-			$xfer += $output->writeFieldEnd();
172
-		}
173
-		
174
-		
175
-		if($this->url !== null) {
176
-			
177
-			$xfer += $output->writeFieldBegin('url');
178
-			$xfer += $output->writeString($this->url);
179
-			
180
-			$xfer += $output->writeFieldEnd();
181
-		}
182
-		
183
-		
184
-		$xfer += $output->writeFieldStop();
185
-		$xfer += $output->writeStructEnd();
186
-		return $xfer;
187
-	}
188
-	
189
-}
190
-
191
-?>

+ 0 - 191
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAttachmentParams.php

@@ -1,191 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractAttachmentParams {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $title = null;
18
-	public $url = null;
19
-	public $createBy = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'mainId'
28
-			),
29
-			2 => array(
30
-			'var' => 'title'
31
-			),
32
-			3 => array(
33
-			'var' => 'url'
34
-			),
35
-			4 => array(
36
-			'var' => 'createBy'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['mainId'])){
47
-				
48
-				$this->mainId = $vals['mainId'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['title'])){
53
-				
54
-				$this->title = $vals['title'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['url'])){
59
-				
60
-				$this->url = $vals['url'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['createBy'])){
65
-				
66
-				$this->createBy = $vals['createBy'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'ProtContractAttachmentParams';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("mainId" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI64($this->mainId); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("title" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readString($this->title);
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("url" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readString($this->url);
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("createBy" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				$input->readString($this->createBy);
124
-				
125
-			}
126
-			
127
-			
128
-			
129
-			if($needSkip){
130
-				
131
-				\Osp\Protocol\ProtocolUtil::skip($input);
132
-			}
133
-			
134
-			$input->readFieldEnd();
135
-		}
136
-		
137
-		$input->readStructEnd();
138
-		
139
-		
140
-		
141
-	}
142
-	
143
-	public function write($output){
144
-		
145
-		$xfer = 0;
146
-		$xfer += $output->writeStructBegin();
147
-		
148
-		if($this->mainId !== null) {
149
-			
150
-			$xfer += $output->writeFieldBegin('mainId');
151
-			$xfer += $output->writeI64($this->mainId);
152
-			
153
-			$xfer += $output->writeFieldEnd();
154
-		}
155
-		
156
-		
157
-		if($this->title !== null) {
158
-			
159
-			$xfer += $output->writeFieldBegin('title');
160
-			$xfer += $output->writeString($this->title);
161
-			
162
-			$xfer += $output->writeFieldEnd();
163
-		}
164
-		
165
-		
166
-		if($this->url !== null) {
167
-			
168
-			$xfer += $output->writeFieldBegin('url');
169
-			$xfer += $output->writeString($this->url);
170
-			
171
-			$xfer += $output->writeFieldEnd();
172
-		}
173
-		
174
-		
175
-		if($this->createBy !== null) {
176
-			
177
-			$xfer += $output->writeFieldBegin('createBy');
178
-			$xfer += $output->writeString($this->createBy);
179
-			
180
-			$xfer += $output->writeFieldEnd();
181
-		}
182
-		
183
-		
184
-		$xfer += $output->writeFieldStop();
185
-		$xfer += $output->writeStructEnd();
186
-		return $xfer;
187
-	}
188
-	
189
-}
190
-
191
-?>

+ 0 - 305
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAuditParams.php

@@ -1,305 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractAuditParams {
14
-	
15
-	static $_TSPEC;
16
-	public $protNos = null;
17
-	public $isAgree = null;
18
-	public $remark = null;
19
-	public $stage = null;
20
-	public $createOperatorId = null;
21
-	public $brandGoodsList = null;
22
-	
23
-	public function __construct($vals=null){
24
-		
25
-		if (!isset(self::$_TSPEC)){
26
-			
27
-			self::$_TSPEC = array(
28
-			1 => array(
29
-			'var' => 'protNos'
30
-			),
31
-			2 => array(
32
-			'var' => 'isAgree'
33
-			),
34
-			3 => array(
35
-			'var' => 'remark'
36
-			),
37
-			4 => array(
38
-			'var' => 'stage'
39
-			),
40
-			5 => array(
41
-			'var' => 'createOperatorId'
42
-			),
43
-			6 => array(
44
-			'var' => 'brandGoodsList'
45
-			),
46
-			
47
-			);
48
-			
49
-		}
50
-		
51
-		if (is_array($vals)){
52
-			
53
-			
54
-			if (isset($vals['protNos'])){
55
-				
56
-				$this->protNos = $vals['protNos'];
57
-			}
58
-			
59
-			
60
-			if (isset($vals['isAgree'])){
61
-				
62
-				$this->isAgree = $vals['isAgree'];
63
-			}
64
-			
65
-			
66
-			if (isset($vals['remark'])){
67
-				
68
-				$this->remark = $vals['remark'];
69
-			}
70
-			
71
-			
72
-			if (isset($vals['stage'])){
73
-				
74
-				$this->stage = $vals['stage'];
75
-			}
76
-			
77
-			
78
-			if (isset($vals['createOperatorId'])){
79
-				
80
-				$this->createOperatorId = $vals['createOperatorId'];
81
-			}
82
-			
83
-			
84
-			if (isset($vals['brandGoodsList'])){
85
-				
86
-				$this->brandGoodsList = $vals['brandGoodsList'];
87
-			}
88
-			
89
-			
90
-		}
91
-		
92
-	}
93
-	
94
-	
95
-	public function getName(){
96
-		
97
-		return 'ProtContractAuditParams';
98
-	}
99
-	
100
-	public function read($input){
101
-		
102
-		$input->readStructBegin();
103
-		while(true){
104
-			
105
-			$schemeField = $input->readFieldBegin();
106
-			if ($schemeField == null) break;
107
-			$needSkip = true;
108
-			
109
-			
110
-			if ("protNos" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				
114
-				$this->protNos = array();
115
-				$_size0 = 0;
116
-				$input->readListBegin();
117
-				while(true){
118
-					
119
-					try{
120
-						
121
-						$elem0 = null;
122
-						$input->readString($elem0);
123
-						
124
-						$this->protNos[$_size0++] = $elem0;
125
-					}
126
-					catch(\Exception $e){
127
-						
128
-						break;
129
-					}
130
-				}
131
-				
132
-				$input->readListEnd();
133
-				
134
-			}
135
-			
136
-			
137
-			
138
-			
139
-			if ("isAgree" == $schemeField){
140
-				
141
-				$needSkip = false;
142
-				$input->readString($this->isAgree);
143
-				
144
-			}
145
-			
146
-			
147
-			
148
-			
149
-			if ("remark" == $schemeField){
150
-				
151
-				$needSkip = false;
152
-				$input->readString($this->remark);
153
-				
154
-			}
155
-			
156
-			
157
-			
158
-			
159
-			if ("stage" == $schemeField){
160
-				
161
-				$needSkip = false;
162
-				$input->readByte($this->stage); 
163
-				
164
-			}
165
-			
166
-			
167
-			
168
-			
169
-			if ("createOperatorId" == $schemeField){
170
-				
171
-				$needSkip = false;
172
-				$input->readI32($this->createOperatorId); 
173
-				
174
-			}
175
-			
176
-			
177
-			
178
-			
179
-			if ("brandGoodsList" == $schemeField){
180
-				
181
-				$needSkip = false;
182
-				
183
-				$this->brandGoodsList = array();
184
-				$_size1 = 0;
185
-				$input->readListBegin();
186
-				while(true){
187
-					
188
-					try{
189
-						
190
-						$elem1 = null;
191
-						
192
-						$elem1 = new \com\vip\api\promotion\vis\protcontract\service\BrandGoods();
193
-						$elem1->read($input);
194
-						
195
-						$this->brandGoodsList[$_size1++] = $elem1;
196
-					}
197
-					catch(\Exception $e){
198
-						
199
-						break;
200
-					}
201
-				}
202
-				
203
-				$input->readListEnd();
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			if($needSkip){
210
-				
211
-				\Osp\Protocol\ProtocolUtil::skip($input);
212
-			}
213
-			
214
-			$input->readFieldEnd();
215
-		}
216
-		
217
-		$input->readStructEnd();
218
-		
219
-		
220
-		
221
-	}
222
-	
223
-	public function write($output){
224
-		
225
-		$xfer = 0;
226
-		$xfer += $output->writeStructBegin();
227
-		
228
-		$xfer += $output->writeFieldBegin('protNos');
229
-		
230
-		if (!is_array($this->protNos)){
231
-			
232
-			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
233
-		}
234
-		
235
-		$output->writeListBegin();
236
-		foreach ($this->protNos as $iter0){
237
-			
238
-			$xfer += $output->writeString($iter0);
239
-			
240
-		}
241
-		
242
-		$output->writeListEnd();
243
-		
244
-		$xfer += $output->writeFieldEnd();
245
-		
246
-		$xfer += $output->writeFieldBegin('isAgree');
247
-		$xfer += $output->writeString($this->isAgree);
248
-		
249
-		$xfer += $output->writeFieldEnd();
250
-		
251
-		if($this->remark !== null) {
252
-			
253
-			$xfer += $output->writeFieldBegin('remark');
254
-			$xfer += $output->writeString($this->remark);
255
-			
256
-			$xfer += $output->writeFieldEnd();
257
-		}
258
-		
259
-		
260
-		$xfer += $output->writeFieldBegin('stage');
261
-		$xfer += $output->writeByte($this->stage);
262
-		
263
-		$xfer += $output->writeFieldEnd();
264
-		
265
-		$xfer += $output->writeFieldBegin('createOperatorId');
266
-		$xfer += $output->writeI32($this->createOperatorId);
267
-		
268
-		$xfer += $output->writeFieldEnd();
269
-		
270
-		if($this->brandGoodsList !== null) {
271
-			
272
-			$xfer += $output->writeFieldBegin('brandGoodsList');
273
-			
274
-			if (!is_array($this->brandGoodsList)){
275
-				
276
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
277
-			}
278
-			
279
-			$output->writeListBegin();
280
-			foreach ($this->brandGoodsList as $iter0){
281
-				
282
-				
283
-				if (!is_object($iter0)) {
284
-					
285
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
286
-				}
287
-				
288
-				$xfer += $iter0->write($output);
289
-				
290
-			}
291
-			
292
-			$output->writeListEnd();
293
-			
294
-			$xfer += $output->writeFieldEnd();
295
-		}
296
-		
297
-		
298
-		$xfer += $output->writeFieldStop();
299
-		$xfer += $output->writeStructEnd();
300
-		return $xfer;
301
-	}
302
-	
303
-}
304
-
305
-?>

+ 0 - 307
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractAuditingLogModel.php

@@ -1,307 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractAuditingLogModel {
14
-	
15
-	static $_TSPEC;
16
-	public $mainId = null;
17
-	public $status = null;
18
-	public $auditdesc = null;
19
-	public $remark = null;
20
-	public $dataAreaName = null;
21
-	public $userNickName = null;
22
-	public $updateTime = null;
23
-	public $createTime = null;
24
-	
25
-	public function __construct($vals=null){
26
-		
27
-		if (!isset(self::$_TSPEC)){
28
-			
29
-			self::$_TSPEC = array(
30
-			1 => array(
31
-			'var' => 'mainId'
32
-			),
33
-			2 => array(
34
-			'var' => 'status'
35
-			),
36
-			3 => array(
37
-			'var' => 'auditdesc'
38
-			),
39
-			4 => array(
40
-			'var' => 'remark'
41
-			),
42
-			5 => array(
43
-			'var' => 'dataAreaName'
44
-			),
45
-			6 => array(
46
-			'var' => 'userNickName'
47
-			),
48
-			7 => array(
49
-			'var' => 'updateTime'
50
-			),
51
-			8 => array(
52
-			'var' => 'createTime'
53
-			),
54
-			
55
-			);
56
-			
57
-		}
58
-		
59
-		if (is_array($vals)){
60
-			
61
-			
62
-			if (isset($vals['mainId'])){
63
-				
64
-				$this->mainId = $vals['mainId'];
65
-			}
66
-			
67
-			
68
-			if (isset($vals['status'])){
69
-				
70
-				$this->status = $vals['status'];
71
-			}
72
-			
73
-			
74
-			if (isset($vals['auditdesc'])){
75
-				
76
-				$this->auditdesc = $vals['auditdesc'];
77
-			}
78
-			
79
-			
80
-			if (isset($vals['remark'])){
81
-				
82
-				$this->remark = $vals['remark'];
83
-			}
84
-			
85
-			
86
-			if (isset($vals['dataAreaName'])){
87
-				
88
-				$this->dataAreaName = $vals['dataAreaName'];
89
-			}
90
-			
91
-			
92
-			if (isset($vals['userNickName'])){
93
-				
94
-				$this->userNickName = $vals['userNickName'];
95
-			}
96
-			
97
-			
98
-			if (isset($vals['updateTime'])){
99
-				
100
-				$this->updateTime = $vals['updateTime'];
101
-			}
102
-			
103
-			
104
-			if (isset($vals['createTime'])){
105
-				
106
-				$this->createTime = $vals['createTime'];
107
-			}
108
-			
109
-			
110
-		}
111
-		
112
-	}
113
-	
114
-	
115
-	public function getName(){
116
-		
117
-		return 'ProtContractAuditingLogModel';
118
-	}
119
-	
120
-	public function read($input){
121
-		
122
-		$input->readStructBegin();
123
-		while(true){
124
-			
125
-			$schemeField = $input->readFieldBegin();
126
-			if ($schemeField == null) break;
127
-			$needSkip = true;
128
-			
129
-			
130
-			if ("mainId" == $schemeField){
131
-				
132
-				$needSkip = false;
133
-				$input->readI64($this->mainId); 
134
-				
135
-			}
136
-			
137
-			
138
-			
139
-			
140
-			if ("status" == $schemeField){
141
-				
142
-				$needSkip = false;
143
-				$input->readByte($this->status); 
144
-				
145
-			}
146
-			
147
-			
148
-			
149
-			
150
-			if ("auditdesc" == $schemeField){
151
-				
152
-				$needSkip = false;
153
-				$input->readString($this->auditdesc);
154
-				
155
-			}
156
-			
157
-			
158
-			
159
-			
160
-			if ("remark" == $schemeField){
161
-				
162
-				$needSkip = false;
163
-				$input->readString($this->remark);
164
-				
165
-			}
166
-			
167
-			
168
-			
169
-			
170
-			if ("dataAreaName" == $schemeField){
171
-				
172
-				$needSkip = false;
173
-				$input->readString($this->dataAreaName);
174
-				
175
-			}
176
-			
177
-			
178
-			
179
-			
180
-			if ("userNickName" == $schemeField){
181
-				
182
-				$needSkip = false;
183
-				$input->readString($this->userNickName);
184
-				
185
-			}
186
-			
187
-			
188
-			
189
-			
190
-			if ("updateTime" == $schemeField){
191
-				
192
-				$needSkip = false;
193
-				$input->readI64($this->updateTime); 
194
-				
195
-			}
196
-			
197
-			
198
-			
199
-			
200
-			if ("createTime" == $schemeField){
201
-				
202
-				$needSkip = false;
203
-				$input->readI64($this->createTime); 
204
-				
205
-			}
206
-			
207
-			
208
-			
209
-			if($needSkip){
210
-				
211
-				\Osp\Protocol\ProtocolUtil::skip($input);
212
-			}
213
-			
214
-			$input->readFieldEnd();
215
-		}
216
-		
217
-		$input->readStructEnd();
218
-		
219
-		
220
-		
221
-	}
222
-	
223
-	public function write($output){
224
-		
225
-		$xfer = 0;
226
-		$xfer += $output->writeStructBegin();
227
-		
228
-		if($this->mainId !== null) {
229
-			
230
-			$xfer += $output->writeFieldBegin('mainId');
231
-			$xfer += $output->writeI64($this->mainId);
232
-			
233
-			$xfer += $output->writeFieldEnd();
234
-		}
235
-		
236
-		
237
-		if($this->status !== null) {
238
-			
239
-			$xfer += $output->writeFieldBegin('status');
240
-			$xfer += $output->writeByte($this->status);
241
-			
242
-			$xfer += $output->writeFieldEnd();
243
-		}
244
-		
245
-		
246
-		if($this->auditdesc !== null) {
247
-			
248
-			$xfer += $output->writeFieldBegin('auditdesc');
249
-			$xfer += $output->writeString($this->auditdesc);
250
-			
251
-			$xfer += $output->writeFieldEnd();
252
-		}
253
-		
254
-		
255
-		if($this->remark !== null) {
256
-			
257
-			$xfer += $output->writeFieldBegin('remark');
258
-			$xfer += $output->writeString($this->remark);
259
-			
260
-			$xfer += $output->writeFieldEnd();
261
-		}
262
-		
263
-		
264
-		if($this->dataAreaName !== null) {
265
-			
266
-			$xfer += $output->writeFieldBegin('dataAreaName');
267
-			$xfer += $output->writeString($this->dataAreaName);
268
-			
269
-			$xfer += $output->writeFieldEnd();
270
-		}
271
-		
272
-		
273
-		if($this->userNickName !== null) {
274
-			
275
-			$xfer += $output->writeFieldBegin('userNickName');
276
-			$xfer += $output->writeString($this->userNickName);
277
-			
278
-			$xfer += $output->writeFieldEnd();
279
-		}
280
-		
281
-		
282
-		if($this->updateTime !== null) {
283
-			
284
-			$xfer += $output->writeFieldBegin('updateTime');
285
-			$xfer += $output->writeI64($this->updateTime);
286
-			
287
-			$xfer += $output->writeFieldEnd();
288
-		}
289
-		
290
-		
291
-		if($this->createTime !== null) {
292
-			
293
-			$xfer += $output->writeFieldBegin('createTime');
294
-			$xfer += $output->writeI64($this->createTime);
295
-			
296
-			$xfer += $output->writeFieldEnd();
297
-		}
298
-		
299
-		
300
-		$xfer += $output->writeFieldStop();
301
-		$xfer += $output->writeStructEnd();
302
-		return $xfer;
303
-	}
304
-	
305
-}
306
-
307
-?>

+ 0 - 287
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailModel.php

@@ -1,287 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractDetailModel {
14
-	
15
-	static $_TSPEC;
16
-	public $mainInfo = null;
17
-	public $discountInfo = null;
18
-	public $auditingLogList = null;
19
-	public $discountList = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'mainInfo'
28
-			),
29
-			2 => array(
30
-			'var' => 'discountInfo'
31
-			),
32
-			3 => array(
33
-			'var' => 'auditingLogList'
34
-			),
35
-			4 => array(
36
-			'var' => 'discountList'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['mainInfo'])){
47
-				
48
-				$this->mainInfo = $vals['mainInfo'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['discountInfo'])){
53
-				
54
-				$this->discountInfo = $vals['discountInfo'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['auditingLogList'])){
59
-				
60
-				$this->auditingLogList = $vals['auditingLogList'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['discountList'])){
65
-				
66
-				$this->discountList = $vals['discountList'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'ProtContractDetailModel';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("mainInfo" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				
94
-				$this->mainInfo = new \com\vip\api\promotion\vis\protcontract\service\ProtContractMainInfoModel();
95
-				$this->mainInfo->read($input);
96
-				
97
-			}
98
-			
99
-			
100
-			
101
-			
102
-			if ("discountInfo" == $schemeField){
103
-				
104
-				$needSkip = false;
105
-				
106
-				$this->discountInfo = new \com\vip\api\promotion\vis\protcontract\service\DiscountInfoModel();
107
-				$this->discountInfo->read($input);
108
-				
109
-			}
110
-			
111
-			
112
-			
113
-			
114
-			if ("auditingLogList" == $schemeField){
115
-				
116
-				$needSkip = false;
117
-				
118
-				$this->auditingLogList = array();
119
-				$_size0 = 0;
120
-				$input->readListBegin();
121
-				while(true){
122
-					
123
-					try{
124
-						
125
-						$elem0 = null;
126
-						
127
-						$elem0 = new \com\vip\api\promotion\vis\protcontract\service\ProtContractAuditingLogModel();
128
-						$elem0->read($input);
129
-						
130
-						$this->auditingLogList[$_size0++] = $elem0;
131
-					}
132
-					catch(\Exception $e){
133
-						
134
-						break;
135
-					}
136
-				}
137
-				
138
-				$input->readListEnd();
139
-				
140
-			}
141
-			
142
-			
143
-			
144
-			
145
-			if ("discountList" == $schemeField){
146
-				
147
-				$needSkip = false;
148
-				
149
-				$this->discountList = array();
150
-				$_size1 = 0;
151
-				$input->readListBegin();
152
-				while(true){
153
-					
154
-					try{
155
-						
156
-						$elem1 = null;
157
-						
158
-						$elem1 = new \com\vip\api\promotion\vis\protcontract\service\ProtContractDiscountInfoModel();
159
-						$elem1->read($input);
160
-						
161
-						$this->discountList[$_size1++] = $elem1;
162
-					}
163
-					catch(\Exception $e){
164
-						
165
-						break;
166
-					}
167
-				}
168
-				
169
-				$input->readListEnd();
170
-				
171
-			}
172
-			
173
-			
174
-			
175
-			if($needSkip){
176
-				
177
-				\Osp\Protocol\ProtocolUtil::skip($input);
178
-			}
179
-			
180
-			$input->readFieldEnd();
181
-		}
182
-		
183
-		$input->readStructEnd();
184
-		
185
-		
186
-		
187
-	}
188
-	
189
-	public function write($output){
190
-		
191
-		$xfer = 0;
192
-		$xfer += $output->writeStructBegin();
193
-		
194
-		if($this->mainInfo !== null) {
195
-			
196
-			$xfer += $output->writeFieldBegin('mainInfo');
197
-			
198
-			if (!is_object($this->mainInfo)) {
199
-				
200
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
201
-			}
202
-			
203
-			$xfer += $this->mainInfo->write($output);
204
-			
205
-			$xfer += $output->writeFieldEnd();
206
-		}
207
-		
208
-		
209
-		if($this->discountInfo !== null) {
210
-			
211
-			$xfer += $output->writeFieldBegin('discountInfo');
212
-			
213
-			if (!is_object($this->discountInfo)) {
214
-				
215
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
216
-			}
217
-			
218
-			$xfer += $this->discountInfo->write($output);
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		if($this->auditingLogList !== null) {
225
-			
226
-			$xfer += $output->writeFieldBegin('auditingLogList');
227
-			
228
-			if (!is_array($this->auditingLogList)){
229
-				
230
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
231
-			}
232
-			
233
-			$output->writeListBegin();
234
-			foreach ($this->auditingLogList as $iter0){
235
-				
236
-				
237
-				if (!is_object($iter0)) {
238
-					
239
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
240
-				}
241
-				
242
-				$xfer += $iter0->write($output);
243
-				
244
-			}
245
-			
246
-			$output->writeListEnd();
247
-			
248
-			$xfer += $output->writeFieldEnd();
249
-		}
250
-		
251
-		
252
-		if($this->discountList !== null) {
253
-			
254
-			$xfer += $output->writeFieldBegin('discountList');
255
-			
256
-			if (!is_array($this->discountList)){
257
-				
258
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
259
-			}
260
-			
261
-			$output->writeListBegin();
262
-			foreach ($this->discountList as $iter0){
263
-				
264
-				
265
-				if (!is_object($iter0)) {
266
-					
267
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
268
-				}
269
-				
270
-				$xfer += $iter0->write($output);
271
-				
272
-			}
273
-			
274
-			$output->writeListEnd();
275
-			
276
-			$xfer += $output->writeFieldEnd();
277
-		}
278
-		
279
-		
280
-		$xfer += $output->writeFieldStop();
281
-		$xfer += $output->writeStructEnd();
282
-		return $xfer;
283
-	}
284
-	
285
-}
286
-
287
-?>

+ 0 - 231
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailPageModel.php

@@ -1,231 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractDetailPageModel {
14
-	
15
-	static $_TSPEC;
16
-	public $totalCount = null;
17
-	public $page = null;
18
-	public $size = null;
19
-	public $dataList = null;
20
-	
21
-	public function __construct($vals=null){
22
-		
23
-		if (!isset(self::$_TSPEC)){
24
-			
25
-			self::$_TSPEC = array(
26
-			1 => array(
27
-			'var' => 'totalCount'
28
-			),
29
-			2 => array(
30
-			'var' => 'page'
31
-			),
32
-			3 => array(
33
-			'var' => 'size'
34
-			),
35
-			4 => array(
36
-			'var' => 'dataList'
37
-			),
38
-			
39
-			);
40
-			
41
-		}
42
-		
43
-		if (is_array($vals)){
44
-			
45
-			
46
-			if (isset($vals['totalCount'])){
47
-				
48
-				$this->totalCount = $vals['totalCount'];
49
-			}
50
-			
51
-			
52
-			if (isset($vals['page'])){
53
-				
54
-				$this->page = $vals['page'];
55
-			}
56
-			
57
-			
58
-			if (isset($vals['size'])){
59
-				
60
-				$this->size = $vals['size'];
61
-			}
62
-			
63
-			
64
-			if (isset($vals['dataList'])){
65
-				
66
-				$this->dataList = $vals['dataList'];
67
-			}
68
-			
69
-			
70
-		}
71
-		
72
-	}
73
-	
74
-	
75
-	public function getName(){
76
-		
77
-		return 'ProtContractDetailPageModel';
78
-	}
79
-	
80
-	public function read($input){
81
-		
82
-		$input->readStructBegin();
83
-		while(true){
84
-			
85
-			$schemeField = $input->readFieldBegin();
86
-			if ($schemeField == null) break;
87
-			$needSkip = true;
88
-			
89
-			
90
-			if ("totalCount" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI32($this->totalCount); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("page" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readI32($this->page); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			
110
-			if ("size" == $schemeField){
111
-				
112
-				$needSkip = false;
113
-				$input->readI32($this->size); 
114
-				
115
-			}
116
-			
117
-			
118
-			
119
-			
120
-			if ("dataList" == $schemeField){
121
-				
122
-				$needSkip = false;
123
-				
124
-				$this->dataList = array();
125
-				$_size1 = 0;
126
-				$input->readListBegin();
127
-				while(true){
128
-					
129
-					try{
130
-						
131
-						$elem1 = null;
132
-						
133
-						$elem1 = new \com\vip\api\promotion\vis\protcontract\service\ProtContractMainInfoModel();
134
-						$elem1->read($input);
135
-						
136
-						$this->dataList[$_size1++] = $elem1;
137
-					}
138
-					catch(\Exception $e){
139
-						
140
-						break;
141
-					}
142
-				}
143
-				
144
-				$input->readListEnd();
145
-				
146
-			}
147
-			
148
-			
149
-			
150
-			if($needSkip){
151
-				
152
-				\Osp\Protocol\ProtocolUtil::skip($input);
153
-			}
154
-			
155
-			$input->readFieldEnd();
156
-		}
157
-		
158
-		$input->readStructEnd();
159
-		
160
-		
161
-		
162
-	}
163
-	
164
-	public function write($output){
165
-		
166
-		$xfer = 0;
167
-		$xfer += $output->writeStructBegin();
168
-		
169
-		if($this->totalCount !== null) {
170
-			
171
-			$xfer += $output->writeFieldBegin('totalCount');
172
-			$xfer += $output->writeI32($this->totalCount);
173
-			
174
-			$xfer += $output->writeFieldEnd();
175
-		}
176
-		
177
-		
178
-		if($this->page !== null) {
179
-			
180
-			$xfer += $output->writeFieldBegin('page');
181
-			$xfer += $output->writeI32($this->page);
182
-			
183
-			$xfer += $output->writeFieldEnd();
184
-		}
185
-		
186
-		
187
-		if($this->size !== null) {
188
-			
189
-			$xfer += $output->writeFieldBegin('size');
190
-			$xfer += $output->writeI32($this->size);
191
-			
192
-			$xfer += $output->writeFieldEnd();
193
-		}
194
-		
195
-		
196
-		if($this->dataList !== null) {
197
-			
198
-			$xfer += $output->writeFieldBegin('dataList');
199
-			
200
-			if (!is_array($this->dataList)){
201
-				
202
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
203
-			}
204
-			
205
-			$output->writeListBegin();
206
-			foreach ($this->dataList as $iter0){
207
-				
208
-				
209
-				if (!is_object($iter0)) {
210
-					
211
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
212
-				}
213
-				
214
-				$xfer += $iter0->write($output);
215
-				
216
-			}
217
-			
218
-			$output->writeListEnd();
219
-			
220
-			$xfer += $output->writeFieldEnd();
221
-		}
222
-		
223
-		
224
-		$xfer += $output->writeFieldStop();
225
-		$xfer += $output->writeStructEnd();
226
-		return $xfer;
227
-	}
228
-	
229
-}
230
-
231
-?>

+ 0 - 194
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailParam.php

@@ -1,194 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractDetailParam {
14
-	
15
-	static $_TSPEC;
16
-	public $id = null;
17
-	public $protNo = null;
18
-	public $dataAreaIds = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'id'
27
-			),
28
-			2 => array(
29
-			'var' => 'protNo'
30
-			),
31
-			3 => array(
32
-			'var' => 'dataAreaIds'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['id'])){
43
-				
44
-				$this->id = $vals['id'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['protNo'])){
49
-				
50
-				$this->protNo = $vals['protNo'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['dataAreaIds'])){
55
-				
56
-				$this->dataAreaIds = $vals['dataAreaIds'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'ProtContractDetailParam';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("id" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readI64($this->id); 
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			
90
-			if ("protNo" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readString($this->protNo);
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("dataAreaIds" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				
104
-				$this->dataAreaIds = array();
105
-				$_size0 = 0;
106
-				$input->readListBegin();
107
-				while(true){
108
-					
109
-					try{
110
-						
111
-						$elem0 = null;
112
-						$input->readString($elem0);
113
-						
114
-						$this->dataAreaIds[$_size0++] = $elem0;
115
-					}
116
-					catch(\Exception $e){
117
-						
118
-						break;
119
-					}
120
-				}
121
-				
122
-				$input->readListEnd();
123
-				
124
-			}
125
-			
126
-			
127
-			
128
-			if($needSkip){
129
-				
130
-				\Osp\Protocol\ProtocolUtil::skip($input);
131
-			}
132
-			
133
-			$input->readFieldEnd();
134
-		}
135
-		
136
-		$input->readStructEnd();
137
-		
138
-		
139
-		
140
-	}
141
-	
142
-	public function write($output){
143
-		
144
-		$xfer = 0;
145
-		$xfer += $output->writeStructBegin();
146
-		
147
-		if($this->id !== null) {
148
-			
149
-			$xfer += $output->writeFieldBegin('id');
150
-			$xfer += $output->writeI64($this->id);
151
-			
152
-			$xfer += $output->writeFieldEnd();
153
-		}
154
-		
155
-		
156
-		if($this->protNo !== null) {
157
-			
158
-			$xfer += $output->writeFieldBegin('protNo');
159
-			$xfer += $output->writeString($this->protNo);
160
-			
161
-			$xfer += $output->writeFieldEnd();
162
-		}
163
-		
164
-		
165
-		if($this->dataAreaIds !== null) {
166
-			
167
-			$xfer += $output->writeFieldBegin('dataAreaIds');
168
-			
169
-			if (!is_array($this->dataAreaIds)){
170
-				
171
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
172
-			}
173
-			
174
-			$output->writeListBegin();
175
-			foreach ($this->dataAreaIds as $iter0){
176
-				
177
-				$xfer += $output->writeString($iter0);
178
-				
179
-			}
180
-			
181
-			$output->writeListEnd();
182
-			
183
-			$xfer += $output->writeFieldEnd();
184
-		}
185
-		
186
-		
187
-		$xfer += $output->writeFieldStop();
188
-		$xfer += $output->writeStructEnd();
189
-		return $xfer;
190
-	}
191
-	
192
-}
193
-
194
-?>

+ 0 - 162
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailQueryParam.php

@@ -1,162 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractDetailQueryParam {
14
-	
15
-	static $_TSPEC;
16
-	public $protNo = null;
17
-	public $processCompletedTimeStart = null;
18
-	public $processCompletedTimeEnd = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'protNo'
27
-			),
28
-			2 => array(
29
-			'var' => 'processCompletedTimeStart'
30
-			),
31
-			3 => array(
32
-			'var' => 'processCompletedTimeEnd'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['protNo'])){
43
-				
44
-				$this->protNo = $vals['protNo'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['processCompletedTimeStart'])){
49
-				
50
-				$this->processCompletedTimeStart = $vals['processCompletedTimeStart'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['processCompletedTimeEnd'])){
55
-				
56
-				$this->processCompletedTimeEnd = $vals['processCompletedTimeEnd'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'ProtContractDetailQueryParam';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("protNo" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->protNo);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			
90
-			if ("processCompletedTimeStart" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readString($this->processCompletedTimeStart);
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("processCompletedTimeEnd" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readString($this->processCompletedTimeEnd);
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			if($needSkip){
110
-				
111
-				\Osp\Protocol\ProtocolUtil::skip($input);
112
-			}
113
-			
114
-			$input->readFieldEnd();
115
-		}
116
-		
117
-		$input->readStructEnd();
118
-		
119
-		
120
-		
121
-	}
122
-	
123
-	public function write($output){
124
-		
125
-		$xfer = 0;
126
-		$xfer += $output->writeStructBegin();
127
-		
128
-		if($this->protNo !== null) {
129
-			
130
-			$xfer += $output->writeFieldBegin('protNo');
131
-			$xfer += $output->writeString($this->protNo);
132
-			
133
-			$xfer += $output->writeFieldEnd();
134
-		}
135
-		
136
-		
137
-		if($this->processCompletedTimeStart !== null) {
138
-			
139
-			$xfer += $output->writeFieldBegin('processCompletedTimeStart');
140
-			$xfer += $output->writeString($this->processCompletedTimeStart);
141
-			
142
-			$xfer += $output->writeFieldEnd();
143
-		}
144
-		
145
-		
146
-		if($this->processCompletedTimeEnd !== null) {
147
-			
148
-			$xfer += $output->writeFieldBegin('processCompletedTimeEnd');
149
-			$xfer += $output->writeString($this->processCompletedTimeEnd);
150
-			
151
-			$xfer += $output->writeFieldEnd();
152
-		}
153
-		
154
-		
155
-		$xfer += $output->writeFieldStop();
156
-		$xfer += $output->writeStructEnd();
157
-		return $xfer;
158
-	}
159
-	
160
-}
161
-
162
-?>

+ 0 - 149
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDetailQueryParams.php

@@ -1,149 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractDetailQueryParams {
14
-	
15
-	static $_TSPEC;
16
-	public $pager = null;
17
-	public $protContractDetailQueryParam = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'pager'
26
-			),
27
-			2 => array(
28
-			'var' => 'protContractDetailQueryParam'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['pager'])){
39
-				
40
-				$this->pager = $vals['pager'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['protContractDetailQueryParam'])){
45
-				
46
-				$this->protContractDetailQueryParam = $vals['protContractDetailQueryParam'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'ProtContractDetailQueryParams';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("pager" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				
74
-				$this->pager = new \com\vip\api\promotion\vis\common\Pager();
75
-				$this->pager->read($input);
76
-				
77
-			}
78
-			
79
-			
80
-			
81
-			
82
-			if ("protContractDetailQueryParam" == $schemeField){
83
-				
84
-				$needSkip = false;
85
-				
86
-				$this->protContractDetailQueryParam = new \com\vip\api\promotion\vis\protcontract\service\ProtContractDetailQueryParam();
87
-				$this->protContractDetailQueryParam->read($input);
88
-				
89
-			}
90
-			
91
-			
92
-			
93
-			if($needSkip){
94
-				
95
-				\Osp\Protocol\ProtocolUtil::skip($input);
96
-			}
97
-			
98
-			$input->readFieldEnd();
99
-		}
100
-		
101
-		$input->readStructEnd();
102
-		
103
-		
104
-		
105
-	}
106
-	
107
-	public function write($output){
108
-		
109
-		$xfer = 0;
110
-		$xfer += $output->writeStructBegin();
111
-		
112
-		if($this->pager !== null) {
113
-			
114
-			$xfer += $output->writeFieldBegin('pager');
115
-			
116
-			if (!is_object($this->pager)) {
117
-				
118
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
119
-			}
120
-			
121
-			$xfer += $this->pager->write($output);
122
-			
123
-			$xfer += $output->writeFieldEnd();
124
-		}
125
-		
126
-		
127
-		if($this->protContractDetailQueryParam !== null) {
128
-			
129
-			$xfer += $output->writeFieldBegin('protContractDetailQueryParam');
130
-			
131
-			if (!is_object($this->protContractDetailQueryParam)) {
132
-				
133
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
134
-			}
135
-			
136
-			$xfer += $this->protContractDetailQueryParam->write($output);
137
-			
138
-			$xfer += $output->writeFieldEnd();
139
-		}
140
-		
141
-		
142
-		$xfer += $output->writeFieldStop();
143
-		$xfer += $output->writeStructEnd();
144
-		return $xfer;
145
-	}
146
-	
147
-}
148
-
149
-?>

Разница между файлами не показана из-за своего большого размера
+ 0 - 1246
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDiscountInfoModel.php


Разница между файлами не показана из-за своего большого размера
+ 0 - 1286
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractDiscountInfoParams.php


Разница между файлами не показана из-за своего большого размера
+ 0 - 1750
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractMainInfoModel.php


+ 0 - 919
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractMainInfoParams.php

@@ -1,919 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractMainInfoParams {
14
-	
15
-	static $_TSPEC;
16
-	public $id = null;
17
-	public $protNo = null;
18
-	public $companyId = null;
19
-	public $contractNo = null;
20
-	public $contractName = null;
21
-	public $contractTime = null;
22
-	public $signMode = null;
23
-	public $vendorCode = null;
24
-	public $vendorName = null;
25
-	public $specialName = null;
26
-	public $rangeType = null;
27
-	public $onlineStarttime = null;
28
-	public $onlineEndtime = null;
29
-	public $createBy = null;
30
-	public $departmentId = null;
31
-	public $acceptOperatorId = null;
32
-	public $acceptOperator = null;
33
-	public $brandName = null;
34
-	public $brandSn = null;
35
-	public $brandId = null;
36
-	public $businessType = null;
37
-	public $contractDimension = null;
38
-	public $companyName = null;
39
-	public $salesWarehouseList = null;
40
-	public $contractMode = null;
41
-	public $oxoContractNo = null;
42
-	public $oxoContractName = null;
43
-	public $oxoContractTime = null;
44
-	
45
-	public function __construct($vals=null){
46
-		
47
-		if (!isset(self::$_TSPEC)){
48
-			
49
-			self::$_TSPEC = array(
50
-			1 => array(
51
-			'var' => 'id'
52
-			),
53
-			2 => array(
54
-			'var' => 'protNo'
55
-			),
56
-			3 => array(
57
-			'var' => 'companyId'
58
-			),
59
-			4 => array(
60
-			'var' => 'contractNo'
61
-			),
62
-			5 => array(
63
-			'var' => 'contractName'
64
-			),
65
-			6 => array(
66
-			'var' => 'contractTime'
67
-			),
68
-			7 => array(
69
-			'var' => 'signMode'
70
-			),
71
-			8 => array(
72
-			'var' => 'vendorCode'
73
-			),
74
-			9 => array(
75
-			'var' => 'vendorName'
76
-			),
77
-			10 => array(
78
-			'var' => 'specialName'
79
-			),
80
-			11 => array(
81
-			'var' => 'rangeType'
82
-			),
83
-			12 => array(
84
-			'var' => 'onlineStarttime'
85
-			),
86
-			13 => array(
87
-			'var' => 'onlineEndtime'
88
-			),
89
-			14 => array(
90
-			'var' => 'createBy'
91
-			),
92
-			15 => array(
93
-			'var' => 'departmentId'
94
-			),
95
-			16 => array(
96
-			'var' => 'acceptOperatorId'
97
-			),
98
-			17 => array(
99
-			'var' => 'acceptOperator'
100
-			),
101
-			18 => array(
102
-			'var' => 'brandName'
103
-			),
104
-			19 => array(
105
-			'var' => 'brandSn'
106
-			),
107
-			20 => array(
108
-			'var' => 'brandId'
109
-			),
110
-			21 => array(
111
-			'var' => 'businessType'
112
-			),
113
-			22 => array(
114
-			'var' => 'contractDimension'
115
-			),
116
-			23 => array(
117
-			'var' => 'companyName'
118
-			),
119
-			24 => array(
120
-			'var' => 'salesWarehouseList'
121
-			),
122
-			25 => array(
123
-			'var' => 'contractMode'
124
-			),
125
-			26 => array(
126
-			'var' => 'oxoContractNo'
127
-			),
128
-			27 => array(
129
-			'var' => 'oxoContractName'
130
-			),
131
-			28 => array(
132
-			'var' => 'oxoContractTime'
133
-			),
134
-			
135
-			);
136
-			
137
-		}
138
-		
139
-		if (is_array($vals)){
140
-			
141
-			
142
-			if (isset($vals['id'])){
143
-				
144
-				$this->id = $vals['id'];
145
-			}
146
-			
147
-			
148
-			if (isset($vals['protNo'])){
149
-				
150
-				$this->protNo = $vals['protNo'];
151
-			}
152
-			
153
-			
154
-			if (isset($vals['companyId'])){
155
-				
156
-				$this->companyId = $vals['companyId'];
157
-			}
158
-			
159
-			
160
-			if (isset($vals['contractNo'])){
161
-				
162
-				$this->contractNo = $vals['contractNo'];
163
-			}
164
-			
165
-			
166
-			if (isset($vals['contractName'])){
167
-				
168
-				$this->contractName = $vals['contractName'];
169
-			}
170
-			
171
-			
172
-			if (isset($vals['contractTime'])){
173
-				
174
-				$this->contractTime = $vals['contractTime'];
175
-			}
176
-			
177
-			
178
-			if (isset($vals['signMode'])){
179
-				
180
-				$this->signMode = $vals['signMode'];
181
-			}
182
-			
183
-			
184
-			if (isset($vals['vendorCode'])){
185
-				
186
-				$this->vendorCode = $vals['vendorCode'];
187
-			}
188
-			
189
-			
190
-			if (isset($vals['vendorName'])){
191
-				
192
-				$this->vendorName = $vals['vendorName'];
193
-			}
194
-			
195
-			
196
-			if (isset($vals['specialName'])){
197
-				
198
-				$this->specialName = $vals['specialName'];
199
-			}
200
-			
201
-			
202
-			if (isset($vals['rangeType'])){
203
-				
204
-				$this->rangeType = $vals['rangeType'];
205
-			}
206
-			
207
-			
208
-			if (isset($vals['onlineStarttime'])){
209
-				
210
-				$this->onlineStarttime = $vals['onlineStarttime'];
211
-			}
212
-			
213
-			
214
-			if (isset($vals['onlineEndtime'])){
215
-				
216
-				$this->onlineEndtime = $vals['onlineEndtime'];
217
-			}
218
-			
219
-			
220
-			if (isset($vals['createBy'])){
221
-				
222
-				$this->createBy = $vals['createBy'];
223
-			}
224
-			
225
-			
226
-			if (isset($vals['departmentId'])){
227
-				
228
-				$this->departmentId = $vals['departmentId'];
229
-			}
230
-			
231
-			
232
-			if (isset($vals['acceptOperatorId'])){
233
-				
234
-				$this->acceptOperatorId = $vals['acceptOperatorId'];
235
-			}
236
-			
237
-			
238
-			if (isset($vals['acceptOperator'])){
239
-				
240
-				$this->acceptOperator = $vals['acceptOperator'];
241
-			}
242
-			
243
-			
244
-			if (isset($vals['brandName'])){
245
-				
246
-				$this->brandName = $vals['brandName'];
247
-			}
248
-			
249
-			
250
-			if (isset($vals['brandSn'])){
251
-				
252
-				$this->brandSn = $vals['brandSn'];
253
-			}
254
-			
255
-			
256
-			if (isset($vals['brandId'])){
257
-				
258
-				$this->brandId = $vals['brandId'];
259
-			}
260
-			
261
-			
262
-			if (isset($vals['businessType'])){
263
-				
264
-				$this->businessType = $vals['businessType'];
265
-			}
266
-			
267
-			
268
-			if (isset($vals['contractDimension'])){
269
-				
270
-				$this->contractDimension = $vals['contractDimension'];
271
-			}
272
-			
273
-			
274
-			if (isset($vals['companyName'])){
275
-				
276
-				$this->companyName = $vals['companyName'];
277
-			}
278
-			
279
-			
280
-			if (isset($vals['salesWarehouseList'])){
281
-				
282
-				$this->salesWarehouseList = $vals['salesWarehouseList'];
283
-			}
284
-			
285
-			
286
-			if (isset($vals['contractMode'])){
287
-				
288
-				$this->contractMode = $vals['contractMode'];
289
-			}
290
-			
291
-			
292
-			if (isset($vals['oxoContractNo'])){
293
-				
294
-				$this->oxoContractNo = $vals['oxoContractNo'];
295
-			}
296
-			
297
-			
298
-			if (isset($vals['oxoContractName'])){
299
-				
300
-				$this->oxoContractName = $vals['oxoContractName'];
301
-			}
302
-			
303
-			
304
-			if (isset($vals['oxoContractTime'])){
305
-				
306
-				$this->oxoContractTime = $vals['oxoContractTime'];
307
-			}
308
-			
309
-			
310
-		}
311
-		
312
-	}
313
-	
314
-	
315
-	public function getName(){
316
-		
317
-		return 'ProtContractMainInfoParams';
318
-	}
319
-	
320
-	public function read($input){
321
-		
322
-		$input->readStructBegin();
323
-		while(true){
324
-			
325
-			$schemeField = $input->readFieldBegin();
326
-			if ($schemeField == null) break;
327
-			$needSkip = true;
328
-			
329
-			
330
-			if ("id" == $schemeField){
331
-				
332
-				$needSkip = false;
333
-				$input->readI64($this->id); 
334
-				
335
-			}
336
-			
337
-			
338
-			
339
-			
340
-			if ("protNo" == $schemeField){
341
-				
342
-				$needSkip = false;
343
-				$input->readString($this->protNo);
344
-				
345
-			}
346
-			
347
-			
348
-			
349
-			
350
-			if ("companyId" == $schemeField){
351
-				
352
-				$needSkip = false;
353
-				$input->readI32($this->companyId); 
354
-				
355
-			}
356
-			
357
-			
358
-			
359
-			
360
-			if ("contractNo" == $schemeField){
361
-				
362
-				$needSkip = false;
363
-				$input->readString($this->contractNo);
364
-				
365
-			}
366
-			
367
-			
368
-			
369
-			
370
-			if ("contractName" == $schemeField){
371
-				
372
-				$needSkip = false;
373
-				$input->readString($this->contractName);
374
-				
375
-			}
376
-			
377
-			
378
-			
379
-			
380
-			if ("contractTime" == $schemeField){
381
-				
382
-				$needSkip = false;
383
-				$input->readI64($this->contractTime); 
384
-				
385
-			}
386
-			
387
-			
388
-			
389
-			
390
-			if ("signMode" == $schemeField){
391
-				
392
-				$needSkip = false;
393
-				$input->readByte($this->signMode); 
394
-				
395
-			}
396
-			
397
-			
398
-			
399
-			
400
-			if ("vendorCode" == $schemeField){
401
-				
402
-				$needSkip = false;
403
-				$input->readString($this->vendorCode);
404
-				
405
-			}
406
-			
407
-			
408
-			
409
-			
410
-			if ("vendorName" == $schemeField){
411
-				
412
-				$needSkip = false;
413
-				$input->readString($this->vendorName);
414
-				
415
-			}
416
-			
417
-			
418
-			
419
-			
420
-			if ("specialName" == $schemeField){
421
-				
422
-				$needSkip = false;
423
-				$input->readString($this->specialName);
424
-				
425
-			}
426
-			
427
-			
428
-			
429
-			
430
-			if ("rangeType" == $schemeField){
431
-				
432
-				$needSkip = false;
433
-				$input->readByte($this->rangeType); 
434
-				
435
-			}
436
-			
437
-			
438
-			
439
-			
440
-			if ("onlineStarttime" == $schemeField){
441
-				
442
-				$needSkip = false;
443
-				$input->readI64($this->onlineStarttime); 
444
-				
445
-			}
446
-			
447
-			
448
-			
449
-			
450
-			if ("onlineEndtime" == $schemeField){
451
-				
452
-				$needSkip = false;
453
-				$input->readI64($this->onlineEndtime); 
454
-				
455
-			}
456
-			
457
-			
458
-			
459
-			
460
-			if ("createBy" == $schemeField){
461
-				
462
-				$needSkip = false;
463
-				$input->readString($this->createBy);
464
-				
465
-			}
466
-			
467
-			
468
-			
469
-			
470
-			if ("departmentId" == $schemeField){
471
-				
472
-				$needSkip = false;
473
-				$input->readI32($this->departmentId); 
474
-				
475
-			}
476
-			
477
-			
478
-			
479
-			
480
-			if ("acceptOperatorId" == $schemeField){
481
-				
482
-				$needSkip = false;
483
-				$input->readString($this->acceptOperatorId);
484
-				
485
-			}
486
-			
487
-			
488
-			
489
-			
490
-			if ("acceptOperator" == $schemeField){
491
-				
492
-				$needSkip = false;
493
-				$input->readString($this->acceptOperator);
494
-				
495
-			}
496
-			
497
-			
498
-			
499
-			
500
-			if ("brandName" == $schemeField){
501
-				
502
-				$needSkip = false;
503
-				$input->readString($this->brandName);
504
-				
505
-			}
506
-			
507
-			
508
-			
509
-			
510
-			if ("brandSn" == $schemeField){
511
-				
512
-				$needSkip = false;
513
-				$input->readString($this->brandSn);
514
-				
515
-			}
516
-			
517
-			
518
-			
519
-			
520
-			if ("brandId" == $schemeField){
521
-				
522
-				$needSkip = false;
523
-				$input->readI32($this->brandId); 
524
-				
525
-			}
526
-			
527
-			
528
-			
529
-			
530
-			if ("businessType" == $schemeField){
531
-				
532
-				$needSkip = false;
533
-				$input->readByte($this->businessType); 
534
-				
535
-			}
536
-			
537
-			
538
-			
539
-			
540
-			if ("contractDimension" == $schemeField){
541
-				
542
-				$needSkip = false;
543
-				$input->readByte($this->contractDimension); 
544
-				
545
-			}
546
-			
547
-			
548
-			
549
-			
550
-			if ("companyName" == $schemeField){
551
-				
552
-				$needSkip = false;
553
-				$input->readString($this->companyName);
554
-				
555
-			}
556
-			
557
-			
558
-			
559
-			
560
-			if ("salesWarehouseList" == $schemeField){
561
-				
562
-				$needSkip = false;
563
-				
564
-				$this->salesWarehouseList = array();
565
-				$_size0 = 0;
566
-				$input->readListBegin();
567
-				while(true){
568
-					
569
-					try{
570
-						
571
-						$elem0 = null;
572
-						
573
-						$elem0 = new \com\vip\api\promotion\vis\protcontract\service\SalesWarehouse();
574
-						$elem0->read($input);
575
-						
576
-						$this->salesWarehouseList[$_size0++] = $elem0;
577
-					}
578
-					catch(\Exception $e){
579
-						
580
-						break;
581
-					}
582
-				}
583
-				
584
-				$input->readListEnd();
585
-				
586
-			}
587
-			
588
-			
589
-			
590
-			
591
-			if ("contractMode" == $schemeField){
592
-				
593
-				$needSkip = false;
594
-				$input->readByte($this->contractMode); 
595
-				
596
-			}
597
-			
598
-			
599
-			
600
-			
601
-			if ("oxoContractNo" == $schemeField){
602
-				
603
-				$needSkip = false;
604
-				$input->readString($this->oxoContractNo);
605
-				
606
-			}
607
-			
608
-			
609
-			
610
-			
611
-			if ("oxoContractName" == $schemeField){
612
-				
613
-				$needSkip = false;
614
-				$input->readString($this->oxoContractName);
615
-				
616
-			}
617
-			
618
-			
619
-			
620
-			
621
-			if ("oxoContractTime" == $schemeField){
622
-				
623
-				$needSkip = false;
624
-				$input->readI64($this->oxoContractTime); 
625
-				
626
-			}
627
-			
628
-			
629
-			
630
-			if($needSkip){
631
-				
632
-				\Osp\Protocol\ProtocolUtil::skip($input);
633
-			}
634
-			
635
-			$input->readFieldEnd();
636
-		}
637
-		
638
-		$input->readStructEnd();
639
-		
640
-		
641
-		
642
-	}
643
-	
644
-	public function write($output){
645
-		
646
-		$xfer = 0;
647
-		$xfer += $output->writeStructBegin();
648
-		
649
-		if($this->id !== null) {
650
-			
651
-			$xfer += $output->writeFieldBegin('id');
652
-			$xfer += $output->writeI64($this->id);
653
-			
654
-			$xfer += $output->writeFieldEnd();
655
-		}
656
-		
657
-		
658
-		if($this->protNo !== null) {
659
-			
660
-			$xfer += $output->writeFieldBegin('protNo');
661
-			$xfer += $output->writeString($this->protNo);
662
-			
663
-			$xfer += $output->writeFieldEnd();
664
-		}
665
-		
666
-		
667
-		if($this->companyId !== null) {
668
-			
669
-			$xfer += $output->writeFieldBegin('companyId');
670
-			$xfer += $output->writeI32($this->companyId);
671
-			
672
-			$xfer += $output->writeFieldEnd();
673
-		}
674
-		
675
-		
676
-		if($this->contractNo !== null) {
677
-			
678
-			$xfer += $output->writeFieldBegin('contractNo');
679
-			$xfer += $output->writeString($this->contractNo);
680
-			
681
-			$xfer += $output->writeFieldEnd();
682
-		}
683
-		
684
-		
685
-		if($this->contractName !== null) {
686
-			
687
-			$xfer += $output->writeFieldBegin('contractName');
688
-			$xfer += $output->writeString($this->contractName);
689
-			
690
-			$xfer += $output->writeFieldEnd();
691
-		}
692
-		
693
-		
694
-		if($this->contractTime !== null) {
695
-			
696
-			$xfer += $output->writeFieldBegin('contractTime');
697
-			$xfer += $output->writeI64($this->contractTime);
698
-			
699
-			$xfer += $output->writeFieldEnd();
700
-		}
701
-		
702
-		
703
-		if($this->signMode !== null) {
704
-			
705
-			$xfer += $output->writeFieldBegin('signMode');
706
-			$xfer += $output->writeByte($this->signMode);
707
-			
708
-			$xfer += $output->writeFieldEnd();
709
-		}
710
-		
711
-		
712
-		if($this->vendorCode !== null) {
713
-			
714
-			$xfer += $output->writeFieldBegin('vendorCode');
715
-			$xfer += $output->writeString($this->vendorCode);
716
-			
717
-			$xfer += $output->writeFieldEnd();
718
-		}
719
-		
720
-		
721
-		if($this->vendorName !== null) {
722
-			
723
-			$xfer += $output->writeFieldBegin('vendorName');
724
-			$xfer += $output->writeString($this->vendorName);
725
-			
726
-			$xfer += $output->writeFieldEnd();
727
-		}
728
-		
729
-		
730
-		if($this->specialName !== null) {
731
-			
732
-			$xfer += $output->writeFieldBegin('specialName');
733
-			$xfer += $output->writeString($this->specialName);
734
-			
735
-			$xfer += $output->writeFieldEnd();
736
-		}
737
-		
738
-		
739
-		if($this->rangeType !== null) {
740
-			
741
-			$xfer += $output->writeFieldBegin('rangeType');
742
-			$xfer += $output->writeByte($this->rangeType);
743
-			
744
-			$xfer += $output->writeFieldEnd();
745
-		}
746
-		
747
-		
748
-		if($this->onlineStarttime !== null) {
749
-			
750
-			$xfer += $output->writeFieldBegin('onlineStarttime');
751
-			$xfer += $output->writeI64($this->onlineStarttime);
752
-			
753
-			$xfer += $output->writeFieldEnd();
754
-		}
755
-		
756
-		
757
-		if($this->onlineEndtime !== null) {
758
-			
759
-			$xfer += $output->writeFieldBegin('onlineEndtime');
760
-			$xfer += $output->writeI64($this->onlineEndtime);
761
-			
762
-			$xfer += $output->writeFieldEnd();
763
-		}
764
-		
765
-		
766
-		if($this->createBy !== null) {
767
-			
768
-			$xfer += $output->writeFieldBegin('createBy');
769
-			$xfer += $output->writeString($this->createBy);
770
-			
771
-			$xfer += $output->writeFieldEnd();
772
-		}
773
-		
774
-		
775
-		if($this->departmentId !== null) {
776
-			
777
-			$xfer += $output->writeFieldBegin('departmentId');
778
-			$xfer += $output->writeI32($this->departmentId);
779
-			
780
-			$xfer += $output->writeFieldEnd();
781
-		}
782
-		
783
-		
784
-		if($this->acceptOperatorId !== null) {
785
-			
786
-			$xfer += $output->writeFieldBegin('acceptOperatorId');
787
-			$xfer += $output->writeString($this->acceptOperatorId);
788
-			
789
-			$xfer += $output->writeFieldEnd();
790
-		}
791
-		
792
-		
793
-		if($this->acceptOperator !== null) {
794
-			
795
-			$xfer += $output->writeFieldBegin('acceptOperator');
796
-			$xfer += $output->writeString($this->acceptOperator);
797
-			
798
-			$xfer += $output->writeFieldEnd();
799
-		}
800
-		
801
-		
802
-		if($this->brandName !== null) {
803
-			
804
-			$xfer += $output->writeFieldBegin('brandName');
805
-			$xfer += $output->writeString($this->brandName);
806
-			
807
-			$xfer += $output->writeFieldEnd();
808
-		}
809
-		
810
-		
811
-		if($this->brandSn !== null) {
812
-			
813
-			$xfer += $output->writeFieldBegin('brandSn');
814
-			$xfer += $output->writeString($this->brandSn);
815
-			
816
-			$xfer += $output->writeFieldEnd();
817
-		}
818
-		
819
-		
820
-		if($this->brandId !== null) {
821
-			
822
-			$xfer += $output->writeFieldBegin('brandId');
823
-			$xfer += $output->writeI32($this->brandId);
824
-			
825
-			$xfer += $output->writeFieldEnd();
826
-		}
827
-		
828
-		
829
-		$xfer += $output->writeFieldBegin('businessType');
830
-		$xfer += $output->writeByte($this->businessType);
831
-		
832
-		$xfer += $output->writeFieldEnd();
833
-		
834
-		$xfer += $output->writeFieldBegin('contractDimension');
835
-		$xfer += $output->writeByte($this->contractDimension);
836
-		
837
-		$xfer += $output->writeFieldEnd();
838
-		
839
-		if($this->companyName !== null) {
840
-			
841
-			$xfer += $output->writeFieldBegin('companyName');
842
-			$xfer += $output->writeString($this->companyName);
843
-			
844
-			$xfer += $output->writeFieldEnd();
845
-		}
846
-		
847
-		
848
-		if($this->salesWarehouseList !== null) {
849
-			
850
-			$xfer += $output->writeFieldBegin('salesWarehouseList');
851
-			
852
-			if (!is_array($this->salesWarehouseList)){
853
-				
854
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
855
-			}
856
-			
857
-			$output->writeListBegin();
858
-			foreach ($this->salesWarehouseList as $iter0){
859
-				
860
-				
861
-				if (!is_object($iter0)) {
862
-					
863
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
864
-				}
865
-				
866
-				$xfer += $iter0->write($output);
867
-				
868
-			}
869
-			
870
-			$output->writeListEnd();
871
-			
872
-			$xfer += $output->writeFieldEnd();
873
-		}
874
-		
875
-		
876
-		if($this->contractMode !== null) {
877
-			
878
-			$xfer += $output->writeFieldBegin('contractMode');
879
-			$xfer += $output->writeByte($this->contractMode);
880
-			
881
-			$xfer += $output->writeFieldEnd();
882
-		}
883
-		
884
-		
885
-		if($this->oxoContractNo !== null) {
886
-			
887
-			$xfer += $output->writeFieldBegin('oxoContractNo');
888
-			$xfer += $output->writeString($this->oxoContractNo);
889
-			
890
-			$xfer += $output->writeFieldEnd();
891
-		}
892
-		
893
-		
894
-		if($this->oxoContractName !== null) {
895
-			
896
-			$xfer += $output->writeFieldBegin('oxoContractName');
897
-			$xfer += $output->writeString($this->oxoContractName);
898
-			
899
-			$xfer += $output->writeFieldEnd();
900
-		}
901
-		
902
-		
903
-		if($this->oxoContractTime !== null) {
904
-			
905
-			$xfer += $output->writeFieldBegin('oxoContractTime');
906
-			$xfer += $output->writeI64($this->oxoContractTime);
907
-			
908
-			$xfer += $output->writeFieldEnd();
909
-		}
910
-		
911
-		
912
-		$xfer += $output->writeFieldStop();
913
-		$xfer += $output->writeStructEnd();
914
-		return $xfer;
915
-	}
916
-	
917
-}
918
-
919
-?>

+ 0 - 173
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractPageModel.php

@@ -1,173 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractPageModel {
14
-	
15
-	static $_TSPEC;
16
-	public $totalCount = null;
17
-	public $dataList = null;
18
-	
19
-	public function __construct($vals=null){
20
-		
21
-		if (!isset(self::$_TSPEC)){
22
-			
23
-			self::$_TSPEC = array(
24
-			1 => array(
25
-			'var' => 'totalCount'
26
-			),
27
-			2 => array(
28
-			'var' => 'dataList'
29
-			),
30
-			
31
-			);
32
-			
33
-		}
34
-		
35
-		if (is_array($vals)){
36
-			
37
-			
38
-			if (isset($vals['totalCount'])){
39
-				
40
-				$this->totalCount = $vals['totalCount'];
41
-			}
42
-			
43
-			
44
-			if (isset($vals['dataList'])){
45
-				
46
-				$this->dataList = $vals['dataList'];
47
-			}
48
-			
49
-			
50
-		}
51
-		
52
-	}
53
-	
54
-	
55
-	public function getName(){
56
-		
57
-		return 'ProtContractPageModel';
58
-	}
59
-	
60
-	public function read($input){
61
-		
62
-		$input->readStructBegin();
63
-		while(true){
64
-			
65
-			$schemeField = $input->readFieldBegin();
66
-			if ($schemeField == null) break;
67
-			$needSkip = true;
68
-			
69
-			
70
-			if ("totalCount" == $schemeField){
71
-				
72
-				$needSkip = false;
73
-				$input->readI32($this->totalCount); 
74
-				
75
-			}
76
-			
77
-			
78
-			
79
-			
80
-			if ("dataList" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				
84
-				$this->dataList = array();
85
-				$_size0 = 0;
86
-				$input->readListBegin();
87
-				while(true){
88
-					
89
-					try{
90
-						
91
-						$elem0 = null;
92
-						
93
-						$elem0 = new \com\vip\api\promotion\vis\protcontract\service\ProtContractMainInfoModel();
94
-						$elem0->read($input);
95
-						
96
-						$this->dataList[$_size0++] = $elem0;
97
-					}
98
-					catch(\Exception $e){
99
-						
100
-						break;
101
-					}
102
-				}
103
-				
104
-				$input->readListEnd();
105
-				
106
-			}
107
-			
108
-			
109
-			
110
-			if($needSkip){
111
-				
112
-				\Osp\Protocol\ProtocolUtil::skip($input);
113
-			}
114
-			
115
-			$input->readFieldEnd();
116
-		}
117
-		
118
-		$input->readStructEnd();
119
-		
120
-		
121
-		
122
-	}
123
-	
124
-	public function write($output){
125
-		
126
-		$xfer = 0;
127
-		$xfer += $output->writeStructBegin();
128
-		
129
-		if($this->totalCount !== null) {
130
-			
131
-			$xfer += $output->writeFieldBegin('totalCount');
132
-			$xfer += $output->writeI32($this->totalCount);
133
-			
134
-			$xfer += $output->writeFieldEnd();
135
-		}
136
-		
137
-		
138
-		if($this->dataList !== null) {
139
-			
140
-			$xfer += $output->writeFieldBegin('dataList');
141
-			
142
-			if (!is_array($this->dataList)){
143
-				
144
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
145
-			}
146
-			
147
-			$output->writeListBegin();
148
-			foreach ($this->dataList as $iter0){
149
-				
150
-				
151
-				if (!is_object($iter0)) {
152
-					
153
-					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
154
-				}
155
-				
156
-				$xfer += $iter0->write($output);
157
-				
158
-			}
159
-			
160
-			$output->writeListEnd();
161
-			
162
-			$xfer += $output->writeFieldEnd();
163
-		}
164
-		
165
-		
166
-		$xfer += $output->writeFieldStop();
167
-		$xfer += $output->writeStructEnd();
168
-		return $xfer;
169
-	}
170
-	
171
-}
172
-
173
-?>

+ 0 - 899
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractQueryForAuditParam.php

@@ -1,899 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractQueryForAuditParam {
14
-	
15
-	static $_TSPEC;
16
-	public $protNos = null;
17
-	public $activityAlltype = null;
18
-	public $signMode = null;
19
-	public $onlineStarttimeStart = null;
20
-	public $onlineStarttimeEnd = null;
21
-	public $onlineEndtimeStart = null;
22
-	public $onlineEndtimeEnd = null;
23
-	public $vendorCodes = null;
24
-	public $vendorName = null;
25
-	public $rangeType = null;
26
-	public $stage = null;
27
-	public $auditStatus = null;
28
-	public $dataRange = null;
29
-	public $dataAreaIds = null;
30
-	public $userEmail = null;
31
-	public $userId = null;
32
-	public $brandSn = null;
33
-	public $matchScheduleCreator = null;
34
-	public $orderBy = null;
35
-	public $specialName = null;
36
-	public $bearType = null;
37
-	public $businessType = null;
38
-	public $contractDimension = null;
39
-	public $contractMode = null;
40
-	
41
-	public function __construct($vals=null){
42
-		
43
-		if (!isset(self::$_TSPEC)){
44
-			
45
-			self::$_TSPEC = array(
46
-			1 => array(
47
-			'var' => 'protNos'
48
-			),
49
-			2 => array(
50
-			'var' => 'activityAlltype'
51
-			),
52
-			3 => array(
53
-			'var' => 'signMode'
54
-			),
55
-			4 => array(
56
-			'var' => 'onlineStarttimeStart'
57
-			),
58
-			5 => array(
59
-			'var' => 'onlineStarttimeEnd'
60
-			),
61
-			6 => array(
62
-			'var' => 'onlineEndtimeStart'
63
-			),
64
-			7 => array(
65
-			'var' => 'onlineEndtimeEnd'
66
-			),
67
-			8 => array(
68
-			'var' => 'vendorCodes'
69
-			),
70
-			9 => array(
71
-			'var' => 'vendorName'
72
-			),
73
-			10 => array(
74
-			'var' => 'rangeType'
75
-			),
76
-			11 => array(
77
-			'var' => 'stage'
78
-			),
79
-			12 => array(
80
-			'var' => 'auditStatus'
81
-			),
82
-			13 => array(
83
-			'var' => 'dataRange'
84
-			),
85
-			14 => array(
86
-			'var' => 'dataAreaIds'
87
-			),
88
-			15 => array(
89
-			'var' => 'userEmail'
90
-			),
91
-			16 => array(
92
-			'var' => 'userId'
93
-			),
94
-			17 => array(
95
-			'var' => 'brandSn'
96
-			),
97
-			18 => array(
98
-			'var' => 'matchScheduleCreator'
99
-			),
100
-			19 => array(
101
-			'var' => 'orderBy'
102
-			),
103
-			20 => array(
104
-			'var' => 'specialName'
105
-			),
106
-			21 => array(
107
-			'var' => 'bearType'
108
-			),
109
-			22 => array(
110
-			'var' => 'businessType'
111
-			),
112
-			23 => array(
113
-			'var' => 'contractDimension'
114
-			),
115
-			24 => array(
116
-			'var' => 'contractMode'
117
-			),
118
-			
119
-			);
120
-			
121
-		}
122
-		
123
-		if (is_array($vals)){
124
-			
125
-			
126
-			if (isset($vals['protNos'])){
127
-				
128
-				$this->protNos = $vals['protNos'];
129
-			}
130
-			
131
-			
132
-			if (isset($vals['activityAlltype'])){
133
-				
134
-				$this->activityAlltype = $vals['activityAlltype'];
135
-			}
136
-			
137
-			
138
-			if (isset($vals['signMode'])){
139
-				
140
-				$this->signMode = $vals['signMode'];
141
-			}
142
-			
143
-			
144
-			if (isset($vals['onlineStarttimeStart'])){
145
-				
146
-				$this->onlineStarttimeStart = $vals['onlineStarttimeStart'];
147
-			}
148
-			
149
-			
150
-			if (isset($vals['onlineStarttimeEnd'])){
151
-				
152
-				$this->onlineStarttimeEnd = $vals['onlineStarttimeEnd'];
153
-			}
154
-			
155
-			
156
-			if (isset($vals['onlineEndtimeStart'])){
157
-				
158
-				$this->onlineEndtimeStart = $vals['onlineEndtimeStart'];
159
-			}
160
-			
161
-			
162
-			if (isset($vals['onlineEndtimeEnd'])){
163
-				
164
-				$this->onlineEndtimeEnd = $vals['onlineEndtimeEnd'];
165
-			}
166
-			
167
-			
168
-			if (isset($vals['vendorCodes'])){
169
-				
170
-				$this->vendorCodes = $vals['vendorCodes'];
171
-			}
172
-			
173
-			
174
-			if (isset($vals['vendorName'])){
175
-				
176
-				$this->vendorName = $vals['vendorName'];
177
-			}
178
-			
179
-			
180
-			if (isset($vals['rangeType'])){
181
-				
182
-				$this->rangeType = $vals['rangeType'];
183
-			}
184
-			
185
-			
186
-			if (isset($vals['stage'])){
187
-				
188
-				$this->stage = $vals['stage'];
189
-			}
190
-			
191
-			
192
-			if (isset($vals['auditStatus'])){
193
-				
194
-				$this->auditStatus = $vals['auditStatus'];
195
-			}
196
-			
197
-			
198
-			if (isset($vals['dataRange'])){
199
-				
200
-				$this->dataRange = $vals['dataRange'];
201
-			}
202
-			
203
-			
204
-			if (isset($vals['dataAreaIds'])){
205
-				
206
-				$this->dataAreaIds = $vals['dataAreaIds'];
207
-			}
208
-			
209
-			
210
-			if (isset($vals['userEmail'])){
211
-				
212
-				$this->userEmail = $vals['userEmail'];
213
-			}
214
-			
215
-			
216
-			if (isset($vals['userId'])){
217
-				
218
-				$this->userId = $vals['userId'];
219
-			}
220
-			
221
-			
222
-			if (isset($vals['brandSn'])){
223
-				
224
-				$this->brandSn = $vals['brandSn'];
225
-			}
226
-			
227
-			
228
-			if (isset($vals['matchScheduleCreator'])){
229
-				
230
-				$this->matchScheduleCreator = $vals['matchScheduleCreator'];
231
-			}
232
-			
233
-			
234
-			if (isset($vals['orderBy'])){
235
-				
236
-				$this->orderBy = $vals['orderBy'];
237
-			}
238
-			
239
-			
240
-			if (isset($vals['specialName'])){
241
-				
242
-				$this->specialName = $vals['specialName'];
243
-			}
244
-			
245
-			
246
-			if (isset($vals['bearType'])){
247
-				
248
-				$this->bearType = $vals['bearType'];
249
-			}
250
-			
251
-			
252
-			if (isset($vals['businessType'])){
253
-				
254
-				$this->businessType = $vals['businessType'];
255
-			}
256
-			
257
-			
258
-			if (isset($vals['contractDimension'])){
259
-				
260
-				$this->contractDimension = $vals['contractDimension'];
261
-			}
262
-			
263
-			
264
-			if (isset($vals['contractMode'])){
265
-				
266
-				$this->contractMode = $vals['contractMode'];
267
-			}
268
-			
269
-			
270
-		}
271
-		
272
-	}
273
-	
274
-	
275
-	public function getName(){
276
-		
277
-		return 'ProtContractQueryForAuditParam';
278
-	}
279
-	
280
-	public function read($input){
281
-		
282
-		$input->readStructBegin();
283
-		while(true){
284
-			
285
-			$schemeField = $input->readFieldBegin();
286
-			if ($schemeField == null) break;
287
-			$needSkip = true;
288
-			
289
-			
290
-			if ("protNos" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				
294
-				$this->protNos = array();
295
-				$_size0 = 0;
296
-				$input->readListBegin();
297
-				while(true){
298
-					
299
-					try{
300
-						
301
-						$elem0 = null;
302
-						$input->readString($elem0);
303
-						
304
-						$this->protNos[$_size0++] = $elem0;
305
-					}
306
-					catch(\Exception $e){
307
-						
308
-						break;
309
-					}
310
-				}
311
-				
312
-				$input->readListEnd();
313
-				
314
-			}
315
-			
316
-			
317
-			
318
-			
319
-			if ("activityAlltype" == $schemeField){
320
-				
321
-				$needSkip = false;
322
-				$input->readString($this->activityAlltype);
323
-				
324
-			}
325
-			
326
-			
327
-			
328
-			
329
-			if ("signMode" == $schemeField){
330
-				
331
-				$needSkip = false;
332
-				$input->readByte($this->signMode); 
333
-				
334
-			}
335
-			
336
-			
337
-			
338
-			
339
-			if ("onlineStarttimeStart" == $schemeField){
340
-				
341
-				$needSkip = false;
342
-				$input->readI64($this->onlineStarttimeStart); 
343
-				
344
-			}
345
-			
346
-			
347
-			
348
-			
349
-			if ("onlineStarttimeEnd" == $schemeField){
350
-				
351
-				$needSkip = false;
352
-				$input->readI64($this->onlineStarttimeEnd); 
353
-				
354
-			}
355
-			
356
-			
357
-			
358
-			
359
-			if ("onlineEndtimeStart" == $schemeField){
360
-				
361
-				$needSkip = false;
362
-				$input->readI64($this->onlineEndtimeStart); 
363
-				
364
-			}
365
-			
366
-			
367
-			
368
-			
369
-			if ("onlineEndtimeEnd" == $schemeField){
370
-				
371
-				$needSkip = false;
372
-				$input->readI64($this->onlineEndtimeEnd); 
373
-				
374
-			}
375
-			
376
-			
377
-			
378
-			
379
-			if ("vendorCodes" == $schemeField){
380
-				
381
-				$needSkip = false;
382
-				
383
-				$this->vendorCodes = array();
384
-				$_size1 = 0;
385
-				$input->readListBegin();
386
-				while(true){
387
-					
388
-					try{
389
-						
390
-						$elem1 = null;
391
-						$input->readString($elem1);
392
-						
393
-						$this->vendorCodes[$_size1++] = $elem1;
394
-					}
395
-					catch(\Exception $e){
396
-						
397
-						break;
398
-					}
399
-				}
400
-				
401
-				$input->readListEnd();
402
-				
403
-			}
404
-			
405
-			
406
-			
407
-			
408
-			if ("vendorName" == $schemeField){
409
-				
410
-				$needSkip = false;
411
-				$input->readString($this->vendorName);
412
-				
413
-			}
414
-			
415
-			
416
-			
417
-			
418
-			if ("rangeType" == $schemeField){
419
-				
420
-				$needSkip = false;
421
-				$input->readByte($this->rangeType); 
422
-				
423
-			}
424
-			
425
-			
426
-			
427
-			
428
-			if ("stage" == $schemeField){
429
-				
430
-				$needSkip = false;
431
-				$input->readByte($this->stage); 
432
-				
433
-			}
434
-			
435
-			
436
-			
437
-			
438
-			if ("auditStatus" == $schemeField){
439
-				
440
-				$needSkip = false;
441
-				$input->readByte($this->auditStatus); 
442
-				
443
-			}
444
-			
445
-			
446
-			
447
-			
448
-			if ("dataRange" == $schemeField){
449
-				
450
-				$needSkip = false;
451
-				$input->readByte($this->dataRange); 
452
-				
453
-			}
454
-			
455
-			
456
-			
457
-			
458
-			if ("dataAreaIds" == $schemeField){
459
-				
460
-				$needSkip = false;
461
-				
462
-				$this->dataAreaIds = array();
463
-				$_size2 = 0;
464
-				$input->readListBegin();
465
-				while(true){
466
-					
467
-					try{
468
-						
469
-						$elem2 = null;
470
-						$input->readString($elem2);
471
-						
472
-						$this->dataAreaIds[$_size2++] = $elem2;
473
-					}
474
-					catch(\Exception $e){
475
-						
476
-						break;
477
-					}
478
-				}
479
-				
480
-				$input->readListEnd();
481
-				
482
-			}
483
-			
484
-			
485
-			
486
-			
487
-			if ("userEmail" == $schemeField){
488
-				
489
-				$needSkip = false;
490
-				$input->readString($this->userEmail);
491
-				
492
-			}
493
-			
494
-			
495
-			
496
-			
497
-			if ("userId" == $schemeField){
498
-				
499
-				$needSkip = false;
500
-				$input->readI32($this->userId); 
501
-				
502
-			}
503
-			
504
-			
505
-			
506
-			
507
-			if ("brandSn" == $schemeField){
508
-				
509
-				$needSkip = false;
510
-				$input->readString($this->brandSn);
511
-				
512
-			}
513
-			
514
-			
515
-			
516
-			
517
-			if ("matchScheduleCreator" == $schemeField){
518
-				
519
-				$needSkip = false;
520
-				$input->readBool($this->matchScheduleCreator);
521
-				
522
-			}
523
-			
524
-			
525
-			
526
-			
527
-			if ("orderBy" == $schemeField){
528
-				
529
-				$needSkip = false;
530
-				$input->readByte($this->orderBy); 
531
-				
532
-			}
533
-			
534
-			
535
-			
536
-			
537
-			if ("specialName" == $schemeField){
538
-				
539
-				$needSkip = false;
540
-				$input->readString($this->specialName);
541
-				
542
-			}
543
-			
544
-			
545
-			
546
-			
547
-			if ("bearType" == $schemeField){
548
-				
549
-				$needSkip = false;
550
-				
551
-				$this->bearType = array();
552
-				$_size3 = 0;
553
-				$input->readListBegin();
554
-				while(true){
555
-					
556
-					try{
557
-						
558
-						$elem3 = null;
559
-						$input->readByte($elem3); 
560
-						
561
-						$this->bearType[$_size3++] = $elem3;
562
-					}
563
-					catch(\Exception $e){
564
-						
565
-						break;
566
-					}
567
-				}
568
-				
569
-				$input->readListEnd();
570
-				
571
-			}
572
-			
573
-			
574
-			
575
-			
576
-			if ("businessType" == $schemeField){
577
-				
578
-				$needSkip = false;
579
-				$input->readByte($this->businessType); 
580
-				
581
-			}
582
-			
583
-			
584
-			
585
-			
586
-			if ("contractDimension" == $schemeField){
587
-				
588
-				$needSkip = false;
589
-				$input->readByte($this->contractDimension); 
590
-				
591
-			}
592
-			
593
-			
594
-			
595
-			
596
-			if ("contractMode" == $schemeField){
597
-				
598
-				$needSkip = false;
599
-				$input->readByte($this->contractMode); 
600
-				
601
-			}
602
-			
603
-			
604
-			
605
-			if($needSkip){
606
-				
607
-				\Osp\Protocol\ProtocolUtil::skip($input);
608
-			}
609
-			
610
-			$input->readFieldEnd();
611
-		}
612
-		
613
-		$input->readStructEnd();
614
-		
615
-		
616
-		
617
-	}
618
-	
619
-	public function write($output){
620
-		
621
-		$xfer = 0;
622
-		$xfer += $output->writeStructBegin();
623
-		
624
-		if($this->protNos !== null) {
625
-			
626
-			$xfer += $output->writeFieldBegin('protNos');
627
-			
628
-			if (!is_array($this->protNos)){
629
-				
630
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
631
-			}
632
-			
633
-			$output->writeListBegin();
634
-			foreach ($this->protNos as $iter0){
635
-				
636
-				$xfer += $output->writeString($iter0);
637
-				
638
-			}
639
-			
640
-			$output->writeListEnd();
641
-			
642
-			$xfer += $output->writeFieldEnd();
643
-		}
644
-		
645
-		
646
-		if($this->activityAlltype !== null) {
647
-			
648
-			$xfer += $output->writeFieldBegin('activityAlltype');
649
-			$xfer += $output->writeString($this->activityAlltype);
650
-			
651
-			$xfer += $output->writeFieldEnd();
652
-		}
653
-		
654
-		
655
-		if($this->signMode !== null) {
656
-			
657
-			$xfer += $output->writeFieldBegin('signMode');
658
-			$xfer += $output->writeByte($this->signMode);
659
-			
660
-			$xfer += $output->writeFieldEnd();
661
-		}
662
-		
663
-		
664
-		if($this->onlineStarttimeStart !== null) {
665
-			
666
-			$xfer += $output->writeFieldBegin('onlineStarttimeStart');
667
-			$xfer += $output->writeI64($this->onlineStarttimeStart);
668
-			
669
-			$xfer += $output->writeFieldEnd();
670
-		}
671
-		
672
-		
673
-		if($this->onlineStarttimeEnd !== null) {
674
-			
675
-			$xfer += $output->writeFieldBegin('onlineStarttimeEnd');
676
-			$xfer += $output->writeI64($this->onlineStarttimeEnd);
677
-			
678
-			$xfer += $output->writeFieldEnd();
679
-		}
680
-		
681
-		
682
-		if($this->onlineEndtimeStart !== null) {
683
-			
684
-			$xfer += $output->writeFieldBegin('onlineEndtimeStart');
685
-			$xfer += $output->writeI64($this->onlineEndtimeStart);
686
-			
687
-			$xfer += $output->writeFieldEnd();
688
-		}
689
-		
690
-		
691
-		if($this->onlineEndtimeEnd !== null) {
692
-			
693
-			$xfer += $output->writeFieldBegin('onlineEndtimeEnd');
694
-			$xfer += $output->writeI64($this->onlineEndtimeEnd);
695
-			
696
-			$xfer += $output->writeFieldEnd();
697
-		}
698
-		
699
-		
700
-		if($this->vendorCodes !== null) {
701
-			
702
-			$xfer += $output->writeFieldBegin('vendorCodes');
703
-			
704
-			if (!is_array($this->vendorCodes)){
705
-				
706
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
707
-			}
708
-			
709
-			$output->writeListBegin();
710
-			foreach ($this->vendorCodes as $iter0){
711
-				
712
-				$xfer += $output->writeString($iter0);
713
-				
714
-			}
715
-			
716
-			$output->writeListEnd();
717
-			
718
-			$xfer += $output->writeFieldEnd();
719
-		}
720
-		
721
-		
722
-		if($this->vendorName !== null) {
723
-			
724
-			$xfer += $output->writeFieldBegin('vendorName');
725
-			$xfer += $output->writeString($this->vendorName);
726
-			
727
-			$xfer += $output->writeFieldEnd();
728
-		}
729
-		
730
-		
731
-		if($this->rangeType !== null) {
732
-			
733
-			$xfer += $output->writeFieldBegin('rangeType');
734
-			$xfer += $output->writeByte($this->rangeType);
735
-			
736
-			$xfer += $output->writeFieldEnd();
737
-		}
738
-		
739
-		
740
-		if($this->stage !== null) {
741
-			
742
-			$xfer += $output->writeFieldBegin('stage');
743
-			$xfer += $output->writeByte($this->stage);
744
-			
745
-			$xfer += $output->writeFieldEnd();
746
-		}
747
-		
748
-		
749
-		if($this->auditStatus !== null) {
750
-			
751
-			$xfer += $output->writeFieldBegin('auditStatus');
752
-			$xfer += $output->writeByte($this->auditStatus);
753
-			
754
-			$xfer += $output->writeFieldEnd();
755
-		}
756
-		
757
-		
758
-		if($this->dataRange !== null) {
759
-			
760
-			$xfer += $output->writeFieldBegin('dataRange');
761
-			$xfer += $output->writeByte($this->dataRange);
762
-			
763
-			$xfer += $output->writeFieldEnd();
764
-		}
765
-		
766
-		
767
-		if($this->dataAreaIds !== null) {
768
-			
769
-			$xfer += $output->writeFieldBegin('dataAreaIds');
770
-			
771
-			if (!is_array($this->dataAreaIds)){
772
-				
773
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
774
-			}
775
-			
776
-			$output->writeListBegin();
777
-			foreach ($this->dataAreaIds as $iter0){
778
-				
779
-				$xfer += $output->writeString($iter0);
780
-				
781
-			}
782
-			
783
-			$output->writeListEnd();
784
-			
785
-			$xfer += $output->writeFieldEnd();
786
-		}
787
-		
788
-		
789
-		if($this->userEmail !== null) {
790
-			
791
-			$xfer += $output->writeFieldBegin('userEmail');
792
-			$xfer += $output->writeString($this->userEmail);
793
-			
794
-			$xfer += $output->writeFieldEnd();
795
-		}
796
-		
797
-		
798
-		if($this->userId !== null) {
799
-			
800
-			$xfer += $output->writeFieldBegin('userId');
801
-			$xfer += $output->writeI32($this->userId);
802
-			
803
-			$xfer += $output->writeFieldEnd();
804
-		}
805
-		
806
-		
807
-		if($this->brandSn !== null) {
808
-			
809
-			$xfer += $output->writeFieldBegin('brandSn');
810
-			$xfer += $output->writeString($this->brandSn);
811
-			
812
-			$xfer += $output->writeFieldEnd();
813
-		}
814
-		
815
-		
816
-		if($this->matchScheduleCreator !== null) {
817
-			
818
-			$xfer += $output->writeFieldBegin('matchScheduleCreator');
819
-			$xfer += $output->writeBool($this->matchScheduleCreator);
820
-			
821
-			$xfer += $output->writeFieldEnd();
822
-		}
823
-		
824
-		
825
-		if($this->orderBy !== null) {
826
-			
827
-			$xfer += $output->writeFieldBegin('orderBy');
828
-			$xfer += $output->writeByte($this->orderBy);
829
-			
830
-			$xfer += $output->writeFieldEnd();
831
-		}
832
-		
833
-		
834
-		if($this->specialName !== null) {
835
-			
836
-			$xfer += $output->writeFieldBegin('specialName');
837
-			$xfer += $output->writeString($this->specialName);
838
-			
839
-			$xfer += $output->writeFieldEnd();
840
-		}
841
-		
842
-		
843
-		if($this->bearType !== null) {
844
-			
845
-			$xfer += $output->writeFieldBegin('bearType');
846
-			
847
-			if (!is_array($this->bearType)){
848
-				
849
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
850
-			}
851
-			
852
-			$output->writeListBegin();
853
-			foreach ($this->bearType as $iter0){
854
-				
855
-				$xfer += $output->writeByte($iter0);
856
-				
857
-			}
858
-			
859
-			$output->writeListEnd();
860
-			
861
-			$xfer += $output->writeFieldEnd();
862
-		}
863
-		
864
-		
865
-		if($this->businessType !== null) {
866
-			
867
-			$xfer += $output->writeFieldBegin('businessType');
868
-			$xfer += $output->writeByte($this->businessType);
869
-			
870
-			$xfer += $output->writeFieldEnd();
871
-		}
872
-		
873
-		
874
-		if($this->contractDimension !== null) {
875
-			
876
-			$xfer += $output->writeFieldBegin('contractDimension');
877
-			$xfer += $output->writeByte($this->contractDimension);
878
-			
879
-			$xfer += $output->writeFieldEnd();
880
-		}
881
-		
882
-		
883
-		if($this->contractMode !== null) {
884
-			
885
-			$xfer += $output->writeFieldBegin('contractMode');
886
-			$xfer += $output->writeByte($this->contractMode);
887
-			
888
-			$xfer += $output->writeFieldEnd();
889
-		}
890
-		
891
-		
892
-		$xfer += $output->writeFieldStop();
893
-		$xfer += $output->writeStructEnd();
894
-		return $xfer;
895
-	}
896
-	
897
-}
898
-
899
-?>

+ 0 - 899
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractQueryParam.php

@@ -1,899 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractQueryParam {
14
-	
15
-	static $_TSPEC;
16
-	public $protNos = null;
17
-	public $activityAlltype = null;
18
-	public $status = null;
19
-	public $signMode = null;
20
-	public $onlineStarttimeStart = null;
21
-	public $onlineStarttimeEnd = null;
22
-	public $onlineEndtimeStart = null;
23
-	public $onlineEndtimeEnd = null;
24
-	public $vendorCodes = null;
25
-	public $rangeType = null;
26
-	public $stage = null;
27
-	public $dataAreaIds = null;
28
-	public $orderBy = null;
29
-	public $brandSn = null;
30
-	public $brandId = null;
31
-	public $specialName = null;
32
-	public $basicStatus = null;
33
-	public $beginTime = null;
34
-	public $endTime = null;
35
-	public $operatorType = null;
36
-	public $businessType = null;
37
-	public $contractDimension = null;
38
-	public $contractMode = null;
39
-	public $contractIds = null;
40
-	
41
-	public function __construct($vals=null){
42
-		
43
-		if (!isset(self::$_TSPEC)){
44
-			
45
-			self::$_TSPEC = array(
46
-			1 => array(
47
-			'var' => 'protNos'
48
-			),
49
-			2 => array(
50
-			'var' => 'activityAlltype'
51
-			),
52
-			3 => array(
53
-			'var' => 'status'
54
-			),
55
-			4 => array(
56
-			'var' => 'signMode'
57
-			),
58
-			5 => array(
59
-			'var' => 'onlineStarttimeStart'
60
-			),
61
-			6 => array(
62
-			'var' => 'onlineStarttimeEnd'
63
-			),
64
-			7 => array(
65
-			'var' => 'onlineEndtimeStart'
66
-			),
67
-			8 => array(
68
-			'var' => 'onlineEndtimeEnd'
69
-			),
70
-			9 => array(
71
-			'var' => 'vendorCodes'
72
-			),
73
-			10 => array(
74
-			'var' => 'rangeType'
75
-			),
76
-			11 => array(
77
-			'var' => 'stage'
78
-			),
79
-			12 => array(
80
-			'var' => 'dataAreaIds'
81
-			),
82
-			13 => array(
83
-			'var' => 'orderBy'
84
-			),
85
-			14 => array(
86
-			'var' => 'brandSn'
87
-			),
88
-			15 => array(
89
-			'var' => 'brandId'
90
-			),
91
-			16 => array(
92
-			'var' => 'specialName'
93
-			),
94
-			17 => array(
95
-			'var' => 'basicStatus'
96
-			),
97
-			18 => array(
98
-			'var' => 'beginTime'
99
-			),
100
-			19 => array(
101
-			'var' => 'endTime'
102
-			),
103
-			20 => array(
104
-			'var' => 'operatorType'
105
-			),
106
-			21 => array(
107
-			'var' => 'businessType'
108
-			),
109
-			22 => array(
110
-			'var' => 'contractDimension'
111
-			),
112
-			23 => array(
113
-			'var' => 'contractMode'
114
-			),
115
-			24 => array(
116
-			'var' => 'contractIds'
117
-			),
118
-			
119
-			);
120
-			
121
-		}
122
-		
123
-		if (is_array($vals)){
124
-			
125
-			
126
-			if (isset($vals['protNos'])){
127
-				
128
-				$this->protNos = $vals['protNos'];
129
-			}
130
-			
131
-			
132
-			if (isset($vals['activityAlltype'])){
133
-				
134
-				$this->activityAlltype = $vals['activityAlltype'];
135
-			}
136
-			
137
-			
138
-			if (isset($vals['status'])){
139
-				
140
-				$this->status = $vals['status'];
141
-			}
142
-			
143
-			
144
-			if (isset($vals['signMode'])){
145
-				
146
-				$this->signMode = $vals['signMode'];
147
-			}
148
-			
149
-			
150
-			if (isset($vals['onlineStarttimeStart'])){
151
-				
152
-				$this->onlineStarttimeStart = $vals['onlineStarttimeStart'];
153
-			}
154
-			
155
-			
156
-			if (isset($vals['onlineStarttimeEnd'])){
157
-				
158
-				$this->onlineStarttimeEnd = $vals['onlineStarttimeEnd'];
159
-			}
160
-			
161
-			
162
-			if (isset($vals['onlineEndtimeStart'])){
163
-				
164
-				$this->onlineEndtimeStart = $vals['onlineEndtimeStart'];
165
-			}
166
-			
167
-			
168
-			if (isset($vals['onlineEndtimeEnd'])){
169
-				
170
-				$this->onlineEndtimeEnd = $vals['onlineEndtimeEnd'];
171
-			}
172
-			
173
-			
174
-			if (isset($vals['vendorCodes'])){
175
-				
176
-				$this->vendorCodes = $vals['vendorCodes'];
177
-			}
178
-			
179
-			
180
-			if (isset($vals['rangeType'])){
181
-				
182
-				$this->rangeType = $vals['rangeType'];
183
-			}
184
-			
185
-			
186
-			if (isset($vals['stage'])){
187
-				
188
-				$this->stage = $vals['stage'];
189
-			}
190
-			
191
-			
192
-			if (isset($vals['dataAreaIds'])){
193
-				
194
-				$this->dataAreaIds = $vals['dataAreaIds'];
195
-			}
196
-			
197
-			
198
-			if (isset($vals['orderBy'])){
199
-				
200
-				$this->orderBy = $vals['orderBy'];
201
-			}
202
-			
203
-			
204
-			if (isset($vals['brandSn'])){
205
-				
206
-				$this->brandSn = $vals['brandSn'];
207
-			}
208
-			
209
-			
210
-			if (isset($vals['brandId'])){
211
-				
212
-				$this->brandId = $vals['brandId'];
213
-			}
214
-			
215
-			
216
-			if (isset($vals['specialName'])){
217
-				
218
-				$this->specialName = $vals['specialName'];
219
-			}
220
-			
221
-			
222
-			if (isset($vals['basicStatus'])){
223
-				
224
-				$this->basicStatus = $vals['basicStatus'];
225
-			}
226
-			
227
-			
228
-			if (isset($vals['beginTime'])){
229
-				
230
-				$this->beginTime = $vals['beginTime'];
231
-			}
232
-			
233
-			
234
-			if (isset($vals['endTime'])){
235
-				
236
-				$this->endTime = $vals['endTime'];
237
-			}
238
-			
239
-			
240
-			if (isset($vals['operatorType'])){
241
-				
242
-				$this->operatorType = $vals['operatorType'];
243
-			}
244
-			
245
-			
246
-			if (isset($vals['businessType'])){
247
-				
248
-				$this->businessType = $vals['businessType'];
249
-			}
250
-			
251
-			
252
-			if (isset($vals['contractDimension'])){
253
-				
254
-				$this->contractDimension = $vals['contractDimension'];
255
-			}
256
-			
257
-			
258
-			if (isset($vals['contractMode'])){
259
-				
260
-				$this->contractMode = $vals['contractMode'];
261
-			}
262
-			
263
-			
264
-			if (isset($vals['contractIds'])){
265
-				
266
-				$this->contractIds = $vals['contractIds'];
267
-			}
268
-			
269
-			
270
-		}
271
-		
272
-	}
273
-	
274
-	
275
-	public function getName(){
276
-		
277
-		return 'ProtContractQueryParam';
278
-	}
279
-	
280
-	public function read($input){
281
-		
282
-		$input->readStructBegin();
283
-		while(true){
284
-			
285
-			$schemeField = $input->readFieldBegin();
286
-			if ($schemeField == null) break;
287
-			$needSkip = true;
288
-			
289
-			
290
-			if ("protNos" == $schemeField){
291
-				
292
-				$needSkip = false;
293
-				
294
-				$this->protNos = array();
295
-				$_size0 = 0;
296
-				$input->readListBegin();
297
-				while(true){
298
-					
299
-					try{
300
-						
301
-						$elem0 = null;
302
-						$input->readString($elem0);
303
-						
304
-						$this->protNos[$_size0++] = $elem0;
305
-					}
306
-					catch(\Exception $e){
307
-						
308
-						break;
309
-					}
310
-				}
311
-				
312
-				$input->readListEnd();
313
-				
314
-			}
315
-			
316
-			
317
-			
318
-			
319
-			if ("activityAlltype" == $schemeField){
320
-				
321
-				$needSkip = false;
322
-				$input->readString($this->activityAlltype);
323
-				
324
-			}
325
-			
326
-			
327
-			
328
-			
329
-			if ("status" == $schemeField){
330
-				
331
-				$needSkip = false;
332
-				$input->readByte($this->status); 
333
-				
334
-			}
335
-			
336
-			
337
-			
338
-			
339
-			if ("signMode" == $schemeField){
340
-				
341
-				$needSkip = false;
342
-				$input->readByte($this->signMode); 
343
-				
344
-			}
345
-			
346
-			
347
-			
348
-			
349
-			if ("onlineStarttimeStart" == $schemeField){
350
-				
351
-				$needSkip = false;
352
-				$input->readI64($this->onlineStarttimeStart); 
353
-				
354
-			}
355
-			
356
-			
357
-			
358
-			
359
-			if ("onlineStarttimeEnd" == $schemeField){
360
-				
361
-				$needSkip = false;
362
-				$input->readI64($this->onlineStarttimeEnd); 
363
-				
364
-			}
365
-			
366
-			
367
-			
368
-			
369
-			if ("onlineEndtimeStart" == $schemeField){
370
-				
371
-				$needSkip = false;
372
-				$input->readI64($this->onlineEndtimeStart); 
373
-				
374
-			}
375
-			
376
-			
377
-			
378
-			
379
-			if ("onlineEndtimeEnd" == $schemeField){
380
-				
381
-				$needSkip = false;
382
-				$input->readI64($this->onlineEndtimeEnd); 
383
-				
384
-			}
385
-			
386
-			
387
-			
388
-			
389
-			if ("vendorCodes" == $schemeField){
390
-				
391
-				$needSkip = false;
392
-				
393
-				$this->vendorCodes = array();
394
-				$_size1 = 0;
395
-				$input->readListBegin();
396
-				while(true){
397
-					
398
-					try{
399
-						
400
-						$elem1 = null;
401
-						$input->readString($elem1);
402
-						
403
-						$this->vendorCodes[$_size1++] = $elem1;
404
-					}
405
-					catch(\Exception $e){
406
-						
407
-						break;
408
-					}
409
-				}
410
-				
411
-				$input->readListEnd();
412
-				
413
-			}
414
-			
415
-			
416
-			
417
-			
418
-			if ("rangeType" == $schemeField){
419
-				
420
-				$needSkip = false;
421
-				$input->readByte($this->rangeType); 
422
-				
423
-			}
424
-			
425
-			
426
-			
427
-			
428
-			if ("stage" == $schemeField){
429
-				
430
-				$needSkip = false;
431
-				$input->readByte($this->stage); 
432
-				
433
-			}
434
-			
435
-			
436
-			
437
-			
438
-			if ("dataAreaIds" == $schemeField){
439
-				
440
-				$needSkip = false;
441
-				
442
-				$this->dataAreaIds = array();
443
-				$_size2 = 0;
444
-				$input->readListBegin();
445
-				while(true){
446
-					
447
-					try{
448
-						
449
-						$elem2 = null;
450
-						$input->readString($elem2);
451
-						
452
-						$this->dataAreaIds[$_size2++] = $elem2;
453
-					}
454
-					catch(\Exception $e){
455
-						
456
-						break;
457
-					}
458
-				}
459
-				
460
-				$input->readListEnd();
461
-				
462
-			}
463
-			
464
-			
465
-			
466
-			
467
-			if ("orderBy" == $schemeField){
468
-				
469
-				$needSkip = false;
470
-				$input->readByte($this->orderBy); 
471
-				
472
-			}
473
-			
474
-			
475
-			
476
-			
477
-			if ("brandSn" == $schemeField){
478
-				
479
-				$needSkip = false;
480
-				$input->readString($this->brandSn);
481
-				
482
-			}
483
-			
484
-			
485
-			
486
-			
487
-			if ("brandId" == $schemeField){
488
-				
489
-				$needSkip = false;
490
-				$input->readString($this->brandId);
491
-				
492
-			}
493
-			
494
-			
495
-			
496
-			
497
-			if ("specialName" == $schemeField){
498
-				
499
-				$needSkip = false;
500
-				$input->readString($this->specialName);
501
-				
502
-			}
503
-			
504
-			
505
-			
506
-			
507
-			if ("basicStatus" == $schemeField){
508
-				
509
-				$needSkip = false;
510
-				$input->readByte($this->basicStatus); 
511
-				
512
-			}
513
-			
514
-			
515
-			
516
-			
517
-			if ("beginTime" == $schemeField){
518
-				
519
-				$needSkip = false;
520
-				$input->readI64($this->beginTime); 
521
-				
522
-			}
523
-			
524
-			
525
-			
526
-			
527
-			if ("endTime" == $schemeField){
528
-				
529
-				$needSkip = false;
530
-				$input->readI64($this->endTime); 
531
-				
532
-			}
533
-			
534
-			
535
-			
536
-			
537
-			if ("operatorType" == $schemeField){
538
-				
539
-				$needSkip = false;
540
-				$input->readByte($this->operatorType); 
541
-				
542
-			}
543
-			
544
-			
545
-			
546
-			
547
-			if ("businessType" == $schemeField){
548
-				
549
-				$needSkip = false;
550
-				$input->readByte($this->businessType); 
551
-				
552
-			}
553
-			
554
-			
555
-			
556
-			
557
-			if ("contractDimension" == $schemeField){
558
-				
559
-				$needSkip = false;
560
-				$input->readByte($this->contractDimension); 
561
-				
562
-			}
563
-			
564
-			
565
-			
566
-			
567
-			if ("contractMode" == $schemeField){
568
-				
569
-				$needSkip = false;
570
-				$input->readByte($this->contractMode); 
571
-				
572
-			}
573
-			
574
-			
575
-			
576
-			
577
-			if ("contractIds" == $schemeField){
578
-				
579
-				$needSkip = false;
580
-				
581
-				$this->contractIds = array();
582
-				$_size3 = 0;
583
-				$input->readListBegin();
584
-				while(true){
585
-					
586
-					try{
587
-						
588
-						$elem3 = null;
589
-						$input->readI64($elem3); 
590
-						
591
-						$this->contractIds[$_size3++] = $elem3;
592
-					}
593
-					catch(\Exception $e){
594
-						
595
-						break;
596
-					}
597
-				}
598
-				
599
-				$input->readListEnd();
600
-				
601
-			}
602
-			
603
-			
604
-			
605
-			if($needSkip){
606
-				
607
-				\Osp\Protocol\ProtocolUtil::skip($input);
608
-			}
609
-			
610
-			$input->readFieldEnd();
611
-		}
612
-		
613
-		$input->readStructEnd();
614
-		
615
-		
616
-		
617
-	}
618
-	
619
-	public function write($output){
620
-		
621
-		$xfer = 0;
622
-		$xfer += $output->writeStructBegin();
623
-		
624
-		if($this->protNos !== null) {
625
-			
626
-			$xfer += $output->writeFieldBegin('protNos');
627
-			
628
-			if (!is_array($this->protNos)){
629
-				
630
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
631
-			}
632
-			
633
-			$output->writeListBegin();
634
-			foreach ($this->protNos as $iter0){
635
-				
636
-				$xfer += $output->writeString($iter0);
637
-				
638
-			}
639
-			
640
-			$output->writeListEnd();
641
-			
642
-			$xfer += $output->writeFieldEnd();
643
-		}
644
-		
645
-		
646
-		if($this->activityAlltype !== null) {
647
-			
648
-			$xfer += $output->writeFieldBegin('activityAlltype');
649
-			$xfer += $output->writeString($this->activityAlltype);
650
-			
651
-			$xfer += $output->writeFieldEnd();
652
-		}
653
-		
654
-		
655
-		if($this->status !== null) {
656
-			
657
-			$xfer += $output->writeFieldBegin('status');
658
-			$xfer += $output->writeByte($this->status);
659
-			
660
-			$xfer += $output->writeFieldEnd();
661
-		}
662
-		
663
-		
664
-		if($this->signMode !== null) {
665
-			
666
-			$xfer += $output->writeFieldBegin('signMode');
667
-			$xfer += $output->writeByte($this->signMode);
668
-			
669
-			$xfer += $output->writeFieldEnd();
670
-		}
671
-		
672
-		
673
-		if($this->onlineStarttimeStart !== null) {
674
-			
675
-			$xfer += $output->writeFieldBegin('onlineStarttimeStart');
676
-			$xfer += $output->writeI64($this->onlineStarttimeStart);
677
-			
678
-			$xfer += $output->writeFieldEnd();
679
-		}
680
-		
681
-		
682
-		if($this->onlineStarttimeEnd !== null) {
683
-			
684
-			$xfer += $output->writeFieldBegin('onlineStarttimeEnd');
685
-			$xfer += $output->writeI64($this->onlineStarttimeEnd);
686
-			
687
-			$xfer += $output->writeFieldEnd();
688
-		}
689
-		
690
-		
691
-		if($this->onlineEndtimeStart !== null) {
692
-			
693
-			$xfer += $output->writeFieldBegin('onlineEndtimeStart');
694
-			$xfer += $output->writeI64($this->onlineEndtimeStart);
695
-			
696
-			$xfer += $output->writeFieldEnd();
697
-		}
698
-		
699
-		
700
-		if($this->onlineEndtimeEnd !== null) {
701
-			
702
-			$xfer += $output->writeFieldBegin('onlineEndtimeEnd');
703
-			$xfer += $output->writeI64($this->onlineEndtimeEnd);
704
-			
705
-			$xfer += $output->writeFieldEnd();
706
-		}
707
-		
708
-		
709
-		if($this->vendorCodes !== null) {
710
-			
711
-			$xfer += $output->writeFieldBegin('vendorCodes');
712
-			
713
-			if (!is_array($this->vendorCodes)){
714
-				
715
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
716
-			}
717
-			
718
-			$output->writeListBegin();
719
-			foreach ($this->vendorCodes as $iter0){
720
-				
721
-				$xfer += $output->writeString($iter0);
722
-				
723
-			}
724
-			
725
-			$output->writeListEnd();
726
-			
727
-			$xfer += $output->writeFieldEnd();
728
-		}
729
-		
730
-		
731
-		if($this->rangeType !== null) {
732
-			
733
-			$xfer += $output->writeFieldBegin('rangeType');
734
-			$xfer += $output->writeByte($this->rangeType);
735
-			
736
-			$xfer += $output->writeFieldEnd();
737
-		}
738
-		
739
-		
740
-		if($this->stage !== null) {
741
-			
742
-			$xfer += $output->writeFieldBegin('stage');
743
-			$xfer += $output->writeByte($this->stage);
744
-			
745
-			$xfer += $output->writeFieldEnd();
746
-		}
747
-		
748
-		
749
-		if($this->dataAreaIds !== null) {
750
-			
751
-			$xfer += $output->writeFieldBegin('dataAreaIds');
752
-			
753
-			if (!is_array($this->dataAreaIds)){
754
-				
755
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
756
-			}
757
-			
758
-			$output->writeListBegin();
759
-			foreach ($this->dataAreaIds as $iter0){
760
-				
761
-				$xfer += $output->writeString($iter0);
762
-				
763
-			}
764
-			
765
-			$output->writeListEnd();
766
-			
767
-			$xfer += $output->writeFieldEnd();
768
-		}
769
-		
770
-		
771
-		if($this->orderBy !== null) {
772
-			
773
-			$xfer += $output->writeFieldBegin('orderBy');
774
-			$xfer += $output->writeByte($this->orderBy);
775
-			
776
-			$xfer += $output->writeFieldEnd();
777
-		}
778
-		
779
-		
780
-		if($this->brandSn !== null) {
781
-			
782
-			$xfer += $output->writeFieldBegin('brandSn');
783
-			$xfer += $output->writeString($this->brandSn);
784
-			
785
-			$xfer += $output->writeFieldEnd();
786
-		}
787
-		
788
-		
789
-		if($this->brandId !== null) {
790
-			
791
-			$xfer += $output->writeFieldBegin('brandId');
792
-			$xfer += $output->writeString($this->brandId);
793
-			
794
-			$xfer += $output->writeFieldEnd();
795
-		}
796
-		
797
-		
798
-		if($this->specialName !== null) {
799
-			
800
-			$xfer += $output->writeFieldBegin('specialName');
801
-			$xfer += $output->writeString($this->specialName);
802
-			
803
-			$xfer += $output->writeFieldEnd();
804
-		}
805
-		
806
-		
807
-		if($this->basicStatus !== null) {
808
-			
809
-			$xfer += $output->writeFieldBegin('basicStatus');
810
-			$xfer += $output->writeByte($this->basicStatus);
811
-			
812
-			$xfer += $output->writeFieldEnd();
813
-		}
814
-		
815
-		
816
-		if($this->beginTime !== null) {
817
-			
818
-			$xfer += $output->writeFieldBegin('beginTime');
819
-			$xfer += $output->writeI64($this->beginTime);
820
-			
821
-			$xfer += $output->writeFieldEnd();
822
-		}
823
-		
824
-		
825
-		if($this->endTime !== null) {
826
-			
827
-			$xfer += $output->writeFieldBegin('endTime');
828
-			$xfer += $output->writeI64($this->endTime);
829
-			
830
-			$xfer += $output->writeFieldEnd();
831
-		}
832
-		
833
-		
834
-		if($this->operatorType !== null) {
835
-			
836
-			$xfer += $output->writeFieldBegin('operatorType');
837
-			$xfer += $output->writeByte($this->operatorType);
838
-			
839
-			$xfer += $output->writeFieldEnd();
840
-		}
841
-		
842
-		
843
-		if($this->businessType !== null) {
844
-			
845
-			$xfer += $output->writeFieldBegin('businessType');
846
-			$xfer += $output->writeByte($this->businessType);
847
-			
848
-			$xfer += $output->writeFieldEnd();
849
-		}
850
-		
851
-		
852
-		if($this->contractDimension !== null) {
853
-			
854
-			$xfer += $output->writeFieldBegin('contractDimension');
855
-			$xfer += $output->writeByte($this->contractDimension);
856
-			
857
-			$xfer += $output->writeFieldEnd();
858
-		}
859
-		
860
-		
861
-		if($this->contractMode !== null) {
862
-			
863
-			$xfer += $output->writeFieldBegin('contractMode');
864
-			$xfer += $output->writeByte($this->contractMode);
865
-			
866
-			$xfer += $output->writeFieldEnd();
867
-		}
868
-		
869
-		
870
-		if($this->contractIds !== null) {
871
-			
872
-			$xfer += $output->writeFieldBegin('contractIds');
873
-			
874
-			if (!is_array($this->contractIds)){
875
-				
876
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
877
-			}
878
-			
879
-			$output->writeListBegin();
880
-			foreach ($this->contractIds as $iter0){
881
-				
882
-				$xfer += $output->writeI64($iter0);
883
-				
884
-			}
885
-			
886
-			$output->writeListEnd();
887
-			
888
-			$xfer += $output->writeFieldEnd();
889
-		}
890
-		
891
-		
892
-		$xfer += $output->writeFieldStop();
893
-		$xfer += $output->writeStructEnd();
894
-		return $xfer;
895
-	}
896
-	
897
-}
898
-
899
-?>

+ 0 - 162
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractSalesNameParam.php

@@ -1,162 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractSalesNameParam {
14
-	
15
-	static $_TSPEC;
16
-	public $salesNameParam = null;
17
-	public $limit = null;
18
-	public $vendorCode = null;
19
-	
20
-	public function __construct($vals=null){
21
-		
22
-		if (!isset(self::$_TSPEC)){
23
-			
24
-			self::$_TSPEC = array(
25
-			1 => array(
26
-			'var' => 'salesNameParam'
27
-			),
28
-			2 => array(
29
-			'var' => 'limit'
30
-			),
31
-			3 => array(
32
-			'var' => 'vendorCode'
33
-			),
34
-			
35
-			);
36
-			
37
-		}
38
-		
39
-		if (is_array($vals)){
40
-			
41
-			
42
-			if (isset($vals['salesNameParam'])){
43
-				
44
-				$this->salesNameParam = $vals['salesNameParam'];
45
-			}
46
-			
47
-			
48
-			if (isset($vals['limit'])){
49
-				
50
-				$this->limit = $vals['limit'];
51
-			}
52
-			
53
-			
54
-			if (isset($vals['vendorCode'])){
55
-				
56
-				$this->vendorCode = $vals['vendorCode'];
57
-			}
58
-			
59
-			
60
-		}
61
-		
62
-	}
63
-	
64
-	
65
-	public function getName(){
66
-		
67
-		return 'ProtContractSalesNameParam';
68
-	}
69
-	
70
-	public function read($input){
71
-		
72
-		$input->readStructBegin();
73
-		while(true){
74
-			
75
-			$schemeField = $input->readFieldBegin();
76
-			if ($schemeField == null) break;
77
-			$needSkip = true;
78
-			
79
-			
80
-			if ("salesNameParam" == $schemeField){
81
-				
82
-				$needSkip = false;
83
-				$input->readString($this->salesNameParam);
84
-				
85
-			}
86
-			
87
-			
88
-			
89
-			
90
-			if ("limit" == $schemeField){
91
-				
92
-				$needSkip = false;
93
-				$input->readI32($this->limit); 
94
-				
95
-			}
96
-			
97
-			
98
-			
99
-			
100
-			if ("vendorCode" == $schemeField){
101
-				
102
-				$needSkip = false;
103
-				$input->readI32($this->vendorCode); 
104
-				
105
-			}
106
-			
107
-			
108
-			
109
-			if($needSkip){
110
-				
111
-				\Osp\Protocol\ProtocolUtil::skip($input);
112
-			}
113
-			
114
-			$input->readFieldEnd();
115
-		}
116
-		
117
-		$input->readStructEnd();
118
-		
119
-		
120
-		
121
-	}
122
-	
123
-	public function write($output){
124
-		
125
-		$xfer = 0;
126
-		$xfer += $output->writeStructBegin();
127
-		
128
-		if($this->salesNameParam !== null) {
129
-			
130
-			$xfer += $output->writeFieldBegin('salesNameParam');
131
-			$xfer += $output->writeString($this->salesNameParam);
132
-			
133
-			$xfer += $output->writeFieldEnd();
134
-		}
135
-		
136
-		
137
-		if($this->limit !== null) {
138
-			
139
-			$xfer += $output->writeFieldBegin('limit');
140
-			$xfer += $output->writeI32($this->limit);
141
-			
142
-			$xfer += $output->writeFieldEnd();
143
-		}
144
-		
145
-		
146
-		if($this->vendorCode !== null) {
147
-			
148
-			$xfer += $output->writeFieldBegin('vendorCode');
149
-			$xfer += $output->writeI32($this->vendorCode);
150
-			
151
-			$xfer += $output->writeFieldEnd();
152
-		}
153
-		
154
-		
155
-		$xfer += $output->writeFieldStop();
156
-		$xfer += $output->writeStructEnd();
157
-		return $xfer;
158
-	}
159
-	
160
-}
161
-
162
-?>

+ 0 - 136
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractSalesNameResultModel.php

@@ -1,136 +0,0 @@
1
-<?php
2
-
3
-
4
-/*
5
-* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
6
-*
7
-* Powered by com.vip.osp.osp-idlc-2.5.11.
8
-*
9
-*/
10
-
11
-namespace com\vip\api\promotion\vis\protcontract\service;
12
-
13
-class ProtContractSalesNameResultModel {
14
-	
15
-	static $_TSPEC;
16
-	public $salesNameList = null;
17
-	
18
-	public function __construct($vals=null){
19
-		
20
-		if (!isset(self::$_TSPEC)){
21
-			
22
-			self::$_TSPEC = array(
23
-			1 => array(
24
-			'var' => 'salesNameList'
25
-			),
26
-			
27
-			);
28
-			
29
-		}
30
-		
31
-		if (is_array($vals)){
32
-			
33
-			
34
-			if (isset($vals['salesNameList'])){
35
-				
36
-				$this->salesNameList = $vals['salesNameList'];
37
-			}
38
-			
39
-			
40
-		}
41
-		
42
-	}
43
-	
44
-	
45
-	public function getName(){
46
-		
47
-		return 'ProtContractSalesNameResultModel';
48
-	}
49
-	
50
-	public function read($input){
51
-		
52
-		$input->readStructBegin();
53
-		while(true){
54
-			
55
-			$schemeField = $input->readFieldBegin();
56
-			if ($schemeField == null) break;
57
-			$needSkip = true;
58
-			
59
-			
60
-			if ("salesNameList" == $schemeField){
61
-				
62
-				$needSkip = false;
63
-				
64
-				$this->salesNameList = array();
65
-				$_size0 = 0;
66
-				$input->readListBegin();
67
-				while(true){
68
-					
69
-					try{
70
-						
71
-						$elem0 = null;
72
-						$input->readString($elem0);
73
-						
74
-						$this->salesNameList[$_size0++] = $elem0;
75
-					}
76
-					catch(\Exception $e){
77
-						
78
-						break;
79
-					}
80
-				}
81
-				
82
-				$input->readListEnd();
83
-				
84
-			}
85
-			
86
-			
87
-			
88
-			if($needSkip){
89
-				
90
-				\Osp\Protocol\ProtocolUtil::skip($input);
91
-			}
92
-			
93
-			$input->readFieldEnd();
94
-		}
95
-		
96
-		$input->readStructEnd();
97
-		
98
-		
99
-		
100
-	}
101
-	
102
-	public function write($output){
103
-		
104
-		$xfer = 0;
105
-		$xfer += $output->writeStructBegin();
106
-		
107
-		if($this->salesNameList !== null) {
108
-			
109
-			$xfer += $output->writeFieldBegin('salesNameList');
110
-			
111
-			if (!is_array($this->salesNameList)){
112
-				
113
-				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
114
-			}
115
-			
116
-			$output->writeListBegin();
117
-			foreach ($this->salesNameList as $iter0){
118
-				
119
-				$xfer += $output->writeString($iter0);
120
-				
121
-			}
122
-			
123
-			$output->writeListEnd();
124
-			
125
-			$xfer += $output->writeFieldEnd();
126
-		}
127
-		
128
-		
129
-		$xfer += $output->writeFieldStop();
130
-		$xfer += $output->writeStructEnd();
131
-		return $xfer;
132
-	}
133
-	
134
-}
135
-
136
-?>

+ 0 - 0
extend/vip_sdk/src/com/vip/api/promotion/vis/protcontract/service/ProtContractSubmitParam.php


Некоторые файлы не были показаны из-за большого количества измененных файлов