|  |  | 
 |  |  | import com.doumee.api.BaseController; | 
 |  |  | import com.doumee.config.annotation.LoginNoRequired; | 
 |  |  | import com.doumee.core.annotation.trace.Trace; | 
 |  |  | import com.doumee.dao.web.response.DDAuthorizeVO; | 
 |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
 |  |  | import com.doumee.service.business.third.model.LoginUserInfo; | 
 |  |  | import com.doumee.service.business.third.model.PageData; | 
 |  |  | 
 |  |  | import com.doumee.service.business.MemberService; | 
 |  |  | import com.doumee.service.business.VisitReasonService; | 
 |  |  | import com.doumee.service.business.VisitsService; | 
 |  |  | import com.taobao.api.ApiException; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | import io.swagger.annotations.ApiImplicitParams; | 
 |  |  | 
 |  |  |         return ApiResponse.success("查询成功",wxAuthorizeVO); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "钉钉微信授权", notes = "访客微信授权获取openId") | 
 |  |  |     @GetMapping("/ddAuthorize") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "code", value = "授权码", required = true), | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "source", value = "来源:0=司机;1=访客;2=内部员工", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<DDAuthorizeVO> ddAuthorize(@RequestParam String code, @RequestParam Integer source) throws ApiException { | 
 |  |  |         DDAuthorizeVO ddAuthorizeVO =  memberService.ddAuthorize(code,source); | 
 |  |  |         return ApiResponse.success("查询成功",ddAuthorizeVO); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "查询被访问人信息", notes = "查询被访问人信息") | 
 |  |  |     @PostMapping("/getVisitedMember") | 
 |  |  |     public ApiResponse<List<MemberVO>> getVisitedMember(@Valid @RequestBody CheckVisitedDTO checkVisitedDTO) { | 
 |  |  | 
 |  |  |         visits.setSourceType(Constants.ZERO); | 
 |  |  |         return ApiResponse.success("查询成功", visitsService.createFk(visits,false,Constants.ZERO)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "来访事由", notes = "来访事由") | 
 |  |  |     @PostMapping("/visitReason") | 
 |  |  |     public ApiResponse<List<VisitReason>> visitReason() { |