package com.ruoyi.applet.contoller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Api(description = "伴宠师登录")
@RestController
@RequestMapping("/applet/login")
public class AppletLoginController {
//    @Autowired

    //1.微信授权登录接口
    //2.获取微信手机号接口
    //3.获取用户协议和隐私政策（用一个config拉取）
    // @Aonymous
//    @ApiOperation("登录接口")
//    @PostMapping("/login")
//    public ResponseEntity login(@RequestBody AppletLoginRequest appletLoginRequest){
//        Map<String,Object> hashMap = new HashMap();
//        hashMap.put("userInfo",appletLoginRequest);
//        hashMap.put("token",123);
//        return ResponseEntity.ok(hashMap);
//    }
}
