| | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | | import cc.mrbird.febs.mall.entity.AppVersion; |
| | | import cc.mrbird.febs.mall.entity.MallMember; |
| | | import cc.mrbird.febs.mall.entity.MallNewsInfo; |
| | | import cc.mrbird.febs.mall.entity.MallShopApply; |
| | | import cc.mrbird.febs.mall.entity.*; |
| | | import cc.mrbird.febs.mall.service.IAdminMallMemberService; |
| | | import cc.mrbird.febs.mall.service.IApiMallMemberService; |
| | | import cc.mrbird.febs.mall.vo.AdminAgentLevelOptionTreeVo; |
| | |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | /** |
| | | * 代理申请列表 |
| | | */ |
| | | @GetMapping("getAgentApplyList") |
| | | public FebsResponse getAgentApplyList(MallAgentRecord mallAgentRecord, QueryRequest request) { |
| | | Map<String, Object> data = getDataTable(mallMemberService.getAgentApplyList(mallAgentRecord, request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | /** |
| | | * 代理申请列表 |
| | | * 同意 |
| | | */ |
| | | @GetMapping("agreeAgentApply/{id}") |
| | | @ControllerEndpoint(operation = "审核代理申请", exceptionMessage = "操作失败") |
| | | public FebsResponse agreeAgentApply(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return mallMemberService.agreeAgentApply(id); |
| | | } |
| | | |
| | | /** |
| | | * 代理申请列表 |
| | | * 拒绝 |
| | | */ |
| | | @GetMapping("disagreeAgentApply/{id}") |
| | | @ControllerEndpoint(operation = "审核代理申请", exceptionMessage = "操作失败") |
| | | public FebsResponse disagreeAgentApply(@NotNull(message = "{required}") @PathVariable Long id) { |
| | | return mallMemberService.disagreeAgentApply(id); |
| | | } |
| | | |
| | | } |