import * as process from "process";
import type {AxiosPromise} from "axios";
import request from "@/api/request";
import type { TokenRequest } from "@/api/types"


const createToken = (tokenRequest:TokenRequest):Promise<AxiosPromise<string>> => {
    return request.post('/token', tokenRequest)
}


export default {
    createToken,  // 导出createToken接口
};