db867dcbe5
Deploy to Staging / deploy (push) Has been cancelled
Conflict detector / main (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Issue Manager / issue-manager (push) Has been cancelled
22 lines
445 B
TypeScript
22 lines
445 B
TypeScript
// 注意:`PrivateService` 仅在为本地环境生成客户端时可用
|
|
import { OpenAPI, PrivateService } from "../../src/client"
|
|
|
|
OpenAPI.BASE = `${process.env.VITE_API_URL}`
|
|
|
|
export const createUser = async ({
|
|
email,
|
|
password,
|
|
}: {
|
|
email: string
|
|
password: string
|
|
}) => {
|
|
return await PrivateService.createUser({
|
|
requestBody: {
|
|
email,
|
|
password,
|
|
is_verified: true,
|
|
full_name: "Test User",
|
|
},
|
|
})
|
|
}
|