| | |
| | | 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; |
| | |
| | | @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}") |
| | |
| | | registerDto.setPassword("a123456"); |
| | | registerDto.setInviteId(member.getInviteId()); |
| | | registerDto.setName(member.getName()); |
| | | registerDto.setSex(member.getSex()); |
| | | apiMallMemberService.register(registerDto); |
| | | return new FebsResponse().success(); |
| | | } |
| | |
| | | return new FebsResponse().success().data(dataTable); |
| | | } |
| | | |
| | | @GetMapping(value = "/matrixTree") |
| | | public FebsResponse matrixTree() { |
| | | MatrixTree instance = MatrixTree.getInstance(); |
| | | return null; |
| | | } |
| | | |
| | | } |