| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | |
| | | private WebManager webManager; |
| | | |
| | | /** |
| | | * 锁屏 |
| | | * @param view |
| | | * @return |
| | | */ |
| | | @RequestMapping("/lock") |
| | | public String lock(@RequestParam(value = "flag", required = true) String flag, ModelMap view) { |
| | | view.put("flag", flag); |
| | | return prefix + "lock"; |
| | | } |
| | | |
| | | /** |
| | | * 首页 |
| | | * @param gid 廒间id |
| | | * @param view |
| | | * @return |
| | | */ |
| | | @RequestMapping("/index") |
| | | public String index(ModelMap view) { |
| | | view.put("flag", "index"); |
| | | public String index(@RequestParam(value = "gid", required = false) String gid, ModelMap view) { |
| | | |
| | | String videoUrl = dzhwkConfigData.getDzhwkVideo().replace(dzhwkConfigData.getProfile(),"/profile/"); |
| | | view.put("videoUrl", videoUrl); |
| | |
| | | return prefix + "sys"; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 锁屏 |
| | | * @param view |
| | | * @return |
| | | */ |
| | | @RequestMapping("/lock") |
| | | public String lock(@RequestParam(value = "flag", required = true) String flag, ModelMap view) { |
| | | view.put("flag", flag); |
| | | return prefix + "lock"; |
| | | } |
| | | |
| | | /** |
| | | * 视频预览页面 |