|
@@ -9,15 +9,33 @@ import java.util.List;
|
|
|
* Created by macro on 2020/2/2.
|
|
|
*/
|
|
|
public interface UmsResourceService {
|
|
|
+ /**
|
|
|
+ * 添加资源
|
|
|
+ */
|
|
|
int create(UmsResource umsResource);
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改资源
|
|
|
+ */
|
|
|
int update(Long id, UmsResource umsResource);
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取资源详情
|
|
|
+ */
|
|
|
UmsResource getItem(Long id);
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除资源
|
|
|
+ */
|
|
|
int delete(Long id);
|
|
|
|
|
|
+ /**
|
|
|
+ * 分页查询资源
|
|
|
+ */
|
|
|
List<UmsResource> list(Long categoryId, String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum);
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询全部资源
|
|
|
+ */
|
|
|
List<UmsResource> listAll();
|
|
|
}
|