| | |
| | | package com.fzzy.igds.dzhwk.controller; |
| | | |
| | | import com.fzzy.igds.dzhwk.data.DzhwkConfigData; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | public class WebController { |
| | | |
| | | private static final String prefix = "dzhwk/"; |
| | | |
| | | @Resource |
| | | private DzhwkConfigData dzhwkConfigData; |
| | | |
| | | /** |
| | | * 锁屏 |
| | |
| | | @RequestMapping("/index") |
| | | public String index(ModelMap view) { |
| | | view.put("flag", "index"); |
| | | |
| | | String videoUrl = dzhwkConfigData.getDzhwkVideo().replace(dzhwkConfigData.getProfile(),"/profile/"); |
| | | view.put("videoUrl", videoUrl); |
| | | view.put("imgUrl", "/profile/IMG/5303/SECURITY/aerial-5303_001-0.png"); |
| | | return prefix + "index"; |
| | | } |
| | | |