This commit is contained in:
nyoung 2024-09-14 11:51:06 +08:00
parent 44feab39e2
commit 5222132678
3 changed files with 26 additions and 4 deletions

View File

@ -69,7 +69,7 @@ public class AppSwiperController extends BaseController
/** /**
* 查询请填写功能名称列表 * 查询请填写功能名称列表
*/ */
@PreAuthorize("@ss.hasPermi('system:swiper:list')")
@GetMapping("/system/appSwiper/list") @GetMapping("/system/appSwiper/list")
public TableDataInfo list(AppSwiper appSwiper) public TableDataInfo list(AppSwiper appSwiper)
{ {
@ -81,7 +81,7 @@ public class AppSwiperController extends BaseController
/** /**
* 导出请填写功能名称列表 * 导出请填写功能名称列表
*/ */
@PreAuthorize("@ss.hasPermi('system:swiper:export')")
@PostMapping("/system/appSwiper/export") @PostMapping("/system/appSwiper/export")
public void export(HttpServletResponse response, AppSwiper appSwiper) public void export(HttpServletResponse response, AppSwiper appSwiper)
{ {
@ -93,7 +93,7 @@ public class AppSwiperController extends BaseController
/** /**
* 获取请填写功能名称详细信息 * 获取请填写功能名称详细信息
*/ */
@PreAuthorize("@ss.hasPermi('system:swiper:query')")
@GetMapping(value = "/system/appSwiper/{swiperId}") @GetMapping(value = "/system/appSwiper/{swiperId}")
public CommonResult getInfo(@PathVariable("swiperId") Long swiperId) public CommonResult getInfo(@PathVariable("swiperId") Long swiperId)
{ {
@ -103,7 +103,7 @@ public class AppSwiperController extends BaseController
/** /**
* 新增请填写功能名称 * 新增请填写功能名称
*/ */
@PreAuthorize("@ss.hasPermi('system:swiper:add')")
@PostMapping("/system/appSwiper/add") @PostMapping("/system/appSwiper/add")
public CommonResult add(@RequestBody AppSwiper appSwiper) public CommonResult add(@RequestBody AppSwiper appSwiper)
{ {

View File

@ -161,6 +161,27 @@ public class SysLoginController {
authLoginReqVO.setPassword(loginBody.getPassword()); authLoginReqVO.setPassword(loginBody.getPassword());
return success(loginService.login(authLoginReqVO)); return success(loginService.login(authLoginReqVO));
} }
/**
* 登录方法
*
* @param loginBody 登录信息
* @return 结果
*/
@PostMapping("/loginJcApp")
public CommonResult loginJcApp(@RequestBody LoginBody loginBody) throws Exception {
String userName = loginBody.getUsername();
AdminUserDO user = userService.getUserByUsername(userName);
if (ObjectUtil.isEmpty(user)) {
return error(CommonErrorCodeConstants.LOGIN_ACCOUNT_NOT_EXIST);
}
AuthLoginReqVO authLoginReqVO = new AuthLoginReqVO();
authLoginReqVO.setUsername(loginBody.getUsername());
authLoginReqVO.setPassword(loginBody.getPassword());
return success(loginService.login(authLoginReqVO));
}
/** /**
* 司机登录方法 * 司机登录方法
* *

View File

@ -224,6 +224,7 @@ yudao:
- /websocket/** - /websocket/**
- /admin-api/rescue/wxLoginRescue - /admin-api/rescue/wxLoginRescue
- /admin-api/rescue/wxLoginJc - /admin-api/rescue/wxLoginJc
- /admin-api/rescue/loginJcApp
websocket: websocket:
enable: true # websocket的开关 enable: true # websocket的开关
path: /infra/ws # 路径 path: /infra/ws # 路径