|
|
|
@ -16,7 +16,8 @@ export class SysAccountService { |
|
|
|
|
* @param params |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public editUser(params: object, callBack:any) { |
|
|
|
|
public editUser(params: any, callBack:any) { |
|
|
|
|
params.time = new Date().getTime(); |
|
|
|
|
this.http.post(environment.baseUrl + 'secUser/editUser', params).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
@ -27,7 +28,8 @@ export class SysAccountService { |
|
|
|
|
* @param params |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public delete(params: object, callBack:any) { |
|
|
|
|
public delete(params: any, callBack:any) { |
|
|
|
|
params.time = new Date().getTime(); |
|
|
|
|
this.http.post(environment.baseUrl + 'secUser/delete', params).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
@ -38,7 +40,8 @@ export class SysAccountService { |
|
|
|
|
* @param params |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public restore(params: object, callBack:any) { |
|
|
|
|
public restore(params: any, callBack:any) { |
|
|
|
|
params.time = new Date().getTime(); |
|
|
|
|
this.http.post(environment.baseUrl + 'secUser/restore', params).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
@ -49,7 +52,8 @@ export class SysAccountService { |
|
|
|
|
* @param params |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public disable(params: object, callBack:any) { |
|
|
|
|
public disable(params: any, callBack:any) { |
|
|
|
|
params.time = new Date().getTime(); |
|
|
|
|
this.http.post(environment.baseUrl + 'secUser/disable', params).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
@ -60,7 +64,8 @@ export class SysAccountService { |
|
|
|
|
* @param userId |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public resetPwd(param: object, callBack:any) { |
|
|
|
|
public resetPwd(param: any, callBack:any) { |
|
|
|
|
param.time = new Date().getTime(); |
|
|
|
|
this.http.post(environment.baseUrl + 'secUser/resetPwd', param).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
@ -72,7 +77,11 @@ export class SysAccountService { |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public queryDetail(userId: number, callBack:any) { |
|
|
|
|
this.http.get(environment.baseUrl + 'secUser/queryDetail?userId='+userId).subscribe(data => { |
|
|
|
|
let params = { |
|
|
|
|
userId: userId, |
|
|
|
|
time: new Date().getTime() |
|
|
|
|
}; |
|
|
|
|
this.http.get(environment.baseUrl + 'secUser/queryDetail?'+ObjectData.objectByString(params)).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -82,7 +91,8 @@ export class SysAccountService { |
|
|
|
|
* @param params |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public queryList(params: object, callBack:any) { |
|
|
|
|
public queryList(params: any, callBack:any) { |
|
|
|
|
params.time = new Date().getTime(); |
|
|
|
|
this.http.get(environment.baseUrl + 'secUser/queryList?'+ObjectData.objectByString(params)).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
@ -93,7 +103,8 @@ export class SysAccountService { |
|
|
|
|
* @param params |
|
|
|
|
* @param callBack |
|
|
|
|
*/ |
|
|
|
|
public queryLoginLogList(params: object, callBack:any) { |
|
|
|
|
public queryLoginLogList(params: any, callBack:any) { |
|
|
|
|
params.time = new Date().getTime(); |
|
|
|
|
this.http.get(environment.baseUrl + 'secUser/queryLoginLogList?'+ObjectData.objectByString(params)).subscribe(data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}); |
|
|
|
|