Skip to content
Snippets Groups Projects

batch delete function

Merged
Yulong Wangrequested to merge
wyl into main
2 open threads
4 files
+ 58
4
Compare changes
  • Side-by-side
  • Inline

Files

@@ -4,11 +4,9 @@ import com.cardiff.client_project.pojo.vo.SignUserVo;
import com.cardiff.client_project.service.AdminService;
import com.cardiff.client_project.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@@ -28,4 +26,16 @@ public class AdminController {
Result result=adminService.insertUserInform(signVo);
return result;
}
/**
*delete information by id
* @param ids
* @return
*/
@DeleteMapping("/deleteById")
public Result deleteById(@RequestBody List<Integer> ids){
System.out.println(ids);
Result result=adminService.deleteById(ids);
return result;
}
}
Please register or sign in to reply
Loading