package com.vetti.web.controller.system;

import com.vetti.common.annotation.Anonymous;
import com.vetti.common.core.controller.BaseController;
import com.vetti.common.core.domain.AjaxResult;
import com.vetti.web.service.ISystemI18nGainService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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;

/**
 * 系统获取国际化信息
 *
 * @author Wangxiangshun
 */
@Api(tags ="国际化管理")
@RestController
@RequestMapping("/system/i18nGain")
public class SysI18nGainController extends BaseController {

    @Autowired
    private ISystemI18nGainService systemI18nGainService;

    /**
     * 获取国际化信息
     */
    @Anonymous
    @ApiOperation("查询国际化信息")
    @GetMapping(value = "/getInfo")
    public AjaxResult getInfo()
    {
        return AjaxResult.success(systemI18nGainService.getI18nInfo());
    }

}
