| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.ruoyi.system.api.domain.dto.AppMiniRegisterDto; |
| | | import com.ruoyi.system.api.model.AppMiniLoginDto; |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | return R.ok(tokenService.createMiniToken(appMiniLoginVo)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("小程序注册") |
| | | @PostMapping("miniRegister") |
| | | public R<?> miniRegister(@RequestBody AppMiniRegisterDto appUserRegisterDto) |
| | | { |
| | | // 小程序用户登录 |
| | | AppMiniLoginVo appMiniLoginVo = sysLoginService.miniRegister(appUserRegisterDto); |
| | | // 获取登录token |
| | | return R.ok(tokenService.createMiniToken(appMiniLoginVo)); |
| | | } |
| | | |
| | | @DeleteMapping("logout") |
| | | public R<?> logout(HttpServletRequest request) |