| | |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.common.utils.RedisUtils; |
| | | import cc.mrbird.febs.dapp.entity.AppVersion; |
| | | import cc.mrbird.febs.dapp.entity.DappMemberEntity; |
| | | import cc.mrbird.febs.dapp.entity.DappMessageEntity; |
| | | import cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrder; |
| | | import cc.mrbird.febs.dapp.mapper.DappMemberDao; |
| | | import cc.mrbird.febs.dapp.mapper.DappMessageDao; |
| | | import cc.mrbird.febs.dapp.service.DappMemberService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | |
| | | private final RedisUtils redisUtils; |
| | | |
| | | private final DappMemberService dappMemberService; |
| | | private final DappMemberDao dappMemberDao; |
| | | private final DappMessageDao dappMessageDao; |
| | | |
| | | @GetMapping(value = "admin") |
| | | @RequiresPermissions("admin:view") |
| | |
| | | return FebsUtil.view("dapp/member-charge"); |
| | | } |
| | | |
| | | /** |
| | | * 会员列表-拨付 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("payUsdt/{id}") |
| | | @RequiresPermissions("payUsdt:update") |
| | | public String payUsdt(@PathVariable long id, Model model) { |
| | | DappMemberEntity data = dappMemberDao.selectById(id); |
| | | model.addAttribute("dappMember", data); |
| | | return FebsUtil.view("dapp/payUsdt"); |
| | | } |
| | | |
| | | /** |
| | | * 会员列表-设置会员等级 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("identitySet/{id}") |
| | | @RequiresPermissions("identitySet:update") |
| | | public String identitySet(@PathVariable long id, Model model) { |
| | | DappMemberEntity data = dappMemberDao.selectById(id); |
| | | model.addAttribute("dappMember", data); |
| | | return FebsUtil.view("dapp/identitySet"); |
| | | } |
| | | |
| | | /** |
| | | * 客服消息-列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("messageList") |
| | | @RequiresPermissions("messageList:view") |
| | | public String messageList() { |
| | | return FebsUtil.view("dapp/message-list"); |
| | | } |
| | | |
| | | /** |
| | | * 客服消息-列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("sendBackMessage") |
| | | @RequiresPermissions("user:sendBack") |
| | | public String sendBackMessage() { |
| | | return FebsUtil.view("dapp/send-Back-Message"); |
| | | } |
| | | |
| | | /** |
| | | * 客服消息-回复 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("sendBackMessage/{id}") |
| | | @RequiresPermissions("user:sendBack") |
| | | public String sendBackMessage(@PathVariable long id, Model model) { |
| | | DappMessageEntity data = dappMessageDao.selectById(id); |
| | | model.addAttribute("dappMessage", data); |
| | | return FebsUtil.view("dapp/send-Back-Message"); |
| | | } |
| | | |
| | | |
| | | public static long showMessageInfoFlow; |
| | | /** |
| | | * 客服消息-记录 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("/showMessage/{id}") |
| | | @RequiresPermissions("showMessage:update") |
| | | public String amountFlow(@PathVariable long id, Model model) { |
| | | showMessageInfoFlow = id; |
| | | DappMessageEntity data = dappMessageDao.selectById(id); |
| | | model.addAttribute("dappMessage", data); |
| | | return FebsUtil.view("dapp/show-message-list"); |
| | | } |
| | | |
| | | /** |
| | | * 每日资产总览-列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("moneyTotal") |
| | | @RequiresPermissions("moneyTotal:view") |
| | | public String moneyTotal() { |
| | | return FebsUtil.view("dapp/money-total"); |
| | | } |
| | | |
| | | /** |
| | | * 每日资产总览-充值详情 |
| | | * @param createTime |
| | | * @param model |
| | | * @return |
| | | */ |
| | | public static String createTimeStr; |
| | | @GetMapping("/amountFlow/{createTime}") |
| | | @RequiresPermissions("amountFlow:update") |
| | | public String amountFlow(@PathVariable String createTime, Model model) { |
| | | createTimeStr = createTime; |
| | | return FebsUtil.view("dapp/money-total-flow"); |
| | | } |
| | | |
| | | /** |
| | | * 每日资产总览-提现详情 |
| | | * @param createTime |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("/amountOutFlow/{createTime}") |
| | | @RequiresPermissions("amountOutFlow:update") |
| | | public String amountOutFlow(@PathVariable String createTime, Model model) { |
| | | createTimeStr = createTime; |
| | | return FebsUtil.view("dapp/money-total-flow-out"); |
| | | } |
| | | |
| | | public static long idMemberTeamInfo; |
| | | /** |
| | | * 用户列表-团队详情 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("/teamInfo/{id}") |
| | | @RequiresPermissions("teamInfo:update") |
| | | public String teamInfo(@PathVariable long id, Model model) { |
| | | idMemberTeamInfo = id; |
| | | DappMemberEntity data = dappMemberDao.selectById(id); |
| | | model.addAttribute("teamInfo", data); |
| | | return FebsUtil.view("dapp/teamInfo"); |
| | | } |
| | | |
| | | /** |
| | | * 一键操作 |
| | | * @return |
| | | */ |
| | | @GetMapping("reloadSystem") |
| | | @RequiresPermissions("reloadSystem:update") |
| | | public String reloadSystem() { |
| | | return FebsUtil.view("dapp/system-reload"); |
| | | } |
| | | |
| | | } |