You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
992 B
41 lines
992 B
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.controller;
|
|
|
|
import com.epmet.service.SysResourceService;
|
|
import com.epmet.commons.tools.security.bo.ResourceBO;
|
|
import io.swagger.annotations.Api;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 资源管理
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
@RestController
|
|
@RequestMapping("resource")
|
|
@Api(tags="资源管理")
|
|
public class SysResourceController {
|
|
@Autowired
|
|
private SysResourceService sysResourceService;
|
|
|
|
/**
|
|
* 获取所有资源列表
|
|
*/
|
|
@GetMapping("list")
|
|
public List<ResourceBO> list(){
|
|
return sysResourceService.getResourceList();
|
|
}
|
|
}
|
|
|