|
@@ -10,6 +10,7 @@ import {
|
|
|
AccountListGetResultModel,
|
|
|
RolePageListGetResultModel,
|
|
|
RoleListGetResultModel,
|
|
|
+ SaveRoleParams,
|
|
|
} from './model/systemModel';
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
// import { ContentTypeEnum } from '/@/enums/httpEnum';
|
|
@@ -29,6 +30,7 @@ enum Api {
|
|
|
|
|
|
RolePageList = '/zfb-api/zfb/shop/sys/role/list',
|
|
|
setRoleStatus = '/basic-api/system/setRoleStatus',
|
|
|
+ saveRole = '/zfb-api/zfb/shop/role/save',
|
|
|
GetAllRoleList = '/basic-api/system/getAllRoleList',
|
|
|
roleSelectList = '/zfb-api/zfb/shop/sys/role/select',
|
|
|
|
|
@@ -71,6 +73,9 @@ export const roleSelectListApi = (params?: RoleParams) =>
|
|
|
export const setRoleStatus = (id: number, status: string) =>
|
|
|
defHttp.post({ url: Api.setRoleStatus, params: { id, status } });
|
|
|
|
|
|
+export const saveRoleApi = (params: SaveRoleParams) =>
|
|
|
+ defHttp.post({ url: Api.saveRole, params: params });
|
|
|
+
|
|
|
export const isAccountExist = (account: string) =>
|
|
|
defHttp.post({ url: Api.IsAccountExist, params: { account } }, { errorMessageMode: 'none' });
|
|
|
|