|
@@ -215,8 +215,8 @@ public class NewsController extends BaseController {
|
|
return succeed(sysNewsInformationService.updateStatus(id));
|
|
return succeed(sysNewsInformationService.updateStatus(id));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation("老师手机app首页按钮")
|
|
|
|
- @GetMapping(value = "/app/home/teacher")
|
|
|
|
|
|
+ // @ApiOperation("老师手机app首页按钮")
|
|
|
|
+ // @GetMapping(value = "/app/home/teacher")
|
|
public HttpResponseResult<List<SysNewsInformationDto>> teacherMenu() {
|
|
public HttpResponseResult<List<SysNewsInformationDto>> teacherMenu() {
|
|
|
|
|
|
NewsInformationQueryInfo queryInfo = new NewsInformationQueryInfo();
|
|
NewsInformationQueryInfo queryInfo = new NewsInformationQueryInfo();
|
|
@@ -232,7 +232,7 @@ public class NewsController extends BaseController {
|
|
return succeed(rows);
|
|
return succeed(rows);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation("学生手机app首页banner、按钮、资讯")
|
|
|
|
|
|
+ @ApiOperation("学生/老师端 手机app首页banner、按钮、资讯")
|
|
@PostMapping(value = "/app/home")
|
|
@PostMapping(value = "/app/home")
|
|
public HttpResponseResult<AppHomeDto> appHome(@RequestBody AppParam param) {
|
|
public HttpResponseResult<AppHomeDto> appHome(@RequestBody AppParam param) {
|
|
|
|
|
|
@@ -247,7 +247,11 @@ public class NewsController extends BaseController {
|
|
|
|
|
|
AppHomeDto appHomeDto = new AppHomeDto();
|
|
AppHomeDto appHomeDto = new AppHomeDto();
|
|
queryInfo.setStatus(NewsStatusEnum.SHOW.getCode().toString());
|
|
queryInfo.setStatus(NewsStatusEnum.SHOW.getCode().toString());
|
|
- queryInfo.setPlatformType("STUDENT");
|
|
|
|
|
|
+ if (StringUtil.isEmpty(param.getClientType())) {
|
|
|
|
+ queryInfo.setPlatformType("STUDENT");
|
|
|
|
+ } else {
|
|
|
|
+ queryInfo.setPlatformType(param.getClientType());
|
|
|
|
+ }
|
|
// 1热门资讯
|
|
// 1热门资讯
|
|
queryInfo.setType(1);
|
|
queryInfo.setType(1);
|
|
queryInfo.setPage(1);
|
|
queryInfo.setPage(1);
|