package com.panzhihua.service_community.api;
|
|
|
import javax.annotation.Resource;
|
|
import com.panzhihua.common.model.dtos.community.social.HatchAuditProcessDTO;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PutMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import com.panzhihua.common.model.dtos.community.social.PageSocialOrgHatchAuditDTO;
|
import com.panzhihua.common.model.dtos.community.social.SocialOrgHatchAuditDTO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_community.service.ComActSocialOrgHatchAuditService;
|
|
/**
|
* 社会组织孵化申请表(ComActSocialOrgHatchAudit)表控制层
|
*
|
* @author makejava
|
* @since 2022-04-18 14:12:27
|
*/
|
@RestController
|
@RequestMapping("comActSocialOrgHatchAudit")
|
public class ComActSocialOrgHatchAuditApi {
|
/**
|
* 服务对象
|
*/
|
@Resource
|
private ComActSocialOrgHatchAuditService comActSocialOrgHatchAuditService;
|
|
/**
|
* 分页查询孵化申请
|
* @param pageHatchAuditDTO
|
* @return
|
*/
|
@PostMapping("/page")
|
public R pageHatchAudit(@RequestBody PageSocialOrgHatchAuditDTO pageHatchAuditDTO) {
|
return comActSocialOrgHatchAuditService.pageHatchAudit(pageHatchAuditDTO);
|
}
|
|
/**
|
* 查看孵化申请详情
|
* @param id
|
* @return
|
*/
|
@GetMapping("/detail")
|
public R detailHatchAudit(@RequestParam("id") Long id) {
|
return comActSocialOrgHatchAuditService.detailHatchAudit(id);
|
}
|
|
/**
|
* 修改孵化申请
|
* @param hatchAuditDTO
|
* @return
|
*/
|
@PostMapping("/update")
|
public R updateHatchAudit(@RequestBody SocialOrgHatchAuditDTO hatchAuditDTO) {
|
return comActSocialOrgHatchAuditService.updateHatchAudit(hatchAuditDTO);
|
}
|
|
/**
|
* 获取孵化流程配置
|
* @return
|
*/
|
@GetMapping("/process")
|
public R getHatchAuditProcess() {
|
return comActSocialOrgHatchAuditService.getHatchAuditProcess();
|
}
|
|
/**
|
* 修改孵化流程配置
|
* @param processDTO
|
* @return
|
*/
|
@PutMapping("/process")
|
public R putHatchAuditProcess(@RequestBody HatchAuditProcessDTO processDTO) {
|
return comActSocialOrgHatchAuditService.putHatchAuditProcess(processDTO);
|
}
|
|
/**
|
* 新增孵化申请
|
* @param hatchAuditDTO
|
* @return
|
*/
|
@PostMapping("/add")
|
public R addHatchAudit(@RequestBody SocialOrgHatchAuditDTO hatchAuditDTO) {
|
return comActSocialOrgHatchAuditService.addHatchAudit(hatchAuditDTO);
|
}
|
|
/**
|
* 查看孵化申请审核进度
|
* @param userId
|
* @return
|
*/
|
@GetMapping("/schedule")
|
public R getHatchAuditSchedule(@RequestParam("userId") Long userId) {
|
return comActSocialOrgHatchAuditService.getHatchAuditSchedule(userId);
|
}
|
|
/**
|
* 删除孵化申请详情
|
* @param id
|
* @return
|
*/
|
@GetMapping("/delete")
|
public R deleteHatchAudit(@RequestParam("id") Long id) {
|
return comActSocialOrgHatchAuditService.deleteHatchAudit(id);
|
}
|
}
|