zhuyifan

refactor(tianting): 修改查询就餐人的接口为 POST 方法

...@@ -20,6 +20,7 @@ import org.springframework.validation.annotation.Validated; ...@@ -20,6 +20,7 @@ import org.springframework.validation.annotation.Validated;
20 import org.springframework.web.bind.annotation.DeleteMapping; 20 import org.springframework.web.bind.annotation.DeleteMapping;
21 import org.springframework.web.bind.annotation.GetMapping; 21 import org.springframework.web.bind.annotation.GetMapping;
22 import org.springframework.web.bind.annotation.PatchMapping; 22 import org.springframework.web.bind.annotation.PatchMapping;
23 +import org.springframework.web.bind.annotation.PostMapping;
23 import org.springframework.web.bind.annotation.PutMapping; 24 import org.springframework.web.bind.annotation.PutMapping;
24 import org.springframework.web.bind.annotation.RequestAttribute; 25 import org.springframework.web.bind.annotation.RequestAttribute;
25 import org.springframework.web.bind.annotation.RequestBody; 26 import org.springframework.web.bind.annotation.RequestBody;
...@@ -66,7 +67,7 @@ public class DinerController { ...@@ -66,7 +67,7 @@ public class DinerController {
66 } 67 }
67 68
68 @ApiOperation(value = "根据学校,班级和学号查询就餐人") 69 @ApiOperation(value = "根据学校,班级和学号查询就餐人")
69 - @GetMapping("/client/{clientId}/gradeclass/{gradeClassId}/diner") 70 + @PostMapping("/client/{clientId}/gradeclass/{gradeClassId}/diner")
70 @ResponseStatus(HttpStatus.OK) 71 @ResponseStatus(HttpStatus.OK)
71 public DinerVO getClientClassDiner(@RequestAttribute(INJECTED_CLIENT) final SingleClientRpcResponse client, 72 public DinerVO getClientClassDiner(@RequestAttribute(INJECTED_CLIENT) final SingleClientRpcResponse client,
72 @RequestAttribute(INJECTED_GRADE_CLASS) final SingleGradeClassRpcResponse gradeClass, 73 @RequestAttribute(INJECTED_GRADE_CLASS) final SingleGradeClassRpcResponse gradeClass,
......