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

export interface DetailsParams {
  id: number;
}
export interface DetailsResp {
  id: number;
  newsTitle?: string;
  newsAuthor?: string;
  userAccountId?: number;
  surfaceImg?: string;
  newsContents?: string;
  createTime?: string;
  updateTime?: string;
}

export default {
  // 案例详情
  details(params: DetailsParams): Promise<Response<DetailsResp>> {
    return request('/release/industry-news/details', 'get', params);
  },
};
