package cn.com.poc.thirdparty.resource.demand.dgTools.rest.impl;

import cn.com.poc.thirdparty.resource.demand.dgTools.rest.AuthorizationRest;
import cn.com.poc.thirdparty.resource.demand.dgTools.service.AuthorizationService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Roger Wu
 */
@Component
public class AuthorizationRestImpl implements AuthorizationRest {

    @Resource
    private AuthorizationService authorizationService;


    @Override
    public String applicationAuthorization() throws Exception {
        return authorizationService.applicationAuthorization();
    }

    /**
     * 获取中台的apptoken
     *
     * @return
     * @throws Exception
     */
    @Override
    public String getApplicationToken() throws Exception {
        return authorizationService.getApplicationToken();

    }

}
