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.
 
 

41 lines
702 B

/**
* 租户服务
* 处理租户相关的 API 请求
*/
import { request } from '@/utils/network/api';
/**
* API 响应接口
*/
interface ApiResponse<T = any> {
success: string;
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',
},
});
}
}
// 导出单例
export const tenantService = new TenantService();
export default tenantService;