import request, { Response } from '~/api/request';

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);
  },
};
