import { usePost, stringify, useGet } from "@/.cool"; import type { SubjectCatalogResult } from './catalog' export interface SubjectInfoResult { id?: string mainTitle?: string assistantTitle?: string content?: string subjectType?: string price?: string salePrice?: string dealNum?: string remark?: string updateUserId?: string updateUserName?: string createdUserId?: string createdUserName?: string createdTime?: string updateTime?: string interactionFlag?: boolean catalogList?: SubjectCatalogResult[] } // export function getSubjectInfoPage(parameter: any) { // return useGet>(`/subject/info/page`, parameter) // } // export function addSubjectInfo(parameter: SubjectInfoResult) { // return usePost(`/subject/info`, parameter) // } // export function updateSubjectInfo(parameter: SubjectInfoResult) { // return usePut(`/subject/info/${parameter.id}`, parameter) // } export function fetchSubjectConfigInfo(parameter: any) { return useGet(`/subject/info/config/info/${parameter.id}`) as Promise } export function fetchSubjectInfo(parameter: any) { return useGet(`/subject/info/${parameter.id}`) as Promise } // export function deleteSubjectInfos(parameter: string[]) { // return useDelete(`/subject/info`, parameter) // } // export function exportSubjectInfo(parameter: any) { // return useGet(`/subject/info/export`, parameter, { // responseType: 'blob', // headers: { // 'Content-Type': 'application/json;charset=UTF-8', // }, // }) // }