whywhyo
2023-10-06 bd0871adf2e072aef8176f1e71a8cb89f28a544b
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
package com.ruoyi.web.controller.zhang;
 
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.service.ZfRoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @Author Jinquan_Ou
 * @Description
 * @Date 2023-07-14 14:44
 * @Version 1.0.0
 **/
@RestController
@RequestMapping("/role")
public class ZfRoleController {
 
    @Resource
    private ZfRoleService zfRoleService;
 
    @GetMapping("/all")
    public AjaxResult getAllRole(){
        return AjaxResult.success(zfRoleService.list());
    }
}