|  |  |  | 
|---|
|  |  |  | package com.doumee.api.web; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.config.annotation.LoginRequired; | 
|---|
|  |  |  | import com.doumee.core.annotation.trace.Trace; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Visits; | 
|---|
|  |  |  | import com.doumee.dao.web.reqeust.CheckVisitedDTO; | 
|---|
|  |  |  | import com.doumee.dao.web.response.MemberVO; | 
|---|
|  |  |  | import com.doumee.dao.web.response.VisitDetailVO; | 
|---|
|  |  |  | import com.doumee.dao.web.response.WxAuthorizeVO; | 
|---|
|  |  |  | import com.doumee.service.business.MemberService; | 
|---|
|  |  |  | import com.doumee.service.business.VisitsService; | 
|---|
|  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiImplicitParams; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.checkerframework.checker.units.qual.A; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "访客记录提交", notes = "访客记录提交") | 
|---|
|  |  |  | @ApiOperation(value = "访客记录提交", notes = "访客提交") | 
|---|
|  |  |  | @PostMapping("/createFk") | 
|---|
|  |  |  | public ApiResponse createFk(@RequestBody Visits visits) { | 
|---|
|  |  |  | return ApiResponse.success("查询成功", visitsService.createFk(visits)); | 
|---|
|  |  |  | visits.setSourceType(Constants.ZERO); | 
|---|
|  |  |  | return ApiResponse.success("查询成功", visitsService.createFk(visits,false)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "访客记录详情", notes = "访客记录详情") | 
|---|
|  |  |  | @GetMapping("/detail") | 
|---|
|  |  |  | public ApiResponse<VisitDetailVO> detail(@RequestParam Integer id) { | 
|---|
|  |  |  | return ApiResponse.success("查询成功", visitsService.getVisitDetail(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|