| | |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping("/member") |
| | |
| | | } |
| | | return R.ok(member); |
| | | } |
| | | |
| | | /** |
| | | * 小程序登录 |
| | | */ |
| | | @InnerAuth |
| | | @PostMapping("/miniLogin") |
| | | @ApiOperation("小程序登录") |
| | | public R<AppMiniLoginVo> getMemberByCode(@RequestBody AppMiniLoginDto appMiniLoginDto) |
| | | { |
| | | AppMiniLoginVo appMiniLoginVo = memberService.getMemberByCode(appMiniLoginDto); |
| | | if(appMiniLoginVo ==null){ |
| | | return R.fail("登录失败!"); |
| | | } |
| | | return R.ok(appMiniLoginVo); |
| | | } |
| | | } |