McItemLvController.java 810 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.malk.mc.controller;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.malk.core.McProject;
  4. import com.malk.server.common.McR;
  5. import com.malk.utils.PublicUtil;
  6. import org.springframework.web.bind.annotation.PostMapping;
  7. import org.springframework.web.bind.annotation.RequestBody;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RestController;
  10. /**
  11. * 功能:
  12. * 作者:hanxue
  13. * 日期:2024/10/10 14:44
  14. */
  15. @RestController
  16. @RequestMapping("/Item/")
  17. public class McItemLvController {
  18. // 律所传参为空校验
  19. @PostMapping("checkNull")
  20. public McR add(@RequestBody JSONObject param){
  21. //
  22. if(PublicUtil.isNull(param,"param")){
  23. return McR.errorNullPointer();
  24. }else{
  25. return McR.success();
  26. }
  27. }
  28. }