nsn-service-type
Version:
NSN服务类型定义组件
18 lines (14 loc) • 493 B
TypeScript
export interface OAuth2ClientUserParams {
oauth_id: string;
method?: string;
headers?: string;
body?: string;
}
export type OAuth2ClientAuthorizeUrlParams = Pick<OAuth2ClientUserParams, 'oauth_id'>
/** 系统-oauth2 服务 */
export interface OAuth2Service {
/** 获取授权服务访问地址 */
client_authorize_url: (params: OAuth2ClientAuthorizeUrlParams) => Promise<any>;
/** 获取OAuth2用户信息 */
client_user: (params: OAuth2ClientUserParams) => Promise<any>;
}