package cn.iocoder.yudao.module.system.controller.app.user;

import cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.system.service.social.SocialClientService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.ibatis.annotations.Param;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "微信小程序 - 用户")
@RestController
@RequestMapping("/system/user")
@Validated
public class MiniAppUserController {

//    @Resource
//    private SocialClientService socialClientService ;
//
//    @PostMapping("/getWxMaPhoneNumberInfo")
//    @Operation(summary = "获取微信授权手机号")
//    public CommonResult<WxMaPhoneNumberInfo> getWxMaPhoneNumberInfo(@Param("userType")Integer userType, @Param("phoneCode")String phoneCode) {
//        WxMaPhoneNumberInfo getWxMaPhoneNumberInfo = socialClientService.getWxMaPhoneNumberInfo(userType,phoneCode) ;
//        return success(getWxMaPhoneNumberInfo);
//    }

}
