package com.jwipc.inquiry.controller;

import com.jwipc.security.LoginUtil;
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.inquiry.constant.ModuleConst.MODULE_ROOT;

/**
 * @author shenyang.ou
 * @date 2024/2/28 12:13
 * @desc
 */
@Controller
@RequestMapping(MODULE_ROOT + "/price")
@RequiredArgsConstructor
public class PriceInfoPageController {
    @GetMapping("/index")
    public String index(Model model) {
        model.addAttribute("userName", LoginUtil.getName());
        return MODULE_ROOT + "/price/list";
    }
}
