|
@@ -1,11 +1,12 @@
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
-import { PageParams, ListGetResultModel, DelParams } from './model';
|
|
|
+import { PageParams, ListGetResultModel, DelParams, roleParams } from './model';
|
|
|
import { Result } from '/#/axios';
|
|
|
|
|
|
enum Api {
|
|
|
pageList = '/zfb-api/zfb/shop/sys/user/staffList',
|
|
|
preDel = '/zfb-api/zfb/shop/sys/user/preDeleteStaff',
|
|
|
roleList = '/zfb-api/zfb/shop/sys/user/roleList',
|
|
|
+ getRoleListByParam = '/zfb-api/zfb/shop/sys/user/getRoleListByParam',
|
|
|
staffSave = '/zfb-api/zfb/shop/sys/user/staffSave',
|
|
|
update = '/zfb-api/zfb/shop/sys/user/update',
|
|
|
checkUser = '/zfb-api/zfb/user/checkUserExists',
|
|
@@ -56,6 +57,15 @@ export const preDelApi = (params: number) =>
|
|
|
ignoreCancelToken: true,
|
|
|
},
|
|
|
});
|
|
|
+export const getRoleListByParam = (params: roleParams) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.getRoleListByParam,
|
|
|
+ params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
export const roleLIstApi = (params) =>
|
|
|
defHttp.post<Result>({
|
|
|
url: Api.roleList,
|