Browse Source

通过id、uu、用户名查找用户忽略鉴权

chenw 7 years ago
parent
commit
5197e0ed77

+ 3 - 0
base-servers/account/account-server/src/main/java/com/usoftchina/saas/account/controller/AccountController.java

@@ -295,6 +295,7 @@ public class AccountController {
      * @return
      */
     @GetMapping(value = "/read", params = "username")
+    @IgnoreAuth
     public Result<AccountDTO> getAccount(@RequestParam(value = "username") String username) {
         Account account = getAccountByUsername(username);
         if (null == account) {
@@ -311,6 +312,7 @@ public class AccountController {
      * @return
      */
     @GetMapping(value = "/read", params = "uu")
+    @IgnoreAuth
     public Result<AccountDTO> getAccountByUu(@RequestParam(value = "uu") Long uu) {
         Account account = accountService.findByUu(uu);
         if (null == account) {
@@ -342,6 +344,7 @@ public class AccountController {
      * @return
      */
     @GetMapping("/read/{id}")
+    @IgnoreAuth
     public Result<AccountDTO> getAccountById(@PathVariable Long id) {
         Account account = accountService.findByPrimaryKey(id);
         if (null == account) {