diff --git a/app/citizen-frontend/src/api/auth.ts b/app/citizen-frontend/src/api/auth.ts index 250b397..41e056a 100644 --- a/app/citizen-frontend/src/api/auth.ts +++ b/app/citizen-frontend/src/api/auth.ts @@ -30,7 +30,7 @@ export function login( .json(); } -/** 註冊帳號並建立完整個人資料。 */ +/** 使用手機門號、密碼與個資同意狀態註冊帳號。 */ export function register(request: RegisterRequest): Promise { return api.post("v1/auth/register", { json: request }).json(); } diff --git a/app/citizen-frontend/src/api/types.ts b/app/citizen-frontend/src/api/types.ts index ffea34c..a025653 100644 --- a/app/citizen-frontend/src/api/types.ts +++ b/app/citizen-frontend/src/api/types.ts @@ -113,10 +113,12 @@ export interface Profile extends ProfileRequest { updatedAt: string; } -/** 註冊請求:建立帳號並同時建立完整個人資料。 */ -export interface RegisterRequest extends ProfileRequest { +/** 註冊請求:僅建立帳號,個人資料由後續流程另行保存。 */ +export interface RegisterRequest { phone: string; password: string; + consent: boolean; + consentVersion: ConsentVersion; } /** 登入請求。 */ diff --git a/app/citizen-frontend/src/pages/register.vue b/app/citizen-frontend/src/pages/register.vue index a99beca..1c64e28 100644 --- a/app/citizen-frontend/src/pages/register.vue +++ b/app/citizen-frontend/src/pages/register.vue @@ -30,7 +30,6 @@ v-model="form.phone" class="mb-3" color="primary" - hint="手機門號註冊後不可由個人資料修改" label="手機號碼" persistent-hint type="tel" @@ -59,15 +58,15 @@ - + /> --> - + - + /> --> - +