update:
1. fix
This commit is contained in:
@@ -29,9 +29,7 @@ import java.util.List;
|
||||
public class APPCommonController {
|
||||
|
||||
private final IUserService userService;
|
||||
private final ICommonRegionsInfoService commonRegionsInfoService;
|
||||
private final ICommonTourInfoService commonTourInfoService;
|
||||
private final AppCommonManager appCommonManager;
|
||||
|
||||
private final ICommonReleaseVersionService releaseVersionService;
|
||||
|
||||
/**
|
||||
@@ -44,19 +42,6 @@ public class APPCommonController {
|
||||
return R.data(releaseVersionService.checkUpdate(AppType.APP.getCode(), version, brand));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取省市区列表
|
||||
*/
|
||||
@GetMapping("/region-list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "获取省市区列表")
|
||||
public R<List<AppCommonRegionsInfoVO>> findRegionList(@RequestParam @Min(value = 0, message = "请选择有效地区") Long pid,
|
||||
@RequestParam @Min(value = 1, message = "请选择省、市、区或街道") @Max(value = 4, message = "请选择省、市、区或街道") Integer level) {
|
||||
return R.data(commonRegionsInfoService.findRegionList(pid, level));
|
||||
}
|
||||
|
||||
|
||||
// 发送忘记密码的短信
|
||||
@RedisDebounce(key = "sms:forget_pwd", param = "#request.phone", interval = 60, includeRemainingTime = true, message = "短信发送过于频繁")
|
||||
@PostMapping("/send-forget-pwd-sms")
|
||||
@@ -74,34 +59,5 @@ public class APPCommonController {
|
||||
return R.status(userService.retrievePassword(request));
|
||||
}
|
||||
|
||||
@GetMapping("/tour-info-list")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "出行人列表")
|
||||
public R<List<CommonTourInfoApiVO>> tourUserProfileList() {
|
||||
return R.data(commonTourInfoService.tourUserProfileList());
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/submit-tour-info")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增出行人信息")
|
||||
public R<Boolean> submitTourUserProfile(@RequestBody CommonTourUserInfoRequest request) {
|
||||
return R.data(commonTourInfoService.submitTourUserProfile(request));
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-tour-info")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "删除出行人信息")
|
||||
public R<Boolean> removeTourUserProfile(@RequestBody CommonRemoveTourRequest request) {
|
||||
return R.data(commonTourInfoService.removeTourUserProfile(request.getIds()));
|
||||
}
|
||||
|
||||
@GetMapping("/pay-type")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "支付渠道")
|
||||
public R<List<CommonModulePayTypeApiVO>> getModulePayTypeList(@RequestParam String moduleCode) {
|
||||
return R.data(appCommonManager.getModulePayTypeList(moduleCode));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ import io.swagger.v3.oas.annotations.Hidden;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.Max;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
@@ -14,6 +16,8 @@ import org.springblade.modules.api.request.*;
|
||||
import org.springblade.modules.api.response.PaymentResponse;
|
||||
import org.springblade.modules.api.service.IPaymentService;
|
||||
import org.springblade.modules.api.vo.*;
|
||||
import org.springblade.modules.common.manager.AppCommonManager;
|
||||
import org.springblade.modules.common.pojo.vo.AppCommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.service.*;
|
||||
import org.springblade.modules.system.service.IUserService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -44,6 +48,12 @@ public class APPUserController {
|
||||
|
||||
private final IPaymentService paymentService;
|
||||
|
||||
private final ICommonRegionsInfoService commonRegionsInfoService;
|
||||
|
||||
private final ICommonTourInfoService commonTourInfoService;
|
||||
|
||||
private final AppCommonManager appCommonManager;
|
||||
|
||||
|
||||
/**
|
||||
* 是否修改过密码
|
||||
@@ -75,11 +85,12 @@ public class APPUserController {
|
||||
return R.data(userService.inviteCode());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 支付宝支付
|
||||
*/
|
||||
@PostMapping("/ali-pay")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "支付", description = "传入PaymentRequest")
|
||||
public R<PaymentResponse> aliPay(@Valid @RequestBody PaymentRequest request) {
|
||||
return R.data(paymentService.aliAppPay(request));
|
||||
@@ -89,7 +100,7 @@ public class APPUserController {
|
||||
* 微信支付
|
||||
*/
|
||||
@PostMapping("/wx-pay")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "支付", description = "传入PaymentRequest")
|
||||
public R<PaymentResponse> wxPay(@Valid @RequestBody PaymentRequest request) {
|
||||
return R.data(paymentService.wxAppPay(request));
|
||||
@@ -100,7 +111,7 @@ public class APPUserController {
|
||||
* 用户订单列表
|
||||
*/
|
||||
@GetMapping("/order-page")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "用户订单分页列表", description = "传入userAddress")
|
||||
public R<IPage<CommonUserOrderApiVO>> orderList(CommonUserOrderApiVO userOrder, Query query) {
|
||||
IPage<CommonUserOrderApiVO> pages = orderService.selectOrderApiPage(Condition.getPage(query), userOrder);
|
||||
@@ -109,7 +120,7 @@ public class APPUserController {
|
||||
|
||||
|
||||
@GetMapping("/system-notice")
|
||||
@ApiOperationSupport(order = 8)
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "APP系统消息列表")
|
||||
public R<List<CommonUserNoticeApiVO>> systemNotice() {
|
||||
return R.data(userNoticeService.appSystemNoticeList());
|
||||
@@ -117,7 +128,7 @@ public class APPUserController {
|
||||
|
||||
|
||||
@GetMapping("/user-notice")
|
||||
@ApiOperationSupport(order = 9)
|
||||
@ApiOperationSupport(order = 8)
|
||||
@Operation(summary = "用户消息列表", description = "传入userNoticeVO")
|
||||
public R<IPage<CommonUserNoticeApiVO>> noticePage(Query query) {
|
||||
IPage<CommonUserNoticeApiVO> pages = userNoticeService.selectAppUserNoticeApiPage(Condition.getPage(query), new CommonUserNoticeApiVO());
|
||||
@@ -126,7 +137,7 @@ public class APPUserController {
|
||||
|
||||
|
||||
@GetMapping("/notice-detail")
|
||||
@ApiOperationSupport(order = 10)
|
||||
@ApiOperationSupport(order = 9)
|
||||
@Operation(summary = "用户读取消息")
|
||||
public R<CommonUserNoticeDetailApiVO> noticeDetail(Long id) {
|
||||
return R.data(userNoticeService.userNoticeDetail(id));
|
||||
@@ -134,12 +145,23 @@ public class APPUserController {
|
||||
|
||||
|
||||
@GetMapping("/unread")
|
||||
@ApiOperationSupport(order = 11)
|
||||
@ApiOperationSupport(order = 10)
|
||||
@Operation(summary = "用户未读消息数量")
|
||||
public R<Long> unreadNum() {
|
||||
return R.data(userNoticeService.appUnreadNoticeNum());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取省市区列表
|
||||
*/
|
||||
@GetMapping("/region-list")
|
||||
@ApiOperationSupport(order = 11)
|
||||
@Operation(summary = "获取省市区列表")
|
||||
public R<List<AppCommonRegionsInfoVO>> findRegionList(@RequestParam @Min(value = 0, message = "请选择有效地区") Long pid,
|
||||
@RequestParam @Min(value = 1, message = "请选择省、市、区或街道") @Max(value = 4, message = "请选择省、市、区或街道") Integer level) {
|
||||
return R.data(commonRegionsInfoService.findRegionList(pid, level));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/user-address")
|
||||
@ApiOperationSupport(order = 12)
|
||||
@@ -164,47 +186,74 @@ public class APPUserController {
|
||||
return R.status(addressService.removeAddress(request.getIds()));
|
||||
}
|
||||
|
||||
@GetMapping("/tour-info-list")
|
||||
@ApiOperationSupport(order = 15)
|
||||
@Operation(summary = "出行人列表")
|
||||
public R<List<CommonTourInfoApiVO>> tourUserProfileList() {
|
||||
return R.data(commonTourInfoService.tourUserProfileList());
|
||||
}
|
||||
|
||||
@PostMapping("/submit-tour-info")
|
||||
@ApiOperationSupport(order = 16)
|
||||
@Operation(summary = "新增出行人信息")
|
||||
public R<Boolean> submitTourUserProfile(@RequestBody CommonTourUserInfoRequest request) {
|
||||
return R.data(commonTourInfoService.submitTourUserProfile(request));
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-tour-info")
|
||||
@ApiOperationSupport(order = 17)
|
||||
@Operation(summary = "删除出行人信息")
|
||||
public R<Boolean> removeTourUserProfile(@RequestBody CommonRemoveTourRequest request) {
|
||||
return R.data(commonTourInfoService.removeTourUserProfile(request.getIds()));
|
||||
}
|
||||
|
||||
@GetMapping("/user-points")
|
||||
@ApiOperationSupport(order = 15)
|
||||
@ApiOperationSupport(order = 18)
|
||||
@Operation(summary = "用户积分查询")
|
||||
public R<BigDecimal> userPoints() {
|
||||
return R.data(pointService.queryPoint());
|
||||
}
|
||||
|
||||
@GetMapping("/lottery-prizes")
|
||||
@ApiOperationSupport(order = 16)
|
||||
@ApiOperationSupport(order = 19)
|
||||
@Operation(summary = "奖品列表")
|
||||
public R<List<CommonLotteryPrizeApiVO>> lotteryPrizes() {
|
||||
return R.data(lotteryPrizeService.staticList());
|
||||
}
|
||||
|
||||
@GetMapping("/lottery-records")
|
||||
@ApiOperationSupport(order = 17)
|
||||
@ApiOperationSupport(order = 20)
|
||||
@Operation(summary = "抽奖记录")
|
||||
public R<IPage<CommonLotteryRecordApiVO>> lotteryRecords(Query query) {
|
||||
return R.data(lotteryRecordService.selectLotteryRecordApiPage(Condition.getPage(query), new CommonLotteryRecordApiVO()));
|
||||
}
|
||||
|
||||
@PostMapping("/lottery-draw")
|
||||
@ApiOperationSupport(order = 18)
|
||||
@ApiOperationSupport(order = 21)
|
||||
@Operation(summary = "用户抽奖", description = "传入LotteriesDrawRequest")
|
||||
public R<CommonLotteryPrizeApiVO> draw(@Valid @RequestBody LotteryDrawRequest request) {
|
||||
return R.data(lotteryPrizeService.draw(request));
|
||||
}
|
||||
|
||||
@GetMapping("/lottery-rules")
|
||||
@ApiOperationSupport(order = 19)
|
||||
@ApiOperationSupport(order = 22)
|
||||
@Operation(summary = "抽奖规则")
|
||||
public R<String> lotteryRules() {
|
||||
return R.data(lotteryPrizeService.rules());
|
||||
}
|
||||
|
||||
@GetMapping("/lottery-winners")
|
||||
@ApiOperationSupport(order = 20)
|
||||
@ApiOperationSupport(order = 23)
|
||||
@Operation(summary = "获奖名单")
|
||||
public R<List<CommonLotteryWinnerApiVO>> lotteryWinners() {
|
||||
return R.data(lotteryRecordService.lotteryWinners());
|
||||
}
|
||||
|
||||
@GetMapping("/pay-type")
|
||||
@ApiOperationSupport(order = 24)
|
||||
@Operation(summary = "支付渠道")
|
||||
public R<List<CommonModulePayTypeApiVO>> getModulePayTypeList(@RequestParam String moduleCode) {
|
||||
return R.data(appCommonManager.getModulePayTypeList(moduleCode));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ import java.util.Map;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("blade-lotteryprize/lotteryPrize")
|
||||
@RequestMapping("common/lottery-prize")
|
||||
@Tag(name = "奖品配置表", description = "奖品配置表接口")
|
||||
public class CommonLotteryPrizeController extends BladeController {
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("blade-lotteryprize/lotteryRecord")
|
||||
@RequestMapping("common/lottery-record")
|
||||
@Tag(name = "抽奖记录表", description = "抽奖记录表接口")
|
||||
public class CommonLotteryRecordController extends BladeController {
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ import java.util.List;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/region")
|
||||
@RequestMapping("common/region")
|
||||
@Tag(name = "地区详情表", description = "地区详情表接口")
|
||||
public class CommonRegionsInfoController extends BladeController {
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ import org.springblade.core.boot.ctrl.BladeController;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/address")
|
||||
@RequestMapping("common/address")
|
||||
@Tag(name = "用户地址表", description = "用户地址表接口")
|
||||
public class CommonUserAddressController extends BladeController {
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ import org.springblade.core.boot.ctrl.BladeController;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/notice")
|
||||
@RequestMapping("common/notice")
|
||||
@Tag(name = "用户通知", description = "用户通知接口")
|
||||
public class CommonUserNoticeController extends BladeController {
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/order")
|
||||
@RequestMapping("common/order")
|
||||
@Tag(name = "用户订单", description = "用户订单接口")
|
||||
public class CommonUserOrderController extends BladeController {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/user-point")
|
||||
@RequestMapping("common/user-point")
|
||||
@Tag(name = "用户商城积分表", description = "用户商城积分表接口")
|
||||
public class CommonUserPointController extends BladeController {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/user-point-log")
|
||||
@RequestMapping("common/user-point-log")
|
||||
@Tag(name = "用户商城积分流水表", description = "用户商城积分流水表接口")
|
||||
public class CommonUserPointLogController extends BladeController {
|
||||
|
||||
|
||||
@@ -293,17 +293,18 @@ blade:
|
||||
crypto: "sha1"
|
||||
#多终端认证配置
|
||||
client:
|
||||
- client-id: saber3
|
||||
- client-id: web-admin
|
||||
path-patterns:
|
||||
- /blade-saber/**
|
||||
- /common/**
|
||||
- /blade-desk/**
|
||||
- /blade-develop/**
|
||||
- /mall/**
|
||||
- /market/**
|
||||
- /blade-resource/**
|
||||
- /blade-system/**
|
||||
- client-id: app
|
||||
path-patterns:
|
||||
- /app/user/**
|
||||
- /app/common/region-list
|
||||
- /app/common/tour-info-list
|
||||
- /app/common/submit-tour-info
|
||||
- /app/common/delete-tour-info
|
||||
- /app/common/pay-type
|
||||
- /app/mall/create-order
|
||||
- /app/mall/confirm
|
||||
- /app/mall/order-detail
|
||||
|
||||
Reference in New Issue
Block a user