package com.jwipc.sys.controller.pc;

import com.jwipc.page.PageView;
import com.jwipc.sys.logic.EmailLogLogic;
import com.jwipc.sys.model.query.EmailLogQuery;
import com.jwipc.sys.model.query.FactoryQuery;
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 + "/emailLog/rest")
@RequiredArgsConstructor
public class EmailLogRestController {
    private final EmailLogLogic emailLogLogic;

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

}
