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
package com.panzhihua.applets.api;
 
 
import javax.annotation.Resource;
 
import org.springframework.validation.annotation.Validated;
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.controller.BaseController;
import com.panzhihua.common.model.dtos.community.social.HatchAuditProcessDTO;
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.common.model.vos.community.social.SocialOrgHatchAuditVO;
import com.panzhihua.common.service.community.CommunityService;
import com.panzhihua.common.validated.PutGroup;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
 
/**
 * @title: ComActSocialOrgHatchAuditApi
 * @projectName: 成都呐喊信息技术有限公司-智慧社区项目
 * @description: 社会组织孵化申请相关
 * @author: hans
 * @date: 2022/04/18 14:14
 */
@Slf4j
@Api(tags = {"社会组织孵化申请"})
@RestController
@RequestMapping("/comActSocialOrgHatchAudit")
public class ComActSocialOrgHatchAuditApi extends BaseController {
    /**
     * 服务对象
     */
    @Resource
    private CommunityService communityService;
 
    @ApiOperation(value = "新增孵化申请")
    @PostMapping("/add")
    public R addHatchAudit(@RequestBody SocialOrgHatchAuditDTO hatchAuditDTO) {
        hatchAuditDTO.setUserId(this.getUserId());
        return communityService.addHatchAudit(hatchAuditDTO);
    }
 
    @ApiOperation(value = "查看孵化申请审核进度", response = SocialOrgHatchAuditVO.class)
    @GetMapping("/schedule")
    public R getHatchAuditSchedule() {
        return communityService.getHatchAuditSchedule(this.getUserId());
    }
 
    @ApiOperation(value = "修改孵化申请")
    @PostMapping("/update")
    public R updateHatchAudit(@RequestBody @Validated(PutGroup.class) SocialOrgHatchAuditDTO hatchAuditDTO) {
        return communityService.updateHatchAudit(hatchAuditDTO);
    }
 
    @ApiOperation(value = "获取孵化流程配置", response = String.class)
    @GetMapping("/process")
    public R getHatchAuditProcess() {
        return communityService.getHatchAuditProcess();
    }
}