Commit 8a50b47b authored by macro's avatar macro
Browse files

Update UmsResourceService.java

parent 98ad1506
...@@ -9,15 +9,33 @@ import java.util.List; ...@@ -9,15 +9,33 @@ import java.util.List;
* Created by macro on 2020/2/2. * Created by macro on 2020/2/2.
*/ */
public interface UmsResourceService { public interface UmsResourceService {
/**
* 添加资源
*/
int create(UmsResource umsResource); int create(UmsResource umsResource);
/**
* 修改资源
*/
int update(Long id, UmsResource umsResource); int update(Long id, UmsResource umsResource);
/**
* 获取资源详情
*/
UmsResource getItem(Long id); UmsResource getItem(Long id);
/**
* 删除资源
*/
int delete(Long id); int delete(Long id);
/**
* 分页查询资源
*/
List<UmsResource> list(Long categoryId, String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum); List<UmsResource> list(Long categoryId, String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum);
/**
* 查询全部资源
*/
List<UmsResource> listAll(); List<UmsResource> listAll();
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment