| | |
| | | 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.MemberCoinChargeEntity; |
| | | import com.xcong.excoin.modules.member.service.IMemberService; |
| | | import com.xcong.excoin.modules.member.vo.MemberAuthenticationVo; |
| | | |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | | |
| | | 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 |
| | | * @date 2020-06-10 |
| | | **/ |
| | | @Controller("memberView") |
| | | @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/member") |
| | | @RequiredArgsConstructor |
| | | public class ViewController extends BaseController{ |
| | | |
| | | private final IMemberService memberService; |
| | | |
| | | @GetMapping("memberDataInfo/{id}") |
| | | @RequiresPermissions("memberDataInfo:view") |
| | | public String memberDataInfo(@PathVariable long id, Model model) { |
| | | List<MemberCoinChargeEntity> data = memberService.selectMemberDataInfoById(id); |
| | | model.addAttribute("memberCoinChargeEntity", data); |
| | | return FebsUtil.view("modules/member/memberDataInfo"); |
| | | } |
| | | |
| | | @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 |
| | | */ |
| | | @GetMapping("chargeUsdt") |
| | | @RequiresPermissions("chargeUsdt:view") |
| | | public String chargeUsdt() { |
| | | 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"); |
| | | } |
| | | |
| | | |
| | | } |
| | | 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 com.xcong.excoin.modules.member.vo.MemberInfoDetailVo;
|
| | |
|
| | | 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
|
| | | * @date 2020-06-10
|
| | | **/
|
| | | @Controller("memberView")
|
| | | @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/member")
|
| | | @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");
|
| | | }
|
| | | |
| | | /**
|
| | | * 平台全部信息
|
| | | * @return
|
| | | */
|
| | | @GetMapping("memberDataInfoAll")
|
| | | @RequiresPermissions("memberDataInfoAll:view")
|
| | | public String memberDataInfoAll() {
|
| | | return FebsUtil.view("modules/member/memberDataInfoAll");
|
| | | }
|
| | | /**
|
| | | * 平台详细信息---列表alone
|
| | | * @return
|
| | | */
|
| | | @GetMapping("memberDataInfoAlone")
|
| | | @RequiresPermissions("memberDataInfoAlone:view")
|
| | | public String memberDataInfoAlone() {
|
| | | return FebsUtil.view("modules/member/memberDataInfoAlone");
|
| | | }
|
| | | /**
|
| | | * 平台详细信息---列表Test
|
| | | * @return
|
| | | */
|
| | | @GetMapping("memberDataInfoAloneTest")
|
| | | @RequiresPermissions("memberDataInfoAloneTest:view")
|
| | | public String memberDataInfoAloneTest() {
|
| | | return FebsUtil.view("modules/member/memberDataInfoAloneTest");
|
| | | }
|
| | | /**
|
| | | * 平台全部信息---列表alone
|
| | | * @return
|
| | | */
|
| | | @GetMapping("memberDataInfoAllAlone")
|
| | | @RequiresPermissions("memberDataInfoAllAlone:view")
|
| | | public String memberDataInfoAllAlone() {
|
| | | return FebsUtil.view("modules/member/memberDataInfoAllAlone");
|
| | | }
|
| | | /**
|
| | | * 基础数据---查询
|
| | | */
|
| | | @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("memberAlone")
|
| | | @RequiresPermissions("memberAlone:view")
|
| | | public String memberAlone() {
|
| | | return FebsUtil.view("modules/member/memberAlone");
|
| | | }
|
| | | |
| | | @GetMapping("memberAloneTest")
|
| | | @RequiresPermissions("memberAloneTest:view")
|
| | | public String memberAloneTest() {
|
| | | return FebsUtil.view("modules/member/memberAloneTest");
|
| | | }
|
| | | |
| | | @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");
|
| | | }
|
| | | /**
|
| | | * 提币审核管理---个人详情
|
| | | */
|
| | | @GetMapping("memberInfoDetail/{id}")
|
| | | @RequiresPermissions("memberInfoDetail:update")
|
| | | public String memberInfoDetail(@PathVariable long id, Model model) {
|
| | | MemberInfoDetailVo data = memberService.selectMemberInfoDetailById(id);
|
| | | model.addAttribute("member", data);
|
| | | return FebsUtil.view("modules/member/memberInfoDetail");
|
| | | }
|
| | |
|
| | | /**
|
| | | * 会员充值USDT记录
|
| | | * @return
|
| | | */
|
| | | @GetMapping("chargeUsdt")
|
| | | @RequiresPermissions("chargeUsdt:view")
|
| | | public String chargeUsdt() {
|
| | | 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");
|
| | | }
|
| | | |
| | | /**
|
| | | * 充币记录---alone
|
| | | * @return
|
| | | */
|
| | | @GetMapping("applyCoinAloneTest")
|
| | | @RequiresPermissions("applyCoinAloneTest:view")
|
| | | public String applyCoinAloneTest() {
|
| | | return FebsUtil.view("modules/member/applyCoinAloneTest");
|
| | | }
|
| | | /**
|
| | | * 充币记录---alone
|
| | | * @return
|
| | | */
|
| | | @GetMapping("applyCoinAlone")
|
| | | @RequiresPermissions("applyCoinAlone:view")
|
| | | public String applyCoinAlone() {
|
| | | return FebsUtil.view("modules/member/applyCoinAlone");
|
| | | }
|
| | | |
| | | /**
|
| | | * 提币记录
|
| | | * @return
|
| | | */
|
| | | @GetMapping("withdrawCoin")
|
| | | @RequiresPermissions("withdrawCoins:view")
|
| | | public String withdrawCoin() {
|
| | | return FebsUtil.view("modules/member/withdrawCoin");
|
| | | }
|
| | | |
| | | /**
|
| | | * 提币记录---alone
|
| | | * @return
|
| | | */
|
| | | @GetMapping("withdrawCoinAlone")
|
| | | @RequiresPermissions("withdrawCoinAlone:view")
|
| | | public String withdrawCoinAlone() {
|
| | | return FebsUtil.view("modules/member/withdrawCoinAlone");
|
| | | }
|
| | | |
| | | /**
|
| | | * 提币记录
|
| | | * @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");
|
| | | }
|
| | | |
| | | |
| | | }
|