| | |
| | | package com.ruoyi.account.controller; |
| | | |
| | | |
| | | import com.ruoyi.account.service.AppUserService; |
| | | import com.ruoyi.account.vo.*; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.core.web.page.BaseTable; |
| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/app-user") |
| | | public class AppUserController { |
| | | |
| | | @Resource |
| | | private AppUserService appUserService; |
| | | |
| | | |
| | | |
| | |
| | | @PostMapping("/appletLogin") |
| | | @ApiOperation(value = "小程序一键登录") |
| | | public AjaxResult<LoginVo> appletLogin(@RequestBody AppletLogin appletLogin){ |
| | | // todo 待完善 pu |
| | | return AjaxResult.success(); |
| | | return appUserService.appletLogin(appletLogin); |
| | | } |
| | | |
| | | |
| | |
| | | @PostMapping("/mobileLogin") |
| | | @ApiOperation(value = "手机号登录") |
| | | public AjaxResult<LoginVo> mobileLogin(@RequestBody MobileLogin mobileLogin){ |
| | | // todo 待完善 pu |
| | | return AjaxResult.success(); |
| | | return appUserService.mobileLogin(mobileLogin); |
| | | } |
| | | |
| | | |
| | |
| | | @PostMapping("/getSMSCode") |
| | | @ApiOperation(value = "获取短信验证码") |
| | | public AjaxResult getSMSCode(@RequestBody SMSCode smsCode){ |
| | | // todo 待完善 pu |
| | | return AjaxResult.success(); |
| | | return appUserService.getSMSCode(smsCode); |
| | | } |
| | | |
| | | |