ProcessTenantController.java 1010 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.fjhx.controller.process;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.fjhx.entity.process.ProcessTenant;
  4. import com.fjhx.service.process.ProcessTenantService;
  5. import org.springblade.core.tool.api.R;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. /**
  12. * <p>
  13. * 租户流程表 前端控制器
  14. * </p>
  15. *
  16. * @author ${author}
  17. * @since 2022-08-16
  18. */
  19. @RestController
  20. @RequestMapping("/processTenant")
  21. public class ProcessTenantController {
  22. @Autowired
  23. private ProcessTenantService processTenantService;
  24. /**
  25. * 添加租户流程
  26. */
  27. @PostMapping("/add")
  28. public R add(@RequestBody ProcessTenant processTenant) {
  29. processTenantService.add(processTenant);
  30. return R.success();
  31. }
  32. }