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

export interface DetailsParams {
  id: number;
}

export interface DetailsResp {
  id: number;
  caseTitle?: string;
  caseAuthor?: string;
  userAccountId?: number;
  surfaceImg?: string;
  caseContents?: string;
  createTime?: string;
  updateTime?: string;
}

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