package com.jwipc.sys.controller.pc;

import com.jwipc.page.PageView;
import com.jwipc.sys.logic.LoginLogLogic;
import com.jwipc.sys.logic.SapLogLogic;
import com.jwipc.sys.model.query.LoginLogQuery;
import com.jwipc.sys.model.query.SapLogQuery;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

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

/**
 * <p>
 * 系统sap日志
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-29
 */
@RestController
@RequestMapping(MODULE_ROOT + "/sapLog/rest")
@RequiredArgsConstructor
public class SapLogRestController {
    private final SapLogLogic sapLogLogic;

    /**
     * 列表
     * @param query
     * @return
     */
    @RequestMapping("/list")
    public PageView list(SapLogQuery query) {
        return sapLogLogic.findByPage(query);
    }

}
