| | |
| | | |
| | | import com.panzhihua.common.model.dtos.grid.PageEasyAppDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_grid.service.ComActEasyPhotoService; |
| | | import com.panzhihua.service_grid.service.ComActEasyPhotoTypeService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * |
| | |
| | | @RequestMapping("/easy") |
| | | public class EasyPhotoApi { |
| | | |
| | | @Resource |
| | | private ComActEasyPhotoService comActEasyPhotoService; |
| | | @Resource |
| | | private ComActEasyPhotoTypeService comActEasyPhotoTypeService; |
| | | |
| | | /** |
| | | * 分页查询随手拍 |
| | | * @param easyAppDTO 请求参数 |
| | | * @return 随手拍列表 |
| | | */ |
| | | @PostMapping("list") |
| | | public R list(@RequestBody PageEasyAppDTO easyAppDTO){ |
| | | |
| | | return R.ok(); |
| | | return comActEasyPhotoService.query(easyAppDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据随手拍id查询随手拍详情 |
| | | * @param easyId 随手拍id |
| | | * @return 随手拍详情 |
| | | */ |
| | | @PostMapping("detail") |
| | | public R detail(@RequestParam("easyId") Long easyId){ |
| | | return comActEasyPhotoService.detail(easyId); |
| | | } |
| | | |
| | | /** |
| | | * 查询随手拍类型列表 |
| | | * @return 类型列表 |
| | | */ |
| | | @PostMapping("type/list") |
| | | public R typeList(){ |
| | | return comActEasyPhotoTypeService.typeList(); |
| | | } |
| | | } |