feat: 接入真实登录鉴权流程
This commit is contained in:
+3
-10
@@ -44,6 +44,7 @@ export interface RoleOption {
|
||||
code: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
isSystem: boolean;
|
||||
}
|
||||
|
||||
export interface Store extends StoreOption {
|
||||
@@ -68,12 +69,6 @@ export interface EmployeeListParams {
|
||||
|
||||
export interface StoreListParams {
|
||||
includeInactive?: boolean;
|
||||
status?: StoreStatus;
|
||||
keyword?: string;
|
||||
}
|
||||
|
||||
export interface RoleListParams {
|
||||
keyword?: string;
|
||||
}
|
||||
|
||||
export interface StorePayload {
|
||||
@@ -123,10 +118,8 @@ export const listStores = (params?: StoreListParams) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const listRoles = (params?: RoleListParams) => {
|
||||
return http.request<ApiResult<Role[]>>("get", `${API_PREFIX}/roles`, {
|
||||
params
|
||||
});
|
||||
export const listRoles = () => {
|
||||
return http.request<ApiResult<Role[]>>("get", `${API_PREFIX}/roles`);
|
||||
};
|
||||
|
||||
export const getStore = (id: number) => {
|
||||
|
||||
Reference in New Issue
Block a user