mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 07:04:21 +08:00
30 lines
768 B
JavaScript
30 lines
768 B
JavaScript
// Get Instance for connection
|
|
import { BusinessDataInstance as Instance } from '@/api/ADempiere/instances.js'
|
|
|
|
// Get private access for a record
|
|
export function getPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
|
return Instance.call(this).requestGetPrivateAccess({
|
|
tableName,
|
|
recordId,
|
|
userUuid
|
|
})
|
|
}
|
|
|
|
// Lock a record for a user
|
|
export function lockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
|
return Instance.call(this).requestLockPrivateAccess({
|
|
tableName,
|
|
recordId,
|
|
userUuid
|
|
})
|
|
}
|
|
|
|
// Unlock a record from a user
|
|
export function unlockPrivateAccessFromServer({ tableName, recordId, userUuid }) {
|
|
return Instance.call(this).requestUnlockPrivateAccess({
|
|
tableName,
|
|
recordId,
|
|
userUuid
|
|
})
|
|
}
|