Every interface name must start with I, and the response type only generates data, without generating code, msg, and other fields
ts
import request from "@/utils/request";
/** Interface Description - Parameters */
export interface IApiDescParams {
/** Page Size */
pageSize: number;
}
/** Interface Description - Response */
export interface IApiDescData {}
/** Interface Description - Interface */
export const methodApiDescApi = (params: IApiDescParams) => {
return request.get<IApiDescData>("/xxx", params);
};