package com.system.controller;

import com.system.serivce.IThirdPartyLogService;
import com.system.transfer.kingdee.ThirdPartyLogListInVo;
import com.system.transfer.kingdee.ThirdPartyLogListOutVo;
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.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Inori
 */
@Api(tags = "第三方日志")
@RestController
@RequestMapping("/api")
public class ThirdPartyLogController {

    @Autowired
    private IThirdPartyLogService thirdPartyLogService;


    @ApiOperation("第三方日志列表")
    @GetMapping("/third/party/log/list")
    public RestResponse thirdPartyLogList(@ModelAttribute @Validated ThirdPartyLogListInVo inVo) {
        ThirdPartyLogListOutVo outVo = thirdPartyLogService.thirdPartyLogList(inVo);
        return RestResponse.success(outVo);
    }


}
