From c8b658df0004f9698f20d7017703e0901fcf8b15 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 26 Jul 2023 13:00:57 +0800
Subject: [PATCH] 短信认证
---
src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java
index 04528ff..1d198f3 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java
@@ -19,6 +19,7 @@
@Slf4j
@Validated
@RestController
+@CrossOrigin
@RequiredArgsConstructor
@RequestMapping(value = "/api/leader")
@Api(value = "ApiMallTeamLeaderController", tags = "团长接口类")
@@ -35,16 +36,29 @@
return iApiMallTeamLeaderService.applyLeader(apiApplayLeaderDto);
}
+
/**
* 团长列表
*/
- @ApiOperation(value = "团长列表", notes = "团长列表")
+ @ApiOperation(value = "团长列表(查询当前位置商品配送范围内的所有团长)", notes = "团长列表(查询当前位置商品配送范围内的所有团长)")
@ApiResponses({
@ApiResponse(code = 200, message = "success", response = ApiLeaderListVo.class)
})
@PostMapping(value = "/leaderList")
public FebsResponse leaderList(@RequestBody @Valid ApiLeaderListDto apiLeaderListDto) {
- return new FebsResponse().success().data(iApiMallTeamLeaderService.findLeaderListInPage(apiLeaderListDto));
+ return iApiMallTeamLeaderService.findSomeLeaderListInPage(apiLeaderListDto);
+ }
+
+ /**
+ * 团长列表
+ */
+ @ApiOperation(value = "团长列表(查询当前经纬度在团长配送范围内的团长)", notes = "团长列表(查询当前经纬度在团长配送范围内的团长)")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiLeaderListVo.class)
+ })
+ @PostMapping(value = "/leaderListInFence")
+ public FebsResponse leaderListInFence(@RequestBody @Valid ApiLeaderListDto apiLeaderListDto) {
+ return iApiMallTeamLeaderService.findLeaderListInPage(apiLeaderListDto);
}
/**
@@ -121,6 +135,21 @@
return iApiMallTeamLeaderService.leaderTitle(apiLeaderTitleDto);
}
+ /**
+ * 商品列表页的团长信息
+ * 有团长特征码直接显示该团长,
+ * 有经纬度,按照经纬度选择距离最近的
+ * 没有选择团长列表的第一个
+ */
+ @ApiOperation(value = "商品列表页的团长信息", notes = "商品列表页的团长信息")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiLeaderInfoVo.class)
+ })
+ @PostMapping("/noLoginLeaderTitle")
+ public FebsResponse noLoginLeaderTitle(@RequestBody ApiLeaderTitleDto apiLeaderTitleDto) {
+ return iApiMallTeamLeaderService.noLoginLeaderTitle(apiLeaderTitleDto);
+ }
+
@ApiOperation(value = "获取团长订单角标数量")
@GetMapping(value = "/findTeamOrderMarkCnt")
public FebsResponse findTeamOrderMarkCnt() {
@@ -136,5 +165,17 @@
return iApiMallTeamLeaderService.leaderProfit();
}
+ /**
+ * 团长查看已提成收益
+ */
+ @ApiOperation(value = "团长查看已提成收益", notes = "团长查看已提成收益")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiOrderProfitVo.class)
+ })
+ @PostMapping(value = "/leaderProfitList")
+ public FebsResponse leaderProfitList(@RequestBody ApiOrderProfitDto apiOrderProfitDto) {
+ return new FebsResponse().success().data(iApiMallTeamLeaderService.findLeaderProfitListInPage(apiOrderProfitDto));
+ }
+
}
--
Gitblit v1.9.1