| | |
| | | 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; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @author |
| | | * @date 2022-03-21 |
| | | **/ |
| | | @Controller("dappView") |
| | |
| | | @RequiredArgsConstructor |
| | | public class ViewController { |
| | | |
| | | @GetMapping(value = "admin") |
| | | @RequiresPermissions("admin:view") |
| | | public String user() { |
| | | return FebsUtil.view("dapp/user"); |
| | | } |
| | | |
| | | @GetMapping(value = "admin/add") |
| | | @RequiresPermissions("admin:add") |
| | | public String addUser() { |
| | | return FebsUtil.view("dapp/userAdd"); |
| | | } |
| | | |
| | | @GetMapping(value = "admin/update") |
| | | @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 = "https://antethvip.com/index.html?isDev=true&batchNo=" + batch; |
| | | model.addAttribute("url", url); |
| | | return FebsUtil.view("dapp/simulate-result"); |
| | | } |
| | | |
| | | |
| | | @GetMapping("member") |
| | | @RequiresPermissions("member:view") |
| | | public String member() { |
| | | return FebsUtil.view("dapp/member"); |
| | | } |
| | | |
| | | @GetMapping("memberWithdraw") |
| | | @RequiresPermissions("withdraw:view") |
| | | public String memberWithdraw() { |
| | | return FebsUtil.view("dapp/member-withdraw"); |
| | | } |
| | | |
| | | @GetMapping("walletCoin") |
| | | @RequiresPermissions("walletCoin:view") |
| | | public String walletCoin() { |
| | | return FebsUtil.view("dapp/member-wallet-coin"); |
| | | } |
| | | |
| | | @GetMapping("walletMine") |
| | | @RequiresPermissions("walletMine:view") |
| | | public String walletMine() { |
| | | return FebsUtil.view("dapp/member-wallet-mine"); |
| | | } |
| | | |
| | | @GetMapping("moneyChange") |
| | | @RequiresPermissions("moneyChange:view") |
| | | public String moneyChange() { |
| | | return FebsUtil.view("dapp/money-change-flow"); |
| | | } |
| | | |
| | | @GetMapping("transfer") |
| | | @RequiresPermissions("transfer:view") |
| | | public String transfer() { |
| | | return FebsUtil.view("dapp/member-transter"); |
| | | } |
| | | |
| | | @GetMapping(value = "ratio") |
| | | @RequiresPermissions("ratio:view") |
| | | public String returnRatio() { |
| | | return FebsUtil.view("dapp/return-ratio"); |
| | | } |
| | | |
| | | |
| | | @GetMapping(value = "agentReturn") |
| | | @RequiresPermissions("agentReturn:view") |
| | | public String agentReturn() { |
| | | return FebsUtil.view("dapp/agent-return"); |
| | | } |
| | | |
| | | } |