You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
785 B
44 lines
785 B
|
1 month ago
|
/**
|
||
|
|
* 租户服务
|
||
|
|
* 处理租户相关的 API 请求
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { request } from '@/utils/network/api';
|
||
|
|
// import type { User, UpdateProfileFormData } from '@/schemas/user';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* API 响应接口
|
||
|
|
*/
|
||
|
|
interface ApiResponse<T = any> {
|
||
|
|
code: number;
|
||
|
|
message: string;
|
||
|
|
data: T;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* tenant 服务类
|
||
|
|
*/
|
||
|
|
class TenantService {
|
||
|
|
/**
|
||
|
|
* 获取平台信息
|
||
|
|
*/
|
||
|
|
getPlatformData(params?: Record<string, any>): Promise<ApiResponse> {
|
||
|
|
const data = {
|
||
|
|
language: '0',
|
||
|
|
...params
|
||
|
|
};
|
||
|
|
return request.post('/v2', data, {
|
||
|
|
headers: {
|
||
|
|
cmdId: 371130,
|
||
|
|
headerType: 1,
|
||
|
|
apiName: 'getPlatformData',
|
||
|
|
tid: '',
|
||
|
|
},
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 导出单例
|
||
|
|
export const tenantService = new TenantService();
|
||
|
|
export default tenantService;
|