Files
TrangleAgent/Frontend/src/api/controller/Subscribe/getApiSubscribeList.ts

34 lines
952 B
TypeScript
Raw Normal View History

2026-01-18 19:07:41 +08:00
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;
}