KKSU
2024-12-16 8194e8114eef28008ed31eb0ac7628ef24e8ce99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package cc.mrbird.febs.mall.controller;
 
import cc.mrbird.febs.common.entity.FebsConstant;
import cc.mrbird.febs.common.utils.FebsUtil;
import cc.mrbird.febs.mall.entity.RunVip;
import cc.mrbird.febs.mall.service.IAdminRunVipService;
import lombok.RequiredArgsConstructor;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
 
@Controller("runVipView")
@RequestMapping(FebsConstant.VIEW_PREFIX + "modules/runVip")
@RequiredArgsConstructor
public class ViewRunVipController{
 
    private final IAdminRunVipService iAdminRunVipService;
    @GetMapping(value = "/runVipList")
    @RequiresPermissions("runVipList:view")
    public String runVipList() {
        return FebsUtil.view("modules/runVip/runVipList");
    }
 
    @GetMapping(value = "/vipAdd")
    public String levelAdd() {
        return FebsUtil.view("modules/runVip/vipAdd");
    }
 
    @GetMapping("/vipEdit/{id}")
    public String vipEdit(@PathVariable("id") Long id, Model model) {
        RunVip runVip = iAdminRunVipService.getBaseMapper().selectById(id);
        model.addAttribute("runVip", runVip);
        return FebsUtil.view("modules/runVip/vipEdit");
    }
 
}