// 文件上传信息
export interface UploadInfo {
  isSuccess: boolean;
  message: string;
  data: ImageInfo | undefined;
}

// 图片信息
export interface ImageInfo {
  id: string;
  url: string;
  base64: string;
  expire: string;
  file_type: string;
}

/**
 * ServiceProfile 的专属转换器
 */
export const UserProfileMapper = (raw: Record<string, Object>): ServiceProfile => {
  return {
    corpid: (raw['corpid'] as string) ?? "",
    address: (raw['kf.address'] as string) ?? ''
  };
};

// 客服信息
export interface ServiceProfile {
  corpid: string;
  address: string;
}
