1、新增后台面板
2、查询页改三要素 3、佣金冻结
This commit is contained in:
		
							
								
								
									
										29
									
								
								app/main/api/internal/handler/auth/initfaceverifyhandler.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								app/main/api/internal/handler/auth/initfaceverifyhandler.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| package auth | ||||
|  | ||||
| import ( | ||||
| 	"net/http" | ||||
|  | ||||
| 	"github.com/zeromicro/go-zero/rest/httpx" | ||||
| 	"qnc-server/app/user/cmd/api/internal/logic/auth" | ||||
| 	"qnc-server/app/user/cmd/api/internal/svc" | ||||
| 	"qnc-server/app/user/cmd/api/internal/types" | ||||
| 	"qnc-server/common/result" | ||||
| 	"qnc-server/pkg/lzkit/validator" | ||||
| ) | ||||
|  | ||||
| func InitFaceVerifyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||||
| 	return func(w http.ResponseWriter, r *http.Request) { | ||||
| 		var req types.InitFaceVerifyReq | ||||
| 		if err := httpx.Parse(r, &req); err != nil { | ||||
| 			result.ParamErrorResult(r, w, err) | ||||
| 			return | ||||
| 		} | ||||
| 		if err := validator.Validate(req); err != nil { | ||||
| 			result.ParamValidateErrorResult(r, w, err) | ||||
| 			return | ||||
| 		} | ||||
| 		l := auth.NewInitFaceVerifyLogic(r.Context(), svcCtx) | ||||
| 		resp, err := l.InitFaceVerify(&req) | ||||
| 		result.HttpResult(r, w, resp, err) | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user