From 90d016aee945843432369c705324e030ebfada7b Mon Sep 17 00:00:00 2001 From: Hentua <wangdoubleone@gmail.com> Date: Sun, 11 Jun 2023 11:31:05 +0800 Subject: [PATCH] fix --- src/main/java/cc/mrbird/febs/mall/controller/AdminMallMemberController.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/AdminMallMemberController.java b/src/main/java/cc/mrbird/febs/mall/controller/AdminMallMemberController.java index dbd1b5e..e54aa4a 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/AdminMallMemberController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/AdminMallMemberController.java @@ -4,6 +4,7 @@ import cc.mrbird.febs.common.controller.BaseController; import cc.mrbird.febs.common.entity.FebsResponse; import cc.mrbird.febs.common.entity.QueryRequest; +import cc.mrbird.febs.common.tree.MatrixTree; import cc.mrbird.febs.mall.dto.*; import cc.mrbird.febs.mall.entity.*; import cc.mrbird.febs.mall.service.IAdminMallMemberService; @@ -79,6 +80,30 @@ @ControllerEndpoint(operation = "会员列表---开启", exceptionMessage = "开启失败") public FebsResponse openAccount(@NotNull(message = "{required}") @PathVariable Long id) { return mallMemberService.openAccount(id); + } + + /** + * 会员列表---禁止 + * + * @param id + * @return + */ + @GetMapping("insideWithYes/{id}") + @ControllerEndpoint(operation = "会员列表---禁止", exceptionMessage = "禁止失败") + public FebsResponse insideWithYes(@NotNull(message = "{required}") @PathVariable Long id) { + return mallMemberService.insideWithType(id,1); + } + + /** + * 会员列表---开启 + * + * @param id + * @return + */ + @GetMapping("insideWithNo/{id}") + @ControllerEndpoint(operation = "会员列表---开启", exceptionMessage = "开启失败") + public FebsResponse insideWithNo(@NotNull(message = "{required}") @PathVariable Long id) { + return mallMemberService.insideWithType(id,2); } @GetMapping("changeIdentityYes/{type}/{id}") @@ -380,6 +405,7 @@ registerDto.setPassword("a123456"); registerDto.setInviteId(member.getInviteId()); registerDto.setName(member.getName()); + registerDto.setSex(member.getSex()); apiMallMemberService.register(registerDto); return new FebsResponse().success(); } @@ -434,4 +460,10 @@ return new FebsResponse().success().data(dataTable); } + @GetMapping(value = "/matrixTree") + public FebsResponse matrixTree() { + MatrixTree instance = MatrixTree.getInstance(); + return null; + } + } -- Gitblit v1.9.1