|
@@ -76,15 +76,21 @@ public class BannerController {
|
76
|
76
|
|
77
|
77
|
@ApiOperation(value = "根据条件查询Banner",notes = "根据条件查询Banner")
|
78
|
78
|
@ApiImplicitParams({
|
79
|
|
- @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "bannerTitle(标题)," +
|
80
|
|
- ",bannerPosition(Banner位),bannerDescription(跳转概述)"),
|
|
79
|
+ @ApiImplicitParam(paramType = "query",dataType = "String",name = "bannerTitle",value = "bannerTitle(标题)"),
|
|
80
|
+ @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "bannerPosition",value = "bannerPosition(Banner位)"),
|
|
81
|
+ @ApiImplicitParam(paramType = "query",dataType = "String",name = "bannerDescription",value = "bannerDescription(跳转概述)"),
|
81
|
82
|
})
|
82
|
83
|
@RequestMapping(value = "/banner/list",method = RequestMethod.GET)
|
83
|
|
- public ResponseBean getBanner(@RequestBody String parameter){
|
|
84
|
+ public ResponseBean getBanner(@RequestParam(value = "bannerTitle") String bannerTitle,
|
|
85
|
+ @RequestParam(value = "bannerPosition") Integer bannerPosition,
|
|
86
|
+ @RequestParam(value = "bannerDescription") String bannerDescription){
|
84
|
87
|
|
85
|
|
- ToBanner banner = JSONObject.parseObject(parameter,ToBanner.class);
|
86
|
88
|
|
87
|
89
|
ResponseBean response = new ResponseBean();
|
|
90
|
+ ToBanner banner = new ToBanner();
|
|
91
|
+ banner.setBannerTitle(bannerTitle);
|
|
92
|
+ banner.setBannerPosition(bannerPosition);
|
|
93
|
+ banner.setBannerDescription(bannerDescription);
|
88
|
94
|
response = iToBannerService.getBanner(banner);
|
89
|
95
|
return response;
|
90
|
96
|
}
|