| | |
| | | package com.xiaopeng.account.controller; |
| | | |
| | | import com.xiaopeng.account.model.dto.CollectAddrDTO; |
| | | import com.xiaopeng.account.service.IXpAppUserService; |
| | | import com.xiaopeng.api.dto.statistics.StatisticsQueryDTO; |
| | | import com.xiaopeng.api.dto.statistics.UserStatisticsDTO; |
| | | import com.xiaopeng.api.model.account.XpAppUser; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.unifiedverification.interceptor.XpClientCheck; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | XpAppUser xpAppUser = xpAppUserService.getById(id); |
| | | return R.ok(xpAppUser); |
| | | } |
| | | |
| | | //-----------------------------------------------app接口------------------------------------------ |
| | | /** |
| | | * 获取免密结果 |
| | | */ |
| | | @PostMapping("/api/v1/mini-program/appUser/getPayPwd") |
| | | @ApiOperation(value = "个人中心-获取免密结果", tags = {"小程序-获取免密结果"}) |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<Boolean> appUserGetPayPwd(HttpServletRequest request) { |
| | | // uid已通过拦截器otp校验,可以直接使用 |
| | | String uid = request.getHeader("XP-Uid"); |
| | | //调用其他接口获取 免密结果 |
| | | Boolean is = true; |
| | | return R.ok(is); |
| | | } |
| | | |
| | | /** |
| | | * 设置免密结果 |
| | | */ |
| | | @PostMapping("/api/v1/mini-program/appUser/setPayPwd") |
| | | @ApiOperation(value = "个人中心-设置免密结果", tags = {"小程序-设置免密结果"}) |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<?> appUserSetPayPwd(HttpServletRequest request) { |
| | | // uid已通过拦截器otp校验,可以直接使用 |
| | | String uid = request.getHeader("XP-Uid"); |
| | | //调用其他接口设置免密结果 |
| | | return R.ok(); |
| | | } |
| | | //-----------------------------------------------app接口------------------------------------------ |
| | | |
| | | } |