feat: 初始提交
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import webClient from "@/service/web-client"
|
||||
import type { QueryPositionRequest } from "@/types/web/request"
|
||||
import type { PageResponse } from "@/types/web/response"
|
||||
import type { Position } from "@/types/entity"
|
||||
|
||||
export async function fetchPositions(request: QueryPositionRequest): Promise<PageResponse<Position>> {
|
||||
const { data } = await webClient.get<PageResponse<Position>>("/positions")
|
||||
return data
|
||||
}
|
||||
Reference in New Issue
Block a user