2023-07-24 11:44:28 +00:00
|
|
|
package constants
|
|
|
|
|
|
|
|
type websocket string
|
|
|
|
|
|
|
|
// websocket消息类型
|
|
|
|
const (
|
2023-07-25 04:06:19 +00:00
|
|
|
//鉴权失败
|
2023-07-26 08:47:53 +00:00
|
|
|
WEBSOCKET_UNAUTH = "WEBSOCKET_UNAUTH"
|
2023-07-24 11:44:28 +00:00
|
|
|
//ws连接成功
|
2023-07-26 08:47:53 +00:00
|
|
|
WEBSOCKET_CONNECT_SUCCESS = "WEBSOCKET_CONNECT_SUCCESS"
|
2023-07-24 11:44:28 +00:00
|
|
|
//图片渲染
|
2023-07-26 08:47:53 +00:00
|
|
|
WEBSOCKET_RENDER_IMAGE = "WEBSOCKET_RENDER_IMAGE"
|
|
|
|
//数据格式错误
|
|
|
|
WEBSOCKET_ERR_DATA_FORMAT = "WEBSOCKET_ERR_DATA_FORMAT"
|
2023-07-27 09:07:54 +00:00
|
|
|
//第三方登录通知
|
|
|
|
WEBSOCKET_THIRD_PARTY_LOGIN_NOTIFY = "WEBSOCKET_THIRD_PARTY_LOGIN_NOTIFY"
|
2023-07-24 11:44:28 +00:00
|
|
|
)
|
2023-07-25 09:41:38 +00:00
|
|
|
|
2023-07-27 08:14:27 +00:00
|
|
|
// 云渲染完成通知api需要的签名字符串
|
2023-07-25 09:41:38 +00:00
|
|
|
const RENDER_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"
|
2023-07-27 09:07:54 +00:00
|
|
|
|
|
|
|
// 第三方登录通知api需要的签名字符串
|
|
|
|
const THIRD_PARTY_LOGIN_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"
|