mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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);
    }
}