package com.system.controller;

import com.system.serivce.IKingDeeCommonGetService;
import com.system.transfer.kingdee.KingDeeDataListInVo;
import com.system.transfer.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author Inori
 */
@Api(tags = "金蝶查询相关")
@RestController
@RequestMapping("/api")
public class KingDeeGetController {

    @Autowired
    private IKingDeeCommonGetService kingDeeCommonGetService;


    @ApiOperation("金蝶通用查询")
    @PostMapping("/kingdee/data/list")
    public RestResponse kingDeeDataList(@RequestBody @Validated KingDeeDataListInVo inVo) {
        return kingDeeCommonGetService.kingDeeDataList(inVo);
    }


}
