|
|
@@ -11,6 +11,7 @@ import request from '@/router/axios';
|
|
|
* @typedef {import('@/api/types/common').ItemListResponse} ItemListResponse
|
|
|
* @typedef {import('@/api/types/common').CustomerInfoData} CustomerInfoData
|
|
|
* @typedef {import('@/api/types/common').GetCustomerInfoResponse} GetCustomerInfoResponse
|
|
|
+ * @typedef {import('@/api/types/common').UnificationResponse} UnificationResponse
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
@@ -87,3 +88,20 @@ export const getCustomerInfo = async () => {
|
|
|
method: 'get'
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+/**
|
|
|
+ * U9Cloud 通用统一接口
|
|
|
+ * @returns {Promise<UnificationResponse>} 接口响应
|
|
|
+ * @description GET 无参数,返回结构示例:{ code: 500, success: false, data: null, msg: string }
|
|
|
+ * @example
|
|
|
+ * const res = await getUnification();
|
|
|
+ * if (!res.data.success) {
|
|
|
+ * console.warn(res.data.msg);
|
|
|
+ * }
|
|
|
+ */
|
|
|
+export const getUnification = async () => {
|
|
|
+ return request({
|
|
|
+ url: '/api/blade-u9cloud/api/common/unification',
|
|
|
+ method: 'get'
|
|
|
+ });
|
|
|
+};
|