fix
Hentua
2023-06-11 90d016aee945843432369c705324e030ebfada7b
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;
    }
}