1
This commit is contained in:
parent
44feab39e2
commit
5222132678
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 司机登录方法
|
* 司机登录方法
|
||||||
*
|
*
|
||||||
|
@ -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 # 路径
|
||||||
|
Loading…
Reference in New Issue
Block a user