package com.huigou.topsun.sap.sapApplication.controller;

import com.huigou.topsun.sap.sapApplication.application.SapDictionaryApplication;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.annotation.SkipAuth;
import com.huigou.uasp.client.CommonController;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.io.IOException;

/**
 * @Auther: xin.lu
 * @Date: 2024/01/09/11:24
 * @Description:
 */
@Controller
@ControllerMapping("/sapDictionary")
public class SapDictionaryController extends CommonController {
    @Resource
    private SapDictionaryApplication sapDictionaryApplication;

    @SkipAuth
    public String getSapDictionary() throws IOException {
        sapDictionaryApplication.getSapDictionary("EKGRP");
        return success();
    }
}
