import request, { Response } from '~/api/request';
import { Item } from '~/pages/projectInfo/components/news/api';

export interface DetailsParams {
  id: number;
}
export interface DetailsResp {
  id: number;
  tenderTitle?: string;
  tenderPrice?: number;
  tenderContent?: string;
  createTime?: string;
}

export default {
  //招标详情
  details(params: DetailsParams): Promise<Response<DetailsResp>> {
    return request('/release/tender/infoById', 'get', params);
  },
};
