1
This commit is contained in:
@@ -163,6 +163,29 @@ class PlaAccountServer {
|
||||
batchParseLocation(ids) {
|
||||
return window.framework.http.post('/pla_account/batchParseLocation', { ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查账号授权状态
|
||||
* @param {Object} param - 参数对象
|
||||
* @param {Number|String} param.id - 账号ID(可选)
|
||||
* @param {String} param.sn_code - 设备SN码(可选)
|
||||
* @returns {Promise}
|
||||
*/
|
||||
checkAuthorization(param) {
|
||||
return window.framework.http.post('/account/check-authorization', param)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新账号授权信息
|
||||
* @param {Object} param - 参数对象
|
||||
* @param {Number|String} param.id - 账号ID
|
||||
* @param {String} param.authorization_date - 授权日期(可选,不提供则使用当前时间)
|
||||
* @param {Number} param.authorization_days - 授权天数
|
||||
* @returns {Promise}
|
||||
*/
|
||||
updateAuthorization(param) {
|
||||
return window.framework.http.post('/account/update-authorization', param)
|
||||
}
|
||||
}
|
||||
|
||||
export default new PlaAccountServer()
|
||||
|
||||
Reference in New Issue
Block a user