Files
ai4se-harness-suite/example-project/containers/frontend/src/services/authService.ts
ning-inspire fc7521d6f9 feat: overnight-runner 入 SDD、dev-build 全栈编排,并落地 ACC-account
将 overnight-runner skill 无前缀并入套件;dev-build 编排自测/UI/代码评审;指南左侧导航;example 实现账号能力与 progress。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 16:56:57 +08:00

17 lines
632 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 http, { unwrap } from '@/utils/request'
import type { LoginResponse } from '@/types'
/** 鉴权相关接口(ACC)。 */
export const authService = {
/** 发送登录 / 注册验证码 */
sendSmsCode: (phone: string) => unwrap(http.post<void>('/auth/sms/send', { phone })),
/** 验证码登录或注册 */
smsLogin: (payload: { phone: string; code: string; nickname?: string }) =>
unwrap(http.post<LoginResponse>('/auth/sms/login', payload)),
/** 管理员密码登录 */
adminLogin: (payload: { phone: string; password: string }) =>
unwrap(http.post<LoginResponse>('/auth/admin/login', payload)),
}