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());
|
}
|
}
|