修复权限问题
This commit is contained in:
1 parent
2012b4cc8e
commit
d9a6808066
4 files changed
+7
-1
No files matched your search
+2
@@ -3,6 +3,7 @@ package com.bsd.pjcloud.admin.api.feign;
|
||||
import com.bsd.pjcloud.admin.api.entity.SysDictItem;
|
||||
import com.bsd.pjcloud.common.core.constant.ServiceNameConstants;
|
||||
import com.bsd.pjcloud.common.core.util.R;
|
||||
import com.bsd.pjcloud.common.feign.annotation.NoToken;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
@@ -24,6 +25,7 @@ public interface RemoteDictService {
|
||||
* @return 同类型字典
|
||||
*/
|
||||
@GetMapping("/dict/type/{type}")
|
||||
@NoToken
|
||||
R<List<SysDictItem>> getDictByType(@PathVariable("type") String type);
|
||||
|
||||
}
|
||||
+2
-1
@@ -189,7 +189,8 @@ public interface RemoteUserService {
|
||||
R<List<SysUser>> getLikeNameOrByMobileScope(@RequestParam(value = "name", required = false) String name,
|
||||
@RequestParam(value = "mobile", required = false) String mobile);
|
||||
|
||||
@GetMapping("/get-name-or-mobile")
|
||||
@NoToken
|
||||
@GetMapping("/user/get-name-or-mobile")
|
||||
R<List<UserDeptSimpleInfo>> getUserByNameOrMobile(@RequestParam("keyword") String keyword);
|
||||
|
||||
}
|
||||
+2
@@ -32,6 +32,7 @@ import com.bsd.pjcloud.common.core.util.R;
|
||||
import com.bsd.pjcloud.common.excel.annotation.ResponseExcel;
|
||||
import com.bsd.pjcloud.common.log.annotation.SysLog;
|
||||
import com.bsd.pjcloud.common.security.annotation.HasPermission;
|
||||
import com.bsd.pjcloud.common.security.annotation.Inner;
|
||||
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
@@ -105,6 +106,7 @@ public class SysDictController {
|
||||
* @param type 类型
|
||||
* @return 同类型字典
|
||||
*/
|
||||
@Inner
|
||||
@GetMapping("/type/{type}")
|
||||
@Cacheable(value = CacheConstants.DICT_DETAILS, key = "#type", unless = "#result.data.isEmpty()")
|
||||
public R<List<SysDictItem>> getDictByType(@PathVariable String type) {
|
||||
|
||||
+1
@@ -120,6 +120,7 @@ public class SysUserController {
|
||||
return R.ok(userService.findUserInfo(user));
|
||||
}
|
||||
|
||||
@Inner
|
||||
@GetMapping("/get-name-or-mobile")
|
||||
public R<List<UserDeptSimpleInfo>> getUserByNameOrMobile(@RequestParam("keyword") String keyword) {
|
||||
List<SysUser> users = userService.list(
|
||||
|
||||
Reference in new issue
Block a user