fix swagger

This commit is contained in:
2026-01-18 19:07:41 +08:00
parent 20ed44aa74
commit 7d3915aae2
319 changed files with 7888 additions and 4559 deletions

View File

@@ -0,0 +1,33 @@
import request from "../../http.js";
import { type LekeApiUserV1SubscribeListRes, type DeepRequired } from "../../interface";
import { type AxiosRequestConfig } from "axios";
/**
* Subscribe List
* /api/subscribe/list
*/
export function getApiSubscribeList(params: GetApiSubscribeListParams, config?: AxiosRequestConfig) {
const paramsInput = {
page: params.page,
pageSize: params.pageSize,
total: params.total,
userId: params.userId,
status: params.status,
followId: params.followId,
};
return request.get<DeepRequired<LekeApiUserV1SubscribeListRes>>(`/api/subscribe/list`, {
params: paramsInput,
...config,
});
}
export interface GetApiSubscribeListParams {
page?: number;
pageSize?: number;
total?: number;
userId: number;
/** 状态1=关注中 0=取消关注 */
status?: number;
/** 被关注的用户ID */
followId?: number;
}