Methods
(static) getKeys() → {Promise.<ResponseModel>}
获取住户所有钥匙
Example
zghl.getKeysManager().getKeys().then(function(){
console.log(response)
})
Returns:
-
Type
-
Promise.<ResponseModel>
(static) searchZones(option) → {Promise}
搜索小区
Example
zghl.getKeysManager().searchZones({
page: 1,
size: 10,
project_name: '智国小区'
}).then(function(){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
project_name |
String
|
小区名字,支持模糊搜索 |
page |
Number
|
当前页码 |
size |
Number
|
每页条数 |
|
Returns:
-
Type
-
Promise
(static) getBuildings(option) → {Promise}
获取小区楼栋
Example
zghl.getKeysManager().getBuildings({
page: 1,
size: 10,
project_id: 'dae8d14b735277e358869124dcbb204f'
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
page |
Number
|
当前页码 |
size |
Number
|
每页条数 |
project_id |
String
|
小区uid |
|
Returns:
-
Type
-
Promise
(static) getRooms(option) → {Promise}
获取楼栋下房间
Example
zghl.getKeysManager().getRooms({
page: 1,
size: 10,
building_id: 'dae8d14b735277e358869124dcbb204f'
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
page |
Number
|
当前页码 |
size |
Number
|
每页条数 |
building_id |
String
|
楼栋uid |
|
Returns:
-
Type
-
Promise
(static) applyRoom(data) → {Promise}
提交申请房间
Example
zghl.getKeysManager().applyRoom({
record_type: 1,
record_identity: 1,
record_remark: '暂无备注',
user_realname: '刘备',
user_id_card: '532126198209214351',
project_id: 'dae8d14b735277e358869124dcbb204f',
building_id: 'dae8d14b735277e358869124dcbb204f',
room_id: 'dae8d14b735277e358869124dcbb204f',
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
data |
Object
|
Properties
| Name |
Type |
Description |
record_type |
Number
|
申请类型,1:申请房屋 2:续期 |
record_identity |
Number
|
身份: 1:业主; 2:租客; 3:住户 |
record_remark |
String
|
申请备注 |
user_realname |
String
|
住户真实姓名 |
user_id_card |
String
|
住户身份证号码 |
project_id |
String
|
申请的小区uid |
building_id |
String
|
申请的楼栋uid |
room_id |
String
|
申请的房间uid |
|
Returns:
-
Type
-
Promise
(static) getApplyRecords(option) → {Promise}
获取住户申请记录
Example
zghl.getKeysManager().getApplyRecords({
page: 1,
size: 10
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
page |
Number
|
当前页码 |
size |
Number
|
每页条数 |
|
Returns:
-
Type
-
Promise
(static) openDoor(option) → {Promise}
开门
Example
zghl.getKeysManager().openDoor({
guid: 'dae8d14b735277e358869124dcbb204f'
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
guid |
Number
|
门禁guid |
|
Returns:
-
Type
-
Promise
(static) getUploadToken(option) → {Promise}
获取上传token
Example
zghl.getKeysManager().getUploadToken({
fileName: 'logo.png'
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
fileName |
String
|
上传文件名 |
|
Returns:
-
Type
-
Promise
(static) getDownloadUrl(option) → {Promise}
获取下载url
Example
zghl.getKeysManager().getDownloadUrl({
fileName: 'logo.png'
}).then(function(response){
console.log(response)
})
Parameters:
| Name |
Type |
Description |
option |
Object
|
Properties
| Name |
Type |
Description |
fileName |
String
|
上传文件名 |
|
Returns:
-
Type
-
Promise