|
@@ -70,6 +70,9 @@ public class OpenClient extends BaseController {
|
|
|
@Autowired
|
|
|
private LiveRoomService liveRoomService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AppVersionInfoService appVersionInfoService;
|
|
|
+
|
|
|
@ApiOperation(value = "查询老师头像昵称信息")
|
|
|
@GetMapping("/getTeacher")
|
|
|
public HttpResponseResult<TeacherVo> getTeacher(@ApiParam(value = "老师ID", required = true) @RequestParam("userId") Long userId) {
|
|
@@ -191,4 +194,14 @@ public class OpenClient extends BaseController {
|
|
|
|
|
|
return succeed(LiveRoomVO.from(roomWrapper.jsonString()));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/appVersion")
|
|
|
+ @ApiOperation(value = "查询app是否为审核版本")
|
|
|
+ public HttpResponseResult<CheckVo> appVersion(@RequestBody Map<String,String> obj) {
|
|
|
+ YesOrNoEnum appAuditVersion = appVersionInfoService.getAppAuditVersion(obj.get("platform"), obj.get("version"));
|
|
|
+ CheckVo checkVo = new CheckVo();
|
|
|
+ checkVo.setCheck(appAuditVersion);
|
|
|
+ return succeed(checkVo);
|
|
|
+ }
|
|
|
}
|