1.1.1 • Published 3 months ago

yz-model-user-yn v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

options

  • loginLevel: 登陆级别,
  • path: 第三方登陆重定向地址path
  • resultPropertyKey: axios 返回数据取哪个字段
  • axios: 系统axios
  • system_source: 系统来源(受理:1,后台:2,大厅:3)

methods

  • configure: (option) => userModule 配置userModule
  • login: (account, pwd) => Promise(result) 登陆
  • loginOut: () => null 注销
  • otherLogin: (type) => null 第三方登陆
  • getAccessToken: () => result 获取访问令牌
  • checkCode: () => Promise(Boolean) 检查第三方登陆
  • getUserInfo: () => Promise(userInfo) 获取用户信息

Port

result

{
  ok: Boolean,
  data: Obj,
  err: {
    msg: String
  }
}
1.1.1

3 months ago

1.1.0

5 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

7 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago