| | |
| | | package com.ruoyi.account.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.api.model.ApplyForAdmission; |
| | | import com.ruoyi.account.dto.ApplyForAdmissionDTO; |
| | | import com.ruoyi.account.dto.ApplyForAdmissionListDTO; |
| | | import com.ruoyi.account.dto.ApplyReviewDTO; |
| | | import com.ruoyi.account.service.UserApplyForAdmissionService; |
| | | import com.ruoyi.account.vo.ApplyForAdmissionDetailVO; |
| | | import com.ruoyi.account.vo.ApplyForAdmissionListVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.other.api.domain.Goods; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Api(tags = {"申请入驻"}) |
| | | @RestController |
| | |
| | | return R.ok(userApplyForAdmissionService.read()); |
| | | } |
| | | |
| | | /** |
| | | * 入驻审核 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "获取申请列表",tags = {"后台管理-商家管理-入驻申请"}) |
| | | public R<IPage<ApplyForAdmissionListVO>> manageList(@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum, |
| | | @ApiParam("每一页数据大小")@RequestParam(defaultValue = "10") Integer pageSize, |
| | | ApplyForAdmissionListDTO applyListDTO |
| | | ) |
| | | { |
| | | IPage<ApplyForAdmissionListVO> page = userApplyForAdmissionService.getApplyList(pageNum, pageSize, applyListDTO.getShopName(),applyListDTO.getShopManager(),applyListDTO.getPhone(),applyListDTO.getStatus()); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | @GetMapping("/detail/{id}") |
| | | @ApiOperation("获取申请详情") |
| | | public R<ApplyForAdmissionDetailVO> getApplyDetail(@PathVariable Integer id) { |
| | | ApplyForAdmissionDetailVO detail = userApplyForAdmissionService.getApplyDetail(id); |
| | | return R.ok(detail); |
| | | } |
| | | |
| | | @PostMapping("/review") |
| | | @ApiOperation("入驻申请审核") |
| | | public R review(@RequestBody ApplyReviewDTO applyReviewDTO) { |
| | | userApplyForAdmissionService.review(applyReviewDTO); |
| | | return R.ok(); |
| | | } |
| | | } |