package com.jwipc.supplier.controller.pc;

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 org.springframework.web.bind.annotation.RequestParam;

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

/**
 * @author qizhicai
 * @date 2024/5/11
 * @desc
 */
@Controller
@RequestMapping(MODULE_ROOT + "/bankCategory")
@RequiredArgsConstructor
public class BankCategoryPageController {
    @GetMapping("/index")
    public String index(
                        @RequestParam(required = false, defaultValue = "") String inputBankName,
                        Model model)
    {
        model.addAttribute("openingBankName", inputBankName);
        return MODULE_ROOT + "/bank/select";
    }
}
