huanghongfa
2021-05-27 23f8236c1ae1a1668bff373491beb37477865a2d
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java
@@ -2,11 +2,12 @@
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;
/**
 *
@@ -20,9 +21,37 @@
@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();
    }
}