Refactor UUID generation, remove unused logger and encryption utilities, and clean up request handling
- Updated `generateUUID` function for improved readability and performance. - Deleted `logger.ts`, `other.ts`, `request.ts`, `storage.ts`, `tansParams.ts`, and `validate.ts` as they were no longer needed. - Simplified TypeScript configuration by removing unnecessary paths and aliases. - Enhanced Vite configuration for better project structure and maintainability.
This commit is contained in:
@@ -1,59 +0,0 @@
|
||||
/* eslint-disable */
|
||||
// @ts-ignore
|
||||
import request from '@utils/request';
|
||||
|
||||
import * as API from './types';
|
||||
|
||||
/** 绑定渠道账号 绑定渠道账号绑定渠道账号 POST /hotelStaff/configChannel/binding */
|
||||
export function hotelStaffConfigChannelBindingUsingPost({
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
body: API.PcConfigChannel;
|
||||
options?: { [key: string]: unknown };
|
||||
}) {
|
||||
return request<API.RBoolean>('/hotelStaff/configChannel/binding', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 创建账号渠道 创建账号渠道创建账号渠道 POST /hotelStaff/configChannel/createPcConfigChannel */
|
||||
export function hotelStaffConfigChannelCreatePcConfigChannelUsingPost({
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
body: API.PcConfig;
|
||||
options?: { [key: string]: unknown };
|
||||
}) {
|
||||
return request<API.RBoolean>(
|
||||
'/hotelStaff/configChannel/createPcConfigChannel',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询配置与渠道关系列表 查询配置与渠道关系列表查询配置与渠道关系列表 POST /hotelStaff/configChannel/pageList */
|
||||
export function hotelStaffConfigChannelPageListUsingPost({
|
||||
options,
|
||||
}: {
|
||||
options?: { [key: string]: unknown };
|
||||
}) {
|
||||
return request<API.RListPcConfigChannel>(
|
||||
'/hotelStaff/configChannel/pageList',
|
||||
{
|
||||
method: 'POST',
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user