New file |
| | |
| | | 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(); |
| | | } |
| | | } |
| | | |