|
|
@@ -185,3 +185,31 @@ func QueryUsereSignRecords(c *gin.Context) {
|
|
|
appG.Response(http.StatusBadRequest, e.ERROR_QUERY_FAIL, nil)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+// BankCard4 个人意愿核身认证(双录)
|
|
|
+// @Summary 个人意愿核身认证(双录)
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @accept application/json
|
|
|
+// @Param data body asignService.WillFaceReq true "入参"
|
|
|
+// @Success 200 {object} asignService.WillFaceRsp
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Asign/WillFace [post]
|
|
|
+// @Tags 爱签
|
|
|
+func WillFace(c *gin.Context) {
|
|
|
+ appG := app.Gin{C: c}
|
|
|
+
|
|
|
+ // 获取请求参数
|
|
|
+ var req asignService.WillFaceReq
|
|
|
+ if err := appG.C.ShouldBindJSON(&req); err != nil {
|
|
|
+ logger.GetLogger().Errorf(err.Error())
|
|
|
+ appG.Response(http.StatusBadRequest, e.INVALID_PARAMS, nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if rsp, err := asignService.WillFace(req); err == nil {
|
|
|
+ appG.Response(http.StatusOK, e.SUCCESS, rsp)
|
|
|
+ } else {
|
|
|
+ appG.ResponseByMsg(http.StatusBadRequest, e.ERROR, err.Error(), nil)
|
|
|
+ }
|
|
|
+}
|