package cn.ey.biz.module.system.api.i18n;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.i18n.dto.I18nDTO;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - 多语言化")
public interface I18nApi {

    String PREFIX = ApiConstants.PREFIX + "/i18n";

    @PostMapping(PREFIX + "/import")
    @ApiOperation("多语言数据导入")
    R<?> importI18n(@RequestBody List<I18nDTO> i18ns);

}
