package com.xxfc.platform.universal.controller;




import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;

import com.xxfc.platform.universal.biz.WeixinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


/**
 * 用户
 */
@RestController
@RequestMapping("info")
public class UserInfoController {


    @Autowired
    WeixinService weixinService;


    @RequestMapping(value = "getOpenId", method = RequestMethod.GET) //匹配的是href中的download请求
    public ObjectRestResponse sendSms(HttpServletRequest request) throws Exception {
        return ObjectRestResponse.succ(weixinService.getSession(request));
    }

}

