package api import ( "net/http" "atlas9.dev/c/core" ) func AccountApi(mux *http.ServeMux, impl *AccountImpl) { mux.HandleFunc("POST /Account.Register", impl.Register) mux.HandleFunc("POST /Account.Verify", impl.Verify) mux.HandleFunc("POST /Account.ResendVerification", impl.ResendVerification) mux.HandleFunc("POST /Account.RequestPasswordReset", impl.RequestPasswordReset) mux.HandleFunc("POST /Account.ResetPassword", impl.ResetPassword) } type Account_RegisterReq struct { Email string Password string } type Account_RegisterRes struct { UserID core.ID } type Account_VerifyReq struct { Token string } type Account_ResendVerificationReq struct { Email string } type Account_RequestPasswordResetReq struct { Email string } type Account_ResetPasswordReq struct { Token string Password string } func (r *Account_RegisterReq) Prepare() error { return nil } func (r *Account_VerifyReq) Prepare() error { return nil } func (r *Account_ResendVerificationReq) Prepare() error { return nil } func (r *Account_RequestPasswordResetReq) Prepare() error { return nil } func (r *Account_ResetPasswordReq) Prepare() error { return nil }