|
|
@@ -24,31 +24,31 @@ export interface PageParam {
|
|
|
|
|
|
// 查询锁具机构-列表
|
|
|
export const listLocksetType = async (params: PageParam) => {
|
|
|
- return await request.get({ url: '/iscs/type/getIsLocksetTypePage', params })
|
|
|
+ return await request.get({ url: '/iscs/lockset-type/getLocksetTypePage', params })
|
|
|
}
|
|
|
|
|
|
// 获取锁具机构详细信息
|
|
|
-export const getLocksetTypeInfo = async (locksetTypeId: number) => {
|
|
|
+export const getLocksetTypeInfo = async (id: number) => {
|
|
|
return await request.get({
|
|
|
- url: '/iscs/type/selectIsLocksetTypeById',
|
|
|
- params: { locksetTypeId }
|
|
|
+ url: '/iscs/lockset-type/selectLocksetTypeById',
|
|
|
+ params: { id }
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// 新增锁具机构
|
|
|
export const addLocksetType = async (data: LockTypeVO) => {
|
|
|
- return await request.post({ url: '/iscs/type/insertIsLocksetType', data })
|
|
|
+ return await request.post({ url: '/iscs/lockset-type/insertLocksetType', data })
|
|
|
}
|
|
|
|
|
|
// 修改锁具机构信息
|
|
|
export const updateLocksetType = async (data: LockTypeVO) => {
|
|
|
- return await request.post({ url: '/iscs/type/updateIsLocksetType', data })
|
|
|
+ return await request.put({ url: '/iscs/lockset-type/updateLocksetType', data })
|
|
|
}
|
|
|
|
|
|
// 删除锁具机构信息
|
|
|
-export const delLocksetType = async (locksetTypeId: number) => {
|
|
|
+export const delLocksetType = async (ids: number) => {
|
|
|
return await request.post({
|
|
|
- url: '/iscs/type/deleteIsLocksetTypeByLocksetTypeIds',
|
|
|
- params: { locksetTypeIds: locksetTypeId }
|
|
|
+ url: '/iscs/lockset-type/deleteLocksetTypeList',
|
|
|
+ params: { ids: ids }
|
|
|
})
|
|
|
}
|