| | |
| | | package com.xcong.excoin.modules.member.controller; |
| | | |
| | | import com.xcong.excoin.common.controller.BaseController; |
| | | import com.xcong.excoin.common.entity.FebsConstant; |
| | | import com.xcong.excoin.common.utils.FebsUtil; |
| | | import com.xcong.excoin.modules.member.entity.MemberEntity; |
| | | import com.xcong.excoin.modules.member.service.IMemberService; |
| | | import com.xcong.excoin.modules.member.vo.MemberAuthenticationVo; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | **/ |
| | | @Controller("memberView") |
| | | @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/member") |
| | | public class ViewController { |
| | | |
| | | @RequiredArgsConstructor |
| | | public class ViewController extends BaseController{ |
| | | |
| | | private final IMemberService memberService; |
| | | |
| | | @GetMapping("addCoin/{id}") |
| | | @RequiresPermissions("addCoin:update") |
| | | public String addCoin(@PathVariable long id, Model model) { |
| | | MemberEntity data = memberService.selectMemberByid(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/member/addCoin"); |
| | | } |
| | | |
| | | /** |
| | | * 代理关系 |
| | | * @return |
| | | */ |
| | | @GetMapping("agentInfo") |
| | | @RequiresPermissions("agentInfo:view") |
| | | public String agentInfo() { |
| | | return FebsUtil.view("modules/member/agentInfo"); |
| | | } |
| | | |
| | | /** |
| | | * 个人信息 |
| | | * @return |
| | | */ |
| | | @GetMapping("memberDataInfoList") |
| | | @RequiresPermissions("memberDataInfoList:view") |
| | | public String memberDataInfoList() { |
| | | return FebsUtil.view("modules/member/memberDataInfoList"); |
| | | } |
| | | |
| | | /** |
| | | * 基础数据 |
| | | * @return |
| | | */ |
| | | @GetMapping("memberDataInfo") |
| | | @RequiresPermissions("memberDataInfo:view") |
| | | public String memberDataInfo() { |
| | | return FebsUtil.view("modules/member/memberDataInfo"); |
| | | } |
| | | /** |
| | | * 基础数据---查询 |
| | | */ |
| | | @GetMapping("memberDataInfoLists/{id}") |
| | | @RequiresPermissions("memberDataInfoLists:view") |
| | | public String memberDataInfoList(@PathVariable long id, Model model) { |
| | | MemberEntity memberEntity = memberService.selectMemberByid(id); |
| | | model.addAttribute("member", memberEntity); |
| | | return FebsUtil.view("modules/member/memberDataInfoList"); |
| | | } |
| | | |
| | | @GetMapping("member") |
| | | @RequiresPermissions("member:view") |
| | | public String member() { |
| | | return FebsUtil.view("modules/member/member"); |
| | | } |
| | | |
| | | /** |
| | | @GetMapping("memberDetail/{id}") |
| | | @RequiresPermissions("member:update") |
| | | public String memberDetail(@PathVariable long id, Model model) { |
| | | MemberAuthenticationVo data = memberService.selectMemberAuthenticationById(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/member/memberDetail"); |
| | | } |
| | | |
| | | /** |
| | | * 会员充值USDT记录 |
| | | * @return |
| | | */ |
| | |
| | | return FebsUtil.view("modules/member/chargeUsdt"); |
| | | } |
| | | |
| | | /** |
| | | * 会员USDT提现记录 |
| | | * @return |
| | | */ |
| | | @GetMapping("extractUsdt") |
| | | @RequiresPermissions("extractUsdt:view") |
| | | public String extractUsdt() { |
| | | return FebsUtil.view("modules/member/extractUsdt"); |
| | | } |
| | | |
| | | /** |
| | | * 充币记录 |
| | | * @return |
| | | */ |
| | | @GetMapping("applyCoin") |
| | | @RequiresPermissions("applyCoins:view") |
| | | public String applyCoin() { |
| | | return FebsUtil.view("modules/member/applyCoin"); |
| | | } |
| | | |
| | | /** |
| | | * 提币记录 |
| | | * @return |
| | | */ |
| | | @GetMapping("withdrawCoin") |
| | | @RequiresPermissions("withdrawCoins:view") |
| | | public String withdrawCoin() { |
| | | return FebsUtil.view("modules/member/withdrawCoin"); |
| | | } |
| | | |
| | | /** |
| | | * 提币记录 |
| | | * @return |
| | | */ |
| | | @GetMapping("withdrawCoinTest") |
| | | @RequiresPermissions("withdrawCoinTest:view") |
| | | public String withdrawCoinTest() { |
| | | return FebsUtil.view("modules/member/withdrawCoinTest"); |
| | | } |
| | | |
| | | @GetMapping("memberTest") |
| | | @RequiresPermissions("memberTest:view") |
| | | public String memberTest() { |
| | | return FebsUtil.view("modules/member/memberTest"); |
| | | } |
| | | |
| | | |
| | | } |