| | |
| | | @ApiOperation(value = "小程序登陆方式", notes = "小程序端") |
| | | @GetMapping("/wxLogin") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "code", value = "微信code", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "recId", value = "分享码", required = false) |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "code", value = "微信code", required = true) |
| | | }) |
| | | public ApiResponse<AccountResponse> wxLogin(@RequestParam String code, Integer recId) { |
| | | return ApiResponse.success(memberService.wxLogin(code,recId)); |
| | | public ApiResponse<AccountResponse> wxLogin(@RequestParam String code) { |
| | | return ApiResponse.success(memberService.wxLogin(code)); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "绑定手机号", notes = "小程序端") |
| | | @PostMapping("/wxPhone") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse<AccountResponse> wxPhone(@Valid @RequestBody WxPhoneRequest wxPhoneRequest) { |
| | | return ApiResponse.success(memberService.wxPhone(wxPhoneRequest)); |
| | | } |
| | | |
| | | @ApiOperation(value = "测试登陆接口", notes = "小程序端") |
| | |
| | | return ApiResponse.success(memberService.wxLoginTest(memberId)); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "绑定手机号", notes = "小程序端") |
| | | @PostMapping("/wxPhone") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse wxLogin(@Valid @RequestBody WxPhoneRequest wxPhoneRequest) { |
| | | wxPhoneRequest.setMemberId(getMemberId()); |
| | | memberService.wxPhone(wxPhoneRequest); |
| | | return ApiResponse.success("绑定成功"); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "更新用户信息", notes = "小程序端") |