|
@@ -86,6 +86,18 @@ public class SocialController {
|
86
|
86
|
return responseBean;
|
87
|
87
|
}
|
88
|
88
|
|
|
89
|
+ @ApiOperation(value = "获取活动轮播图", notes = "获取活动轮播图")
|
|
90
|
+ @ApiImplicitParams({
|
|
91
|
+ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区id")
|
|
92
|
+ })
|
|
93
|
+ @RequestMapping(value = "/activity/Img/{communityId}", method = RequestMethod.GET)
|
|
94
|
+ public ResponseBean getActivity(@PathVariable(value = "communityId") Integer communityId) {
|
|
95
|
+ ResponseBean responseBean = new ResponseBean();
|
|
96
|
+ List<TpActivity> agreement = socialServiceI.getActivity(communityId);
|
|
97
|
+ responseBean.addSuccess(agreement);
|
|
98
|
+ return responseBean;
|
|
99
|
+ }
|
|
100
|
+
|
89
|
101
|
|
90
|
102
|
@ApiOperation(value = "按小区获取分页活动列表", notes = "按小区获取分页活动列表,公告标题模糊查询")
|
91
|
103
|
@ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
|
|
@@ -120,7 +132,7 @@ public class SocialController {
|
120
|
132
|
@ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
121
|
133
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "活动帖子id"),
|
122
|
134
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")})
|
123
|
|
- @RequestMapping(value = "/secondHand/{communityId}", method = RequestMethod.GET)
|
|
135
|
+ @RequestMapping(value = "/getTransaction/{communityId}", method = RequestMethod.GET)
|
124
|
136
|
public ResponseBean findUsedDetails(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session) {
|
125
|
137
|
ResponseBean responseBean = new ResponseBean();
|
126
|
138
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
|
@@ -147,23 +159,23 @@ public class SocialController {
|
147
|
159
|
|
148
|
160
|
@ApiOperation(value = "添加二手租赁帖子", notes = "添加二手租赁帖子")
|
149
|
161
|
@ApiImplicitParams({
|
150
|
|
- @ApiImplicitParam(paramType = "query", dataType = "String", name = "transactionTitle", value = "交易标题"),
|
151
|
|
- @ApiImplicitParam(paramType = "query", dataType = "String", name = "transactionContent", value = "交易内容"),
|
152
|
|
- @ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "0:二手 1:求购 2:租赁"),
|
|
162
|
+ @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
|
|
163
|
+ "title:小区标题,content:小区类容, type"),
|
153
|
164
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
|
154
|
165
|
})
|
155
|
166
|
@RequestMapping(value = "/addTransaction", method = RequestMethod.POST)
|
156
|
167
|
@ResponseBody
|
157
|
|
- public ResponseBean addTransaction(TpTransaction tpTransaction, HttpSession session) {
|
|
168
|
+ public ResponseBean addTransaction(@RequestBody String paramets, HttpSession session) {
|
158
|
169
|
ResponseBean responseBean = new ResponseBean();
|
159
|
170
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
160
|
171
|
Integer userId = userElement.getId();
|
161
|
|
- ResponseBean response = socialServiceI.addAllTransaction(userId, tpTransaction);
|
|
172
|
+ ResponseBean response = socialServiceI.addAllTransaction(userId, paramets);
|
162
|
173
|
return response;
|
163
|
174
|
}
|
164
|
175
|
|
165
|
176
|
@ApiOperation(value = "获取我发布所有二手租赁帖子", notes = "获取我发布所有二手租赁帖子")
|
166
|
177
|
@ApiImplicitParams({
|
|
178
|
+ @ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "帖子类型"),
|
167
|
179
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
|
168
|
180
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
|
169
|
181
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
|
|
@@ -181,20 +193,16 @@ public class SocialController {
|
181
|
193
|
|
182
|
194
|
@ApiOperation(value = "修改二手租赁帖子", notes = "修改二手租赁帖子")
|
183
|
195
|
@ApiImplicitParams({
|
184
|
|
- @ApiImplicitParam(paramType = "query", dataType = "String", name = "transactionTitle", value = "小区标题"),
|
185
|
|
- @ApiImplicitParam(paramType = "body", dataType = "String", name = "transactionContent", value = "交易内容"),
|
186
|
|
- @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "Type", value = "0 代表,1求购,2租赁"),
|
|
196
|
+ @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
|
|
197
|
+ "id:小区id,title:小区标题,content:小区类容"),
|
187
|
198
|
@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
|
188
|
199
|
})
|
189
|
200
|
@RequestMapping(value = "/updateTransaction/{Id}", method = RequestMethod.PUT)
|
190
|
|
- public ResponseBean ubdateTransaction(HttpSession session, @PathVariable(value = "Id") Integer Id,
|
191
|
|
- @RequestParam(value = "transactionTitle") String transactionTitle,
|
192
|
|
- @RequestParam(value = "transactionContent") String transactionContent,
|
193
|
|
- @RequestParam(value = "Type") Integer Type) {
|
|
201
|
+ public ResponseBean ubdateTransaction(HttpSession session, @RequestBody String paramets) {
|
194
|
202
|
ResponseBean responseBean = new ResponseBean();
|
195
|
203
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
196
|
204
|
Integer userId = userElement.getId();
|
197
|
|
- ResponseBean response = socialServiceI.updateTransaction(Id, transactionTitle, transactionContent, userId, Type);
|
|
205
|
+ ResponseBean response = socialServiceI.updateTransaction(paramets, userId);
|
198
|
206
|
return response;
|
199
|
207
|
}
|
200
|
208
|
|