style(frontend): 统一 API 模块代码风格

- 移除所有语句末尾分号
- 统一对象属性尾随逗号格式
- 优化类型定义导入顺序
- 提升代码一致性和可读性
This commit is contained in:
ianshaw
2025-12-25 08:41:30 -08:00
parent 34183b527b
commit f79b0f0fad
21 changed files with 802 additions and 751 deletions

View File

@@ -3,8 +3,8 @@
* Handles group-related operations for regular users
*/
import { apiClient } from './client';
import type { Group } from '@/types';
import { apiClient } from './client'
import type { Group } from '@/types'
/**
* Get available groups that the current user can bind to API keys
@@ -14,12 +14,12 @@ import type { Group } from '@/types';
* @returns List of available groups
*/
export async function getAvailable(): Promise<Group[]> {
const { data } = await apiClient.get<Group[]>('/groups/available');
return data;
const { data } = await apiClient.get<Group[]>('/groups/available')
return data
}
export const userGroupsAPI = {
getAvailable,
};
getAvailable
}
export default userGroupsAPI;
export default userGroupsAPI