- 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.
22 lines
556 B
TypeScript
22 lines
556 B
TypeScript
//
|
|
/* eslint-disable */
|
|
import request from "@workspace/ui/lib/request";
|
|
|
|
/** Query announcement GET /v1/public/announcement/list */
|
|
export async function queryAnnouncement(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.QueryAnnouncementParams,
|
|
options?: { [key: string]: any }
|
|
) {
|
|
return request<API.Response & { data?: API.QueryAnnouncementResponse }>(
|
|
"/api/v1/public/announcement/list",
|
|
{
|
|
method: "GET",
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
}
|
|
);
|
|
}
|