|
|
@ -49,13 +49,15 @@ public interface ResourceMapper extends BaseMapper<Resource> { |
|
|
|
@Param("userId") int userId, |
|
|
|
@Param("userId") int userId, |
|
|
|
@Param("type") int type); |
|
|
|
@Param("type") int type); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* resource page |
|
|
|
* resource page |
|
|
|
* @param page page |
|
|
|
* @param page page |
|
|
|
* @param userId query all if 0, then query the authed resources |
|
|
|
* @param userId userId |
|
|
|
|
|
|
|
* @param id id |
|
|
|
* @param type type |
|
|
|
* @param type type |
|
|
|
* @param searchVal searchVal |
|
|
|
* @param searchVal searchVal |
|
|
|
* @return resource list |
|
|
|
* @return resource page |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
IPage<Resource> queryResourcePaging(IPage<Resource> page, |
|
|
|
IPage<Resource> queryResourcePaging(IPage<Resource> page, |
|
|
|
@Param("userId") int userId, |
|
|
|
@Param("userId") int userId, |
|
|
@ -94,10 +96,13 @@ public interface ResourceMapper extends BaseMapper<Resource> { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
<T> List<Resource> listAuthorizedResource(@Param("userId") int userId,@Param("resNames")T[] resNames); |
|
|
|
<T> List<Resource> listAuthorizedResource(@Param("userId") int userId,@Param("resNames")T[] resNames); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* list authorized resource |
|
|
|
* list authorized resource |
|
|
|
* @param userId userId |
|
|
|
* @param userId userId |
|
|
|
* @param resIds resource ids |
|
|
|
* @param resIds resIds |
|
|
|
|
|
|
|
* @param <T> T |
|
|
|
* @return resource list |
|
|
|
* @return resource list |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
<T> List<Resource> listAuthorizedResourceById(@Param("userId") int userId,@Param("resIds")T[] resIds); |
|
|
|
<T> List<Resource> listAuthorizedResourceById(@Param("userId") int userId,@Param("resIds")T[] resIds); |
|
|
|