|
@@ -11,10 +11,7 @@ import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 微信
|
|
* 微信
|
|
@@ -50,9 +47,23 @@ public class WxController extends BaseController {
|
|
|
return wxService.findCreditAccount(type, userId, startTime, endTime, pageQuery);
|
|
return wxService.findCreditAccount(type, userId, startTime, endTime, pageQuery);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 卡片挂失解挂
|
|
|
|
|
+ * @param cardStatus
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@PutMapping("/updateCardStatus")
|
|
@PutMapping("/updateCardStatus")
|
|
|
public R<Void> lockPtCard(String cardStatus) {
|
|
public R<Void> lockPtCard(String cardStatus) {
|
|
|
Long userId = LoginHelper.getUserId();
|
|
Long userId = LoginHelper.getUserId();
|
|
|
return toAjax(wxService.updateCardStatus(userId, cardStatus));
|
|
return toAjax(wxService.updateCardStatus(userId, cardStatus));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 人脸照片采集
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/uploadUserPhoto")
|
|
|
|
|
+ public R<String> uploadUserPhoto(String imgData) {
|
|
|
|
|
+ Long userId = LoginHelper.getUserId();
|
|
|
|
|
+ return wxService.uploadUserPhoto(userId, imgData);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|