优化
This commit is contained in:
@@ -13,6 +13,7 @@ export interface MaterialInfoResp {
|
||||
createTime: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
lightLevel: string
|
||||
disabled: boolean
|
||||
photoLoadError: boolean
|
||||
}
|
||||
@@ -37,9 +38,6 @@ export function listMaterialInfo(query: MaterialInfoPageQuery) {
|
||||
return http.get<PageRes<MaterialInfoResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
interface MaterialInfoDetailResp {
|
||||
}
|
||||
|
||||
/** @desc 下载物料信息导入模板 */
|
||||
export function downloadMaterialInfoImportTemplate() {
|
||||
return http.download(`${BASE_URL}/import/template`)
|
||||
@@ -47,7 +45,7 @@ export function downloadMaterialInfoImportTemplate() {
|
||||
|
||||
/** @desc 查询物料信息详情 */
|
||||
export function getMaterialInfo(id: string) {
|
||||
return http.get<MaterialInfoDetailResp>(`${BASE_URL}/${id}`)
|
||||
return http.get<MaterialInfoResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增物料信息 */
|
||||
|
||||
Reference in New Issue
Block a user