pub async fn update_profile(
email: String,
display_name: Option<String>,
avatar_url: Option<String>,
) -> Result<UpdateProfileResponse, ServerFnError>Expand description
更新当前登录用户的资料(邮箱 / 显示名称 / 头像)。
校验失败或邮箱被占用返回 Ok(UpdateProfileResponse{success:false,...}),
与注册/登录的「业务拒绝走 Ok」约定一致。
Dioxus server function,注册在 /api 路径下。
§Handler information
- Method:
post - Path:
<auto>