New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.warehouse.ComActWarehouseBaseVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 义仓基础设置表(ComActWarehouseBase)表控制层 |
| | | * |
| | | * @author makejava |
| | | * @since 2021-10-11 09:21:53 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"爱心义仓基础记录接口"}) |
| | | @RestController |
| | | @RequestMapping("comActWarehouseBase") |
| | | public class ComActWarehouseBaseApi extends BaseController { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | /** |
| | | * 通过社区id查询单条数据 |
| | | * |
| | | * @return 单条数据 |
| | | */ |
| | | @ApiOperation(value = "查询单条数据",response = ComActWarehouseBaseVO.class) |
| | | @GetMapping |
| | | public R selectOne() { |
| | | return this.communityService.comActWarehouseBaseSelectOne(this.getCommunityId()); |
| | | } |
| | | |
| | | } |