import { Request } from 'utils' ; export const requestSwagger = < T > ( item ) : Promise < T > => { const opts = { url : '/share-api/getapi' , method : 'POST' , notBasePath : true , params : { urls : item . url } } ; return Request ( opts ) ; } ; export const getSwaggerApiConfig = < T > ( ) : Promise < T > => { const opts = { url : '/share-api/list' , params : { password : sessionStorage . getItem ( 'password' ) || '' } , notBasePath : true } ; return Request ( opts ) ; } ; export const updateSwaggerApiConfig = < T > ( params ) : Promise < T > => { const opts = { url : '/share-api/update' , method : 'POST' , params , notBasePath : true } ; return Request ( opts ) ; } ;