package com.yh.saas.plugin.news.controller;


import com.yh.saas.plugin.news.entity.CommonNationality;
import com.yh.saas.plugin.news.service.INationalityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XinGuang
 * @since 2019-07-17
 */
@RestController
@RequestMapping("/nationality")
public class NationalityController {
	
	@Autowired
	private INationalityService nationalityService;
	
	/**
	 * 获取国家列表
	 * @return
	 */
	@GetMapping("/query/getList")
	public List<CommonNationality> getNationality(){
		return this.nationalityService.selectList(null);
		
	}

}

