优化接口的类型

This commit is contained in:
季圣华
2020-10-31 21:26:00 +08:00
parent 197213e97e
commit fba97561cb
18 changed files with 28 additions and 45 deletions

View File

@@ -115,7 +115,7 @@ public class DepotController {
* @return
* @throws Exception
*/
@RequestMapping(value = "/findDepotByUserId")
@GetMapping(value = "/findDepotByUserId")
public JSONArray findDepotByUserId(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId,
HttpServletRequest request) throws Exception{
JSONArray arr = new JSONArray();
@@ -152,7 +152,7 @@ public class DepotController {
* @Param: ids
* @return java.lang.Object
*/
@RequestMapping(value = "/batchDeleteDepotByIds")
@PostMapping(value = "/batchDeleteDepotByIds")
public Object batchDeleteDepotByIds(@RequestParam("ids") String ids,@RequestParam(value="deleteType",
required =false,defaultValue=BusinessConstants.DELETE_TYPE_NORMAL)String deleteType) throws Exception {
JSONObject result = ExceptionConstants.standardSuccess();