| | |
| | | import org.springframework.web.bind.annotation.RestController;
|
| | | import com.ruoyi.auth.form.LoginBody;
|
| | | import com.ruoyi.auth.form.RegisterBody;
|
| | | import com.ruoyi.auth.form.UnLockBody;
|
| | | import com.ruoyi.auth.service.SysLoginService;
|
| | | import com.ruoyi.common.core.domain.R;
|
| | | import com.ruoyi.common.core.utils.JwtUtils;
|
| | |
| | | sysLoginService.register(registerBody.getUsername(), registerBody.getPassword());
|
| | | return R.ok();
|
| | | }
|
| | |
|
| | | /**
|
| | | * 解锁屏幕
|
| | | */
|
| | | @PostMapping("/unlockscreen")
|
| | | public R<?> unlockScreen(@RequestBody UnLockBody unLockBody)
|
| | | {
|
| | | sysLoginService.unlock(unLockBody.getPassword());
|
| | | return R.ok();
|
| | | }
|
| | | }
|