package com.diaoyun.zion.chinafrica.controller;

import com.diaoyun.zion.chinafrica.entity.TbCfHomePageEntity;
import com.diaoyun.zion.chinafrica.service.TbCfHomePageService;
import com.diaoyun.zion.master.base.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;

/**
 * 启动页Controller
 *
 * @author lipengjun
 * @date 2019-09-16 18:21:16
 */
@Api(tags = "启动页")
@RestController
@RequestMapping("/startPage")
public class TbCfHomePageController {
    @Autowired
    private TbCfHomePageService tbCfHomePageService;

    @ApiOperation("获取启动页图片")
    @GetMapping("/img")
    public Result<List<TbCfHomePageEntity>> getStartPageImage() {
        return tbCfHomePageService.getStartPageImage();
    }

}
