|
@@ -1,5 +1,6 @@
|
|
|
import {
|
|
|
AccountParams,
|
|
|
+ DelAccountParams,
|
|
|
DeptListItem,
|
|
|
MenuParams,
|
|
|
RoleParams,
|
|
@@ -27,7 +28,10 @@ enum Api {
|
|
|
MenuUser = '/zfb-api/zfb/shop/sys/menu/delete',
|
|
|
|
|
|
AccountList = '/zfb-api/zfb/shop/sys/user/list',
|
|
|
+ saveAccount = '/zfb-api/zfb/shop/sys/user/save',
|
|
|
+ updateAccount = '/zfb-api/zfb/shop/sys/user/update',
|
|
|
IsAccountExist = '/basic-api/system/accountExist',
|
|
|
+ deleteAccountUser = '/zfb-api/zfb/shop/sys/user/preDeleteStaff',
|
|
|
|
|
|
RolePageList = '/zfb-api/zfb/shop/sys/role/list',
|
|
|
setRoleStatus = '/basic-api/system/setRoleStatus',
|
|
@@ -45,6 +49,17 @@ enum Api {
|
|
|
export const getAccountList = (params: AccountParams) =>
|
|
|
defHttp.post<AccountListGetResultModel>({ url: Api.AccountList, params });
|
|
|
|
|
|
+export const deleteAccountUserApi = (params: DelAccountParams) =>
|
|
|
+ defHttp.post<AccountListGetResultModel>({ url: Api.deleteAccountUser, params });
|
|
|
+
|
|
|
+export const saveAccountUserApi = (params: AccountParams) =>
|
|
|
+ defHttp.post<AccountListGetResultModel>({ url: Api.saveAccount, params });
|
|
|
+
|
|
|
+export const updateAccountUserApi = (params: AccountParams) =>
|
|
|
+ defHttp.post<AccountListGetResultModel>({ url: Api.updateAccount, params });
|
|
|
+
|
|
|
+//decpored
|
|
|
+
|
|
|
export const getDeptList = (params?: DeptListItem) =>
|
|
|
defHttp.get<DeptListGetResultModel>({ url: Api.DeptList, params });
|
|
|
|