package com.yifu.cloud.plus.v1.yifu.auth.util.weixin.callback;

import com.yifu.cloud.plus.v1.yifu.auth.util.weixin.WeixinLoginTool;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 微信登录扫描回调
 */
/*@Controller*/
public class WeixinLoginCallbackController {

	/**
	 * 处理回调业务
	 * @param code 临时code
	 * @param state 数据声明
	 * @param callback 回调函数
	 * @return String
	 */
	/*@GetMapping(value = WeixinLoginConstants.LOGIN_CALLBACK)*/
	public String callback(@RequestParam String code, String state, WeixinLoginCallback callback){
		return WeixinLoginTool.login(code, callback);
	}
}
