com.garmin.controller.OAuthController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of garmin-oauth Show documentation
Show all versions of garmin-oauth Show documentation
Package garmin license, new user license to app
The newest version!
package com.garmin.controller;
import com.garmin.service.OAuthService;
import com.garmin.vo.ResponseToken;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
/**
* @Classname OAuthController
* @Description Garmin Authorized Controller
* @Date 2019/10/24 10:27
* @Created by weihua.zou
*/
@Controller
@RequestMapping(value ="/garmin")
public class OAuthController{
private final OAuthService oAuthService;
public OAuthController(OAuthService oAuthService) {
this.oAuthService = oAuthService;
}
/**
* Authorization interface, the parameter is the username
* @param account
* @return
*/
@RequestMapping("/oauth/{sid}")
public ResponseEntity