34 lines
952 B
TypeScript
34 lines
952 B
TypeScript
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;
|
||
}
|