feat: overnight-runner 入 SDD、dev-build 全栈编排,并落地 ACC-account
将 overnight-runner skill 无前缀并入套件;dev-build 编排自测/UI/代码评审;指南左侧导航;example 实现账号能力与 progress。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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)),
|
||||
}
|
||||
Reference in New Issue
Block a user