提交底阿妈

master
胡锐 6 months ago
parent 2ba0fa0775
commit ce777b27ea
  1. 27
      src/app/services/account/sys-account.service.ts
  2. 9
      src/app/services/account/user.service.ts
  3. 26
      src/app/services/menu/menu.service.ts
  4. 12
      src/app/services/merchant/mer.service.ts
  5. 14
      src/app/services/role/role.service.ts
  6. 15
      src/app/services/trade/order-after-sales.service.ts
  7. 9
      src/app/services/trade/order-coupon.service.ts
  8. 6
      src/app/services/trade/order-refund.service.ts

@ -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);
});

@ -14,7 +14,8 @@ export class UserService {
* @param param
* @param callBack
*/
public restore(param: object, callBack:any) {
public restore(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.post(environment.baseUrl + 'user/restore', param).subscribe(data => {
callBack(data);
});
@ -25,7 +26,8 @@ export class UserService {
* @param param
* @param callBack
*/
public disable(param: object, callBack:any) {
public disable(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.post(environment.baseUrl + 'user/disable', param).subscribe(data => {
callBack(data);
});
@ -36,7 +38,8 @@ export class UserService {
* @param params
* @param callBack
*/
public queryUserList(params: object, callBack:any) {
public queryUserList(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.get(environment.baseUrl + 'user/queryUserList?'+ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});

@ -16,7 +16,8 @@ export class MenuService {
* @param params
* @param callBack
*/
public assignMenu(params: object, callBack:any) {
public assignMenu(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'secMenu/assignMenu', params).subscribe(data => {
callBack(data);
});
@ -27,7 +28,8 @@ export class MenuService {
* @param params
* @param callBack
*/
public delMenu(params: object, callBack:any) {
public delMenu(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'secMenu/delMenu', params).subscribe(data => {
callBack(data);
});
@ -39,7 +41,10 @@ export class MenuService {
* @param callBack
*/
public queryMenuList(callBack:any) {
this.http.post(environment.baseUrl + 'secMenu/queryMenuList', null).subscribe(data => {
let params = {
time: new Date().getTime()
};
this.http.post(environment.baseUrl + 'secMenu/queryMenuList?' + ObjectData.objectByString(params), null).subscribe(data => {
callBack(data);
});
}
@ -50,7 +55,11 @@ export class MenuService {
* @param callBack
*/
public queryMenuDetail(menuId: number, callBack:any) {
this.http.get(environment.baseUrl + 'secMenu/queryDetail?menuId=' + menuId).subscribe(data => {
let params = {
menuId: menuId,
time: new Date().getTime()
};
this.http.get(environment.baseUrl + 'secMenu/queryDetail?' + ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});
}
@ -61,9 +70,9 @@ export class MenuService {
* @param callBack
*/
public queryRoleMenuTree(roleId: string, callBack:any) {
let paramStr = '';
let paramStr = '?dt='+new Date().getTime();
if (roleId != null && roleId != '') {
paramStr = '?roleId=' + roleId;
paramStr = '&roleId=' + roleId;
}
this.http.get(environment.baseUrl + 'secMenu/queryRoleMenuTree'+paramStr).subscribe(data => {
callBack(data);
@ -76,7 +85,7 @@ export class MenuService {
* @param callBack
*/
public queryMenuTree(callBack:any) {
this.http.post(environment.baseUrl + 'secMenu/queryMenuTree', null).subscribe(data => {
this.http.post(environment.baseUrl + 'secMenu/queryMenuTree?dt='+new Date().getTime(), null).subscribe(data => {
callBack(data);
});
}
@ -101,7 +110,8 @@ export class MenuService {
* @param params
* @param callBack
*/
public editMenu(params: object, callBack:any) {
public editMenu(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'secMenu/editMenu', params).subscribe(data => {
callBack(data);
});

@ -15,7 +15,8 @@ export class MerService {
* @param params
* @param callBack
*/
public create(params: object, callBack:any) {
public create(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'mer/create', params).subscribe(data => {
callBack(data);
});
@ -26,7 +27,8 @@ export class MerService {
* @param params
* @param callBack
*/
public update(params: object, callBack:any) {
public update(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'mer/update', params).subscribe(data => {
callBack(data);
});
@ -37,7 +39,8 @@ export class MerService {
* @param params
* @param callBack
*/
public resetPwd(params: object, callBack:any) {
public resetPwd(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'mer/resetPwd', params).subscribe(data => {
callBack(data);
});
@ -59,7 +62,8 @@ export class MerService {
* @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 + 'mer/queryList?' + ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});

@ -15,7 +15,8 @@ export class RoleService {
* @param params
* @param callBack
*/
public editRole(params: object, callBack:any) {
public editRole(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'secRole/editRole', params).subscribe(data => {
callBack(data);
});
@ -26,7 +27,8 @@ export class RoleService {
* @param params
* @param callBack
*/
public delRole(params: object, callBack:any) {
public delRole(params: any, callBack:any) {
params.time = new Date().getTime();
this.http.post(environment.baseUrl + 'secRole/delRole', params).subscribe(data => {
callBack(data);
});
@ -48,7 +50,8 @@ export class RoleService {
* @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 + 'secRole/queryList?'+ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});
@ -59,7 +62,10 @@ export class RoleService {
* @param callBack
*/
public queryAllRole(callBack:any) {
this.http.get(environment.baseUrl + 'secRole/queryAllRole').subscribe(data => {
let params = {
time: new Date().getTime()
};
this.http.get(environment.baseUrl + 'secRole/queryAllRole?'+ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});
}

@ -15,7 +15,8 @@ export class OrderAfterSalesService {
* @param param
* @param callBack
*/
public queryApplyList(param: object, callBack:any) {
public queryApplyList(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.get(environment.orderUrl + 'afterSales/queryApplyList?'+ObjectData.objectByString(param)).subscribe(data => {
callBack(data);
});
@ -27,7 +28,11 @@ export class OrderAfterSalesService {
* @param callBack
*/
public queryApply(applyNo: string, callBack:any) {
this.http.get(environment.orderUrl + 'afterSales/queryApply?applyNo='+applyNo).subscribe(data => {
let params = {
applyNo: applyNo,
time: new Date().getTime()
};
this.http.get(environment.orderUrl + 'afterSales/queryApply?'+ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});
}
@ -37,7 +42,8 @@ export class OrderAfterSalesService {
* @param param
* @param callBack
*/
public audit(param: object, callBack:any) {
public audit(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.post(environment.orderUrl + 'afterSales/audit', param).subscribe(data => {
callBack(data);
});
@ -48,7 +54,8 @@ export class OrderAfterSalesService {
* @param param
* @param callBack
*/
public finish(param: object, callBack:any) {
public finish(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.post(environment.orderUrl + 'afterSales/finish', param).subscribe(data => {
callBack(data);
});

@ -15,7 +15,8 @@ export class OrderCouponService {
* @param param
* @param callBack
*/
public queryList(param: object, callBack:any) {
public queryList(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.get(environment.orderUrl + 'coupon/queryList?'+ObjectData.objectByString(param)).subscribe(data => {
callBack(data);
});
@ -27,7 +28,11 @@ export class OrderCouponService {
* @param callBack
*/
public queryDetail(orderChildNo: string, callBack:any) {
this.http.get(environment.orderUrl + 'coupon/queryDetail?orderChildNo='+orderChildNo).subscribe(data => {
let params = {
orderChildNo: orderChildNo,
time: new Date().getTime()
};
this.http.get(environment.orderUrl + 'coupon/queryDetail?'+ObjectData.objectByString(params)).subscribe(data => {
callBack(data);
});
}

@ -15,7 +15,8 @@ export class OrderRefundService {
* @param param
* @param callBack
*/
public queryList(param: object, callBack:any) {
public queryList(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.get(environment.orderUrl + 'refund/queryList?'+ObjectData.objectByString(param)).subscribe(data => {
callBack(data);
});
@ -26,7 +27,8 @@ export class OrderRefundService {
* @param param
* @param callBack
*/
public queryRefund(param: object, callBack:any) {
public queryRefund(param: any, callBack:any) {
param.time = new Date().getTime();
this.http.get(environment.orderUrl + 'refund/queryRefund?'+ObjectData.objectByString(param)).subscribe(data => {
callBack(data);
});

Loading…
Cancel
Save