client/docs/mcs/auth.md

30 lines
548 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Auth
im auth service
- [/mcs.Auth/Register](#mcsauthregister)
## /mcs.Auth/Register
将用户注册进IM系统系统会自动分配它预链接的WS服务器
### Request
```javascript
{
device_os: "Pc", // enum<Pc,Android,Ios,Web>, 设备名
device_token: "", // type<string>, 设备唯一标识
device_brand: "", // type<string>, 设备厂商
}
```
### Reply
```javascript
{
status: 0, // type<int32>, 状态
secret_key: "", // type<string>, 秘钥
endpoints: [""], // list<string>, 服务器地址。
}
```