|
|
@@ -12,9 +12,9 @@ import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -29,15 +29,15 @@ public interface WelcomeVisitorControllerAPI {
|
|
|
|
|
|
@PostMapping
|
|
|
@ApiOperation(value = "新增访客记录")
|
|
|
- CommonResult addVisitor(@RequestParam String studentCard, @Validated @RequestBody WelcomeVisitorRequest visitorRequest);
|
|
|
+ CommonResult addVisitor(@RequestAttribute String studentCard, @Validated @RequestBody WelcomeVisitorRequest visitorRequest);
|
|
|
|
|
|
@GetMapping
|
|
|
@ApiOperation(value = "获取当前用户访客记录")
|
|
|
- CommonResult<WelcomeVisitorVO> getByCurUser(@RequestParam String studentCard);
|
|
|
+ CommonResult<WelcomeVisitorVO> getByCurUser(@RequestAttribute String studentCard);
|
|
|
|
|
|
@DeleteMapping
|
|
|
@ApiOperation(value = "删除当前用户的访客记录")
|
|
|
- CommonResult deleteByCurUser(@RequestParam String studentCard);
|
|
|
+ CommonResult deleteByCurUser(@RequestAttribute String studentCard);
|
|
|
|
|
|
@GetMapping("admin/page")
|
|
|
@ApiOperation(value = "访客记录分页")
|