import { API } from "../config/cgi-config" ; import { ICommonResp , IRequestOption } from "./common" ; import { request } from "../utils/request/index" ; export interface IGetInfoReq { id : string ; } export interface IMyInfo { name : string ; phone : string ; email : string ; } export interface IGetInfoResp { info : IMyInfo ; } export default async function getInfo ( req , options ? ) { const resp = await request ( API . getInfo , req , options ) ; return resp . data ; }