5 changed files with 131 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||
package org.nl.wms.pda.authorization.controller; |
|||
|
|||
import cn.dev33.satoken.annotation.SaIgnore; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.nl.system.service.menu.ISysMenuService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.http.HttpStatus; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* <p> |
|||
* 手持端 控制层 |
|||
* </p> |
|||
* |
|||
* @author Liuxy |
|||
* @since 2025-06-04 |
|||
*/ |
|||
@Slf4j |
|||
@RestController |
|||
@RequestMapping("/api/pda") |
|||
public class AuthorizationsController { |
|||
@Autowired |
|||
private ISysMenuService menuService; |
|||
|
|||
@PostMapping(value = "/authority") |
|||
@SaIgnore |
|||
public ResponseEntity<Object> queryAuthority(@RequestBody Map<String, String> param) { |
|||
return new ResponseEntity<>(menuService.queryAuthority(param), HttpStatus.OK); |
|||
} |
|||
} |
Loading…
Reference in new issue