| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | /** |
| | |
| | | @RequiresPermissions("admin:update") |
| | | public String updateUser() { |
| | | return FebsUtil.view("dapp/userUpdate"); |
| | | } |
| | | |
| | | @GetMapping(value = "admin/simulate") |
| | | @RequiresPermissions("admin:simulate") |
| | | public String simulate() { |
| | | return FebsUtil.view("dapp/simulate-data"); |
| | | } |
| | | |
| | | @GetMapping(value = "admin/simulateResult/{batch}") |
| | | public String simulateResult(@PathVariable("batch") String batch, Model model) { |
| | | String url = "http://120.27.238.55:8000/dapp/index.html?isDev=true&batchNo=" + batch; |
| | | model.addAttribute("url", url); |
| | | return FebsUtil.view("dapp/simulate-result"); |
| | | } |
| | | |
| | | |
| | |
| | | public String returnRatio() { |
| | | return FebsUtil.view("dapp/return-ratio"); |
| | | } |
| | | |
| | | } |