|
@@ -70,10 +70,10 @@ public class ProductController { |
|
@@ -70,10 +70,10 @@ public class ProductController { |
70
|
@IgnoreSession
|
70
|
@IgnoreSession
|
71
|
@RequestMapping(params = "method=ufo.product.storage.leastprice")
|
71
|
@RequestMapping(params = "method=ufo.product.storage.leastprice")
|
72
|
//@Cachable(expire=600)
|
72
|
//@Cachable(expire=600)
|
73
|
- public ApiResponse queryStorageLeastprice(
|
|
|
74
|
- @RequestParam(value = "storage_id", required = false) String storageId) {
|
73
|
+ public StorageLeastPriceResp queryStorageLeastprice(
|
|
|
74
|
+ @RequestParam(value = "storage_id", required = true) Integer storageId) {
|
75
|
|
75
|
|
76
|
- return new ApiResponse.ApiResponseBuilder().data(queryStorageLeastprice()).code(200).message("storage data").build();
|
76
|
+ return queryStorageLeastprice();
|
77
|
}
|
77
|
}
|
78
|
|
78
|
|
79
|
|
79
|
|
|
@@ -88,10 +88,10 @@ public class ProductController { |
|
@@ -88,10 +88,10 @@ public class ProductController { |
88
|
@IgnoreSession
|
88
|
@IgnoreSession
|
89
|
@RequestMapping(params = "method=ufo.product.storage.data")
|
89
|
@RequestMapping(params = "method=ufo.product.storage.data")
|
90
|
//@Cachable(expire=600)
|
90
|
//@Cachable(expire=600)
|
91
|
- public ApiResponse queryStorageInfo(
|
|
|
92
|
- @RequestParam(value = "storage_id", required = false) String storageId) {
|
91
|
+ public StorageDataResp queryStorageInfo(
|
|
|
92
|
+ @RequestParam(value = "storage_id", required = true) Integer storageId) {
|
93
|
|
93
|
|
94
|
- return new ApiResponse.ApiResponseBuilder().data(queryStorageData()).code(200).message("product data").build();
|
94
|
+ return queryStorageData();
|
95
|
}
|
95
|
}
|
96
|
|
96
|
|
97
|
|
97
|
|
|
@@ -101,5 +101,31 @@ public class ProductController { |
|
@@ -101,5 +101,31 @@ public class ProductController { |
101
|
return resp;
|
101
|
return resp;
|
102
|
}
|
102
|
}
|
103
|
|
103
|
|
|
|
104
|
+ @IgnoreSignature
|
|
|
105
|
+ @IgnoreSession
|
|
|
106
|
+ @RequestMapping(params = "method=ufo.product.createSkup")
|
|
|
107
|
+ public ApiResponse createSkup(
|
|
|
108
|
+ @RequestParam(value = "skup", required = false) Integer skup,
|
|
|
109
|
+ @RequestParam(value = "seller_uid", required = false) Integer sellerUid,
|
|
|
110
|
+ @RequestParam(value = "price", required = false) String price) {
|
|
|
111
|
+
|
|
|
112
|
+ return new ApiResponse(200, "创建成功!", Boolean.TRUE);
|
|
|
113
|
+ }
|
|
|
114
|
+
|
|
|
115
|
+ @IgnoreSignature
|
|
|
116
|
+ @IgnoreSession
|
|
|
117
|
+ @RequestMapping(params = "method=ufo.product.saleSkup")
|
|
|
118
|
+ public ApiResponse saleSkup(
|
|
|
119
|
+ @RequestParam(value = "skup", required = false) Integer skup) {
|
|
|
120
|
+ return new ApiResponse(200, "卖出成功!", Boolean.TRUE);
|
|
|
121
|
+ }
|
|
|
122
|
+
|
|
|
123
|
+ @IgnoreSignature
|
|
|
124
|
+ @IgnoreSession
|
|
|
125
|
+ @RequestMapping(params = "method=ufo.product.cancelSaleSkup")
|
|
|
126
|
+ public ApiResponse cancelSaleSkup(
|
|
|
127
|
+ @RequestParam(value = "skup", required = false) Integer skup) {
|
|
|
128
|
+ return new ApiResponse(200, "取消卖出成功!", Boolean.TRUE);
|
|
|
129
|
+ }
|
104
|
|
130
|
|
105
|
} |
131
|
} |