fix swagger
This commit is contained in:
33
Frontend/src/api/controller/Subscribe/getApiSubscribeList.ts
Normal file
33
Frontend/src/api/controller/Subscribe/getApiSubscribeList.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user