|
@@ -0,0 +1,36 @@ |
|
|
|
|
|
import request from '@/request'; |
|
|
|
|
|
import { DataDictDetaiPageReqVO, DataDictDetailVO, PageData } from '@/models'; |
|
|
|
|
|
|
|
|
|
|
|
const BASE_URL = '/admin-api/template/dict-detail'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
//获取字典详情分页数据 |
|
|
|
|
|
getPageApi(params: DataDictDetaiPageReqVO) { |
|
|
|
|
|
return request.get<PageData<DataDictDetailVO>>(`${BASE_URL}/page`, { params }); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//创建模板-数据字典详情 |
|
|
|
|
|
createApi(data: DataDictDetailVO) { |
|
|
|
|
|
return request.post<DataDictDetailVO>(`${BASE_URL}/create`, data); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//更新模板-数据字典详情 |
|
|
|
|
|
updateApi(data: DataDictDetailVO) { |
|
|
|
|
|
return request.put<DataDictDetailVO>(`${BASE_URL}/update`, data); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//删除模板-数据字典详情 |
|
|
|
|
|
deleteApi(id: number) { |
|
|
|
|
|
return request.delete<boolean>(`${BASE_URL}/delete?id=${id}`); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//获取模板-数据字典详情 |
|
|
|
|
|
getApi(id: number) { |
|
|
|
|
|
return request.get<DataDictDetailVO>(`${BASE_URL}/get?id=${id}`); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//获得模板-数据字典详情列表 |
|
|
|
|
|
getListApi(ids: string[]) { |
|
|
|
|
|
return request.get<PageData<DataDictDetailVO>>(`${BASE_URL}/list`, { params: { ids }}); |
|
|
|
|
|
}, |
|
|
|
|
|
} |