- Changed output path for i18next configuration in admin and user apps to "public/assets/locales/{{language}}/{{namespace}}.json".
- Added new translation keys in English and Chinese for admin and user updates in tool.json files.
- Refactored SystemVersionCard component to utilize new service version checking and updating logic.
- Introduced basic service version checking and updating functions in the gateway service.
- Added typings for new API endpoints related to service version management.
- Updated Vite configuration to rewrite API paths.
- Added TypeScript error handling in various service files.
23 lines
580 B
TypeScript
23 lines
580 B
TypeScript
//
|
|
/* eslint-disable */
|
|
import request from "@workspace/ui/lib/request";
|
|
|
|
/** Check if there is a new version of the service GET /basic/check/version */
|
|
export async function basicCheckServiceVersion(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.basicCheckServiceVersionParams,
|
|
options?: { [key: string]: any }
|
|
) {
|
|
return request<{
|
|
code?: number;
|
|
data?: API.ServiceVersionResponse;
|
|
msg?: string;
|
|
}>("/basic/check/version", {
|
|
method: "GET",
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|