package com.jwipc.sys.controller.pc;

import com.jwipc.page.PageView;
import com.jwipc.sys.logic.SapLogLogic;
import com.jwipc.sys.logic.ThirdLogLogic;
import com.jwipc.sys.model.query.SapLogQuery;
import com.jwipc.sys.model.query.ThirdLogQuery;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.jwipc.sys.constant.ModuleConst.MODULE_ROOT;

/**
 * <p>
 * 系统第三方接口日志
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-29
 */
@RestController
@RequestMapping(MODULE_ROOT + "/thirdLog/rest")
@RequiredArgsConstructor
public class ThirdLogRestController {
    private final ThirdLogLogic thirdLogLogic;
    /**
     * 列表
     * @param query
     * @return
     */
    @RequestMapping("/list")
    public PageView list(ThirdLogQuery query) {
        return thirdLogLogic.findByPage(query);
    }

    /**
     * 列表
     * @param query
     * @return
     */
    @RequestMapping("/call/list")
    public PageView callList(ThirdLogQuery query) {
        return thirdLogLogic.findCallByPage(query);
    }

}
