package com.panzhihua.service_community.api;
|
|
|
import javax.annotation.Resource;
|
|
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.PageSocialOrgHatchDTO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_community.service.ComActSocialOrgHatchService;
|
|
/**
|
* 社会组织孵化表(ComActSocialOrgHatch)表控制层
|
*
|
* @author makejava
|
* @since 2022-04-18 14:12:27
|
*/
|
@RestController
|
@RequestMapping("comActSocialOrgHatch")
|
public class ComActSocialOrgHatchApi {
|
/**
|
* 服务对象
|
*/
|
@Resource
|
private ComActSocialOrgHatchService comActSocialOrgHatchService;
|
|
/**
|
* 分页查询孵化数据
|
* @param pageHatchDTO
|
* @return
|
*/
|
@PostMapping("/page")
|
public R pageOrgHatch(@RequestBody PageSocialOrgHatchDTO pageHatchDTO) {
|
return comActSocialOrgHatchService.pageOrgHatch(pageHatchDTO);
|
}
|
|
/**
|
* 查看孵化数据详情
|
* @param id
|
* @return
|
*/
|
@GetMapping("/detail")
|
public R detailOrgHatch(@RequestParam("id") Long id) {
|
return comActSocialOrgHatchService.detailOrgHatch(id);
|
}
|
|
/**
|
* 修改孵化状态
|
* @param id
|
* @param status
|
* @return
|
*/
|
@PutMapping("/updateStatus")
|
public R updateOrgHatchStatus(@RequestParam("id") Long id, @RequestParam("status") Integer status) {
|
return comActSocialOrgHatchService.updateOrgHatchStatus(id, status);
|
}
|
|
/**
|
* 删除孵化数据
|
* @param id
|
* @return
|
*/
|
@GetMapping("/delete")
|
public R deleteOrgHatch(@RequestParam("id") Long id) {
|
return comActSocialOrgHatchService.deleteOrgHatch(id);
|
}
|
}
|