interface UserInfoData {
  corpinfoId: string;
  corpinfoName: string;
  departmentId: string;
  departmentName: string;
  id: string;
  name: string;
  postId: string;
  postName: string;
  userId: string;
  username: string;
  [key: string]: any;
}

export type getUserInfoFunction = () => Promise<UserInfoData>;

/**
 * 获取用户信息
 */
export default function useGetUserInfo(returnType: "array"): [boolean, getUserInfoFunction];
export default function useGetUserInfo(returnType?: "object"): { loading: boolean; getUserInfo: getUserInfoFunction };
