Skip to content

清理一下 User 类下的方法 #436

Open
@weakish

Description

@weakish

比如:

  1. 大量的 request_xxx class method 没有使用 class、instance 信息,直接发一个请求,其实是 static method。这些方法中,部分应该改成 static method,部分应该改成实例方法,并更新实例的相应字段,比如 emailVerified 之类。
  2. login 是实例方法,login_with_mobile_phone 却是 class method,这样的不一致性并不必要。可以废弃 login_with_mobile_phone,并入 login 方法(增加一个 mobile 参数)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextbreaking changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions