client/docs/mcs/auth.md

30 lines
548 B
Markdown
Raw Permalink Normal View History

2025-09-29 16:42:36 +08:00
# 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>, 服务器地址。
}
```