Files
TrangleAgent/Frontend/src/api/controller/Subscribe/getApiSubscribeList.ts
2026-01-18 19:07:41 +08:00

34 lines
952 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}