package org.jeecg.modules.api.studytourController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.api.bean.PageBean;
import org.jeecg.modules.api.service.ImageService;
import org.jeecg.modules.studytourImage.entity.StudytourImage;
import org.jeecg.modules.studytourImage.entity.StudytourImageContent;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags="图片直播-相关接口")
@RestController
@RequestMapping("/studytour/image")
@Slf4j
public class ImageController {

    /******************************************************************************************************************/
    //配置信息
    @Resource
    private ImageService imageService;
    /******************************************************************************************************************/

    @ApiOperation(value="图片直播-查询图片直播列表", notes="图片直播-查询图片直播列表")
    @RequestMapping(value = "/queryImageList", method = {RequestMethod.GET})
    public Result<?> queryImageList(PageBean pageBean){
        return imageService.queryImageList(pageBean);
    }


    @ApiOperation(value="图片直播-新增图片直播信息", notes="图片直播-新增图片直播信息")
    @RequestMapping(value = "/addImage", method = {RequestMethod.GET})
    public Result<?> addImage(@RequestHeader("X-Access-Token") String token, StudytourImage studytourImage){
        return Result.OK("接口暂未处理");
    }


    @ApiOperation(value="图片直播-查询图片直播内容列表", notes="图片直播-查询图片直播内容列表")
    @RequestMapping(value = "/queryImageContentList", method = {RequestMethod.GET})
    public Result<?> queryImageContentList(String imageId, PageBean pageBean){
        return imageService.queryImageContentList(imageId, pageBean);
    }

    @ApiOperation(value="图片直播-新增图片直播内容信息", notes="图片直播-新增图片直播内容信息")
    @RequestMapping(value = "/addImageContent", method = {RequestMethod.GET})
    public Result<?> addImageContent(@RequestHeader("X-Access-Token") String token, StudytourImageContent studytourImageContent){
        return Result.OK("接口暂未处理");
    }

    @ApiOperation(value="图片直播-标记有我", notes="图片直播-标记有我")
    @RequestMapping(value = "/queryMarkmeList", method = {RequestMethod.GET})
    public Result<?> queryMarkmeList(@RequestHeader("X-Access-Token") String token, String imagePath){
        return Result.OK("接口暂未处理");
    }

}
