1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.fjhx.controller.process;
- import com.alibaba.fastjson.JSONObject;
- import com.fjhx.entity.process.ProcessTenant;
- import com.fjhx.service.process.ProcessTenantService;
- import org.springblade.core.tool.api.R;
- 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;
- @RestController
- @RequestMapping("/processTenant")
- public class ProcessTenantController {
- @Autowired
- private ProcessTenantService processTenantService;
-
- @PostMapping("/add")
- public R add(@RequestBody ProcessTenant processTenant) {
- processTenantService.add(processTenant);
- return R.success();
- }
- }
|