|
|
@@ -12,6 +12,7 @@ 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.PutMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -47,6 +48,10 @@ public interface WelcomeVisitorControllerAPI {
|
|
|
@ApiOperation(value = "管理员新增访客记录")
|
|
|
CommonResult addVisitorByAdmin(@Validated @RequestBody WelcomeVisitorRequest visitorRequest);
|
|
|
|
|
|
+ @PutMapping("admin/update")
|
|
|
+ @ApiOperation(value = "管理员修改访客记录")
|
|
|
+ CommonResult updateVisitorByAdmin(@Validated @RequestBody WelcomeVisitorRequest visitorRequest);
|
|
|
+
|
|
|
@GetMapping("admin/{id}")
|
|
|
@ApiOperation(value = "根据记录id获取访客记录")
|
|
|
CommonResult<WelcomeVisitorVO> getById(@PathVariable Long id);
|