-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(session): fix some issues caused by user session design.
- Loading branch information
Showing
52 changed files
with
618 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,33 @@ | ||
import { defAbpHttp } from '/@/utils/http/abp'; | ||
import { defHttp } from '/@/utils/http/axios'; | ||
import { | ||
CacheKeys, | ||
CacheValue, | ||
CacheRefreshRequest, | ||
GetCacheKeysRequest, | ||
} from './model'; | ||
|
||
const remoteServiceName = 'CachingManagement'; | ||
const controllerName = 'Cache'; | ||
|
||
export const getKeys = (input: GetCacheKeysRequest) => { | ||
return defAbpHttp.request<CacheKeys>({ | ||
service: remoteServiceName, | ||
controller: controllerName, | ||
action: 'GetKeysAsync', | ||
params: { | ||
input: input, | ||
}, | ||
return defHttp.get<CacheKeys>({ | ||
url: '/api/caching-management/cache', | ||
params: input, | ||
}); | ||
}; | ||
|
||
export const getValue = (key: string) => { | ||
return defAbpHttp.request<CacheValue>({ | ||
service: remoteServiceName, | ||
controller: controllerName, | ||
action: 'GetValueAsync', | ||
params: { | ||
input: { | ||
key: key, | ||
} | ||
}, | ||
return defHttp.get<CacheValue>({ | ||
url: `/api/caching-management/cache?key=${key}`, | ||
}); | ||
}; | ||
|
||
export const refresh = (input: CacheRefreshRequest) => { | ||
return defAbpHttp.request<void>({ | ||
service: remoteServiceName, | ||
controller: controllerName, | ||
action: 'RefreshAsync', | ||
return defHttp.put<void>({ | ||
url: `/api/caching-management/cache/refresh`, | ||
data: input, | ||
}); | ||
}; | ||
|
||
export const remove = (key: string) => { | ||
return defAbpHttp.request<void>({ | ||
service: remoteServiceName, | ||
controller: controllerName, | ||
action: 'RemoveAsync', | ||
params: { | ||
input: { | ||
key: key, | ||
} | ||
}, | ||
return defHttp.delete<void>({ | ||
url: `/api/caching-management/cache?key=${key}`, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 6 additions & 65 deletions
71
apps/vue/src/api/openiddict/open-iddict-application/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,40 @@ | ||
import { defAbpHttp } from '/@/utils/http/abp'; | ||
import { defHttp } from '/@/utils/http/axios'; | ||
import { | ||
OpenIddictApplicationDto, | ||
OpenIddictApplicationGetListInput, | ||
OpenIddictApplicationCreateDto, | ||
OpenIddictApplicationUpdateDto, | ||
} from './model'; | ||
|
||
// export const GetAsyncById = (id: string) => { | ||
// return defAbpHttp.request<OpenIddictApplicationDto>({ | ||
// service: remoteServiceName, | ||
// controller: controllerName, | ||
// action: 'GetAsync', | ||
// uniqueName: 'GetAsyncById', | ||
// params: { | ||
// id: id, | ||
// }, | ||
// }); | ||
// }; | ||
|
||
export const get = (id: string) => { | ||
return defAbpHttp.get<OpenIddictApplicationDto>({ | ||
return defHttp.get<OpenIddictApplicationDto>({ | ||
url: `/api/openiddict/applications/${id}`, | ||
}); | ||
}; | ||
|
||
// export const GetListAsyncByInput = (input: OpenIddictApplicationGetListInput) => { | ||
// return defAbpHttp.pagedRequest<OpenIddictApplicationDto>({ | ||
// service: remoteServiceName, | ||
// controller: controllerName, | ||
// action: 'GetListAsync', | ||
// uniqueName: 'GetListAsyncByInput', | ||
// params: { | ||
// input: input, | ||
// }, | ||
// }); | ||
// }; | ||
|
||
export const getList = (input: OpenIddictApplicationGetListInput) => { | ||
return defAbpHttp.get<PagedResultDto<OpenIddictApplicationDto>>({ | ||
return defHttp.get<PagedResultDto<OpenIddictApplicationDto>>({ | ||
url: '/api/openiddict/applications', | ||
params: input, | ||
}); | ||
}; | ||
|
||
// export const CreateAsyncByInput = (input: OpenIddictApplicationCreateDto) => { | ||
// return defAbpHttp.request<OpenIddictApplicationDto>({ | ||
// service: remoteServiceName, | ||
// controller: controllerName, | ||
// action: 'CreateAsync', | ||
// uniqueName: 'CreateAsyncByInput', | ||
// data: input, | ||
// }); | ||
// }; | ||
|
||
export const create = (input: OpenIddictApplicationCreateDto) => { | ||
return defAbpHttp.post<OpenIddictApplicationDto>({ | ||
return defHttp.post<OpenIddictApplicationDto>({ | ||
url: '/api/openiddict/applications', | ||
data: input, | ||
}); | ||
}; | ||
|
||
// export const UpdateAsyncByIdAndInput = (id: string, input: OpenIddictApplicationUpdateDto) => { | ||
// return defAbpHttp.request<OpenIddictApplicationDto>({ | ||
// service: remoteServiceName, | ||
// controller: controllerName, | ||
// action: 'UpdateAsync', | ||
// uniqueName: 'UpdateAsyncByIdAndInput', | ||
// params: { | ||
// id: id, | ||
// }, | ||
// data: input, | ||
// }); | ||
// }; | ||
|
||
export const update = (id: string, input: OpenIddictApplicationUpdateDto) => { | ||
return defAbpHttp.put<OpenIddictApplicationDto>({ | ||
return defHttp.put<OpenIddictApplicationDto>({ | ||
url: `/api/openiddict/applications/${id}`, | ||
data: input, | ||
}); | ||
}; | ||
|
||
// export const DeleteAsyncById = (id: string) => { | ||
// return defAbpHttp.request<void>({ | ||
// service: remoteServiceName, | ||
// controller: controllerName, | ||
// action: 'DeleteAsync', | ||
// uniqueName: 'DeleteAsyncById', | ||
// params: { | ||
// id: id, | ||
// }, | ||
// }); | ||
// }; | ||
|
||
export const deleteById = (id: string) => { | ||
return defAbpHttp.delete<void>({ | ||
return defHttp.delete<void>({ | ||
url: `/api/openiddict/applications/${id}`, | ||
}); | ||
}; |
44 changes: 4 additions & 40 deletions
44
apps/vue/src/api/openiddict/open-iddict-authorization/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.