Commit 47848deef064056af073bf58835a0a3cdd973194

Authored by jiangchengyong
1 parent acd4f602

http-request update

myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/impl/BuyerInfoServiceImpl.java
... ... @@ -99,7 +99,7 @@ public class BuyerInfoServiceImpl extends BaseServiceImpl implements BuyerInfoSe
99 99 */
100 100 @Override
101 101 public BaseOutput<List<BuyerInfoOutput>> listByCondition(BuyerInfoListInput buyerInfoListInput) {
102   - return super.httpPost("/api/buyerInfo/listByCondition", buyerInfoListInput, new TypeReference<BaseOutput<List<BuyerInfoOutput>>>() {});
  102 + return super.httpPost("/api/buyerInfo/listByCondition", buyerInfoListInput, new TypeReference<BaseOutput<List<BuyerInfoOutput>>>() {},true);
103 103 }
104 104  
105 105 }
... ...
myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/impl/FundTradeServiceImpl.java
... ... @@ -27,7 +27,7 @@ public class FundTradeServiceImpl extends BaseServiceImpl implements FundTradeSe
27 27 */
28 28 @Override
29 29 public BaseOutput<Boolean> fundTrade(FundTradeSaveInput fundTradeSaveInput) {
30   - return this.httpPost("/api/FundTrade/fundTrade", fundTradeSaveInput,new TypeReference<BaseOutput<Boolean>>(){});
  30 + return this.httpPost("/api/FundTrade/fundTrade", fundTradeSaveInput,new TypeReference<BaseOutput<Boolean>>(){},true);
31 31 }
32 32  
33 33 public static void main(String[] args) {
... ...
myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/impl/SellerInfoServiceImpl.java
... ... @@ -91,7 +91,7 @@ public class SellerInfoServiceImpl extends BaseServiceImpl implements SellerInfo
91 91 */
92 92 @Override
93 93 public BaseOutput<List<SellerInfoOutput>> listByCondition(SellerInfoListInput sellerInfoListInput) {
94   - return super.httpPost("/api/sellerInfo/listByCondition", sellerInfoListInput, new TypeReference<BaseOutput<List<SellerInfoOutput>>>() {});
  94 + return super.httpPost("/api/sellerInfo/listByCondition", sellerInfoListInput, new TypeReference<BaseOutput<List<SellerInfoOutput>>>() {},true);
95 95 }
96 96  
97 97 }
... ...
myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/impl/ShopBuyerServiceImpl.java
... ... @@ -25,7 +25,7 @@ public class ShopBuyerServiceImpl extends BaseServiceImpl implements ShopBuyerSe
25 25  
26 26 @Override
27 27 public BaseOutput<Page<ShopBuyerDetailOutput>> queryShopAllBuyerList(ShopBuyerDetail shopBuyerDetail) {
28   - return this.httpPost("/api/shopBuyer/queryShopAllBuyerList", shopBuyerDetail, new TypeReference<BaseOutput<Page<ShopBuyerDetailOutput>>>(){});
  28 + return this.httpPost("/api/shopBuyer/queryShopAllBuyerList", shopBuyerDetail, new TypeReference<BaseOutput<Page<ShopBuyerDetailOutput>>>(){},true);
29 29 }
30 30  
31 31 /**
... ...
myapp-sdk/src/main/java/com/b2c/myapp/sdk/service/impl/ShopInfoServiceImpl.java
... ... @@ -35,7 +35,7 @@ public class ShopInfoServiceImpl extends BaseServiceImpl implements ShopInfoServ
35 35  
36 36 @Override
37 37 public BaseOutput<ShopOutput> getShopInfo(ShopListInput shopListInput) {
38   - return this.httpPost("/api/shop/getShopInfo", shopListInput, new TypeReference<BaseOutput<ShopOutput>>(){});
  38 + return this.httpPost("/api/shop/getShopInfo", shopListInput, new TypeReference<BaseOutput<ShopOutput>>(){},true);
39 39 }
40 40  
41 41 @Override
... ...
myapp-web/src/main/java/com/b2c/myapp/api/BuyerInfoApi.java
... ... @@ -128,8 +128,9 @@ public class BuyerInfoApi extends BaseRestFulApi {
128 128  
129 129 @ApiOperation(value ="买家条件查询", notes = "买家条件查询")
130 130 @RequestMapping(value = "/listByCondition", method = RequestMethod.POST)
  131 + @ApiImplicitParam(paramType = "body",name = "buyerInfoListInput",dataType = "BuyerInfoListInput", required = true, value = "查询条件")
131 132 @ResponseBody
132   - public BaseOutput<List<BuyerInfoOutput>> listByCondition(@ModelAttribute BuyerInfoListInput buyerInfoListInput){
  133 + public BaseOutput<List<BuyerInfoOutput>> listByCondition(@RequestBody BuyerInfoListInput buyerInfoListInput){
133 134 BaseOutput<List<BuyerInfoOutput>> output = BaseOutput.success();
134 135 try {
135 136 List<BuyerInfo> buyerInfos = buyerInfoService.list(buyerInfoListInput);
... ...
myapp-web/src/main/java/com/b2c/myapp/api/FundTradeApi.java
... ... @@ -11,6 +11,7 @@ import com.b2c.myapp.service.FundTradeService;
11 11 import com.b2c.myapp.utils.BeanConver;
12 12 import com.b2c.myapp.utils.BeanValidator;
13 13 import io.swagger.annotations.Api;
  14 +import io.swagger.annotations.ApiImplicitParam;
14 15 import io.swagger.annotations.ApiOperation;
15 16 import org.slf4j.Logger;
16 17 import org.slf4j.LoggerFactory;
... ... @@ -49,9 +50,10 @@ public class FundTradeApi extends BaseRestFulApi {
49 50 }
50 51  
51 52 @ApiOperation(value ="查询储值交易明细", notes = "多条件查询FundTrade")
  53 + @ApiImplicitParam(paramType = "body",name = "input",dataType = "FundTradeListInput", required = true, value = "查询条件")
52 54 @RequestMapping(value="/queryFundTrade", method = RequestMethod.POST)
53 55 @ResponseBody
54   - public BaseOutput<Page<FundTradeOutput>> queryFundTrade(@ModelAttribute FundTradeListInput input) {
  56 + public BaseOutput<Page<FundTradeOutput>> queryFundTrade(@RequestBody FundTradeListInput input) {
55 57 BaseOutput<Page<FundTradeOutput>> output = BaseOutput.success();
56 58 try {
57 59 Page<FundTrade> page = fundTradeService.listPage(input);
... ...
myapp-web/src/main/java/com/b2c/myapp/api/SellerInfoApi.java
... ... @@ -128,8 +128,9 @@ public class SellerInfoApi extends BaseRestFulApi {
128 128  
129 129 @ApiOperation(value ="卖家条件查询", notes = "卖家条件查询")
130 130 @RequestMapping(value = "/listByCondition", method = RequestMethod.POST)
  131 + @ApiImplicitParam(paramType = "body",name = "sellerInfoListInput",dataType = "SellerInfoListInput", required = true, value = "查询条件")
131 132 @ResponseBody
132   - public BaseOutput<List<SellerInfoOutput>> listByCondition(@ModelAttribute SellerInfoListInput sellerInfoListInput){
  133 + public BaseOutput<List<SellerInfoOutput>> listByCondition(@RequestBody SellerInfoListInput sellerInfoListInput){
133 134 BaseOutput<List<SellerInfoOutput>> output = BaseOutput.success();
134 135 try {
135 136 List<SellerInfo> sellerInfos = sellerInfoService.list(sellerInfoListInput);
... ...
myapp-web/src/main/java/com/b2c/myapp/api/ShopApi.java
... ... @@ -63,9 +63,10 @@ public class ShopApi extends BaseRestFulApi {
63 63 }
64 64  
65 65 @ApiOperation(value ="查询店铺信息", notes = "多条件查询Shop信息")
  66 + @ApiImplicitParam(paramType = "body",name = "input",dataType = "ShopListInput", required = true, value = "查询条件")
66 67 @RequestMapping(value="/getShopInfo", method = RequestMethod.POST)
67 68 @ResponseBody
68   - public BaseOutput<Page<ShopOutput>> getShopInfo(@ModelAttribute ShopListInput input) {
  69 + public BaseOutput<Page<ShopOutput>> getShopInfo(@RequestBody ShopListInput input) {
69 70 BaseOutput<Page<ShopOutput>> output = BaseOutput.success();
70 71 try {
71 72 BeanValidator.validator(input);
... ...
myapp-web/src/main/java/com/b2c/myapp/api/ShopBuyerApi.java
... ... @@ -33,10 +33,11 @@ public class ShopBuyerApi extends BaseRestFulApi {
33 33 @Autowired
34 34 private ShopBuyerService shopBuyerService;
35 35  
36   - @ApiOperation(value ="查询店铺买家详情列表", notes = "多条件查询ShopBuyer")
  36 + @ApiOperation(value ="查询店铺买家列表", notes = "多条件查询ShopBuyer")
  37 + @ApiImplicitParam(paramType = "body",name = "input",dataType = "ShopBuyerDetail", required = true, value = "店铺买家列表条件查询")
37 38 @RequestMapping(value="/queryShopAllBuyerDetail", method = RequestMethod.POST)
38 39 @ResponseBody
39   - public BaseOutput<Page<ShopBuyerDetailOutput>> queryShopAllBuyerList(@ModelAttribute ShopBuyerDetail input) {
  40 + public BaseOutput<Page<ShopBuyerDetailOutput>> queryShopAllBuyerList(@RequestBody ShopBuyerDetail input) {
40 41 BaseOutput<Page<ShopBuyerDetailOutput> > output = BaseOutput.success();
41 42 try {
42 43 BeanValidator.validator(input);
... ...