package com.jwipc.sys.controller.pc;

import com.jwipc.sys.entity.DigitalSealConfig;
import com.jwipc.sys.logic.AttachmentTypeConfigLogic;
import com.jwipc.sys.logic.DigitalSealConfigLogic;
import com.jwipc.sys.service.IDigitalSealConfigService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

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

/**
 * <p>
 * 电子印章配置表 前端控制器
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-06-19
 */
@Controller
@RequestMapping(MODULE_ROOT +"/attachmentTypeConfig")
@RequiredArgsConstructor
public class AttachmentTypeConfigPageController {

    private final AttachmentTypeConfigLogic attachmentTypeConfigLogic;
    @GetMapping("/index")
    public String index(Model  model) {
        model.addAttribute("list", attachmentTypeConfigLogic.list());
        return MODULE_ROOT + "/attachmentTypeConfig/list";
    }

}
