package com.diaoyun.zion.chinafrica.controller;

import com.diaoyun.zion.chinafrica.entity.TbCfContactEntity;
import com.diaoyun.zion.chinafrica.service.TbCfContactService;
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.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 联系管理Controller
 *
 * @author lipengjun
 * @date 2019-09-17 18:03:40
 */
@Api(tags = "联系方式")
@RestController
@RequestMapping("/contact")
public class TbCfContactController {
    @Autowired
    private TbCfContactService tbCfContactService;

    @ApiOperation("获取联系方式")
    @GetMapping
    public Result getContactList() {
        return tbCfContactService.getContactList();
    }

}
