Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
@@ -4,7 +4,7 @@ import "strings"
|
||||
|
||||
// 通过url解析资源id
|
||||
func GetS3ResourceIdFormUrl(s3Url string) string {
|
||||
if !strings.Contains(s3Url, "storage.fusenpack.com") {
|
||||
if !strings.Contains(s3Url, "fusen") {
|
||||
return ""
|
||||
}
|
||||
s := strings.Split(s3Url, "/")
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
package websocket_data
|
||||
|
||||
import "fusenapi/constants"
|
||||
|
||||
// websocket数据交互基本数据类型
|
||||
type DataTransferData struct {
|
||||
T constants.Websocket `json:"t"` //消息类型
|
||||
D interface{} `json:"d"` //传递的消息
|
||||
Debug bool `json:"debug"` //是否开启debug
|
||||
}
|
||||
|
||||
// 基础连接成功返回
|
||||
type ConnectSuccessMsg struct {
|
||||
Wid string `json:"wid"` //websocket连接唯一标识
|
||||
Debug bool `json:"debug"` //是否开启debug
|
||||
Wid string `json:"wid"` //websocket连接唯一标识
|
||||
}
|
||||
|
||||
// 连接失败
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
package websocket_data
|
||||
|
||||
import "fusenapi/constants"
|
||||
|
||||
// websocket数据交互基本数据类型
|
||||
type DataTransferData struct {
|
||||
T constants.Websocket `json:"t"` //消息类型
|
||||
D interface{} `json:"d"` //传递的消息
|
||||
}
|
||||
|
||||
// websocket接受要云渲染处理的数据
|
||||
type RenderImageReqMsg struct {
|
||||
RenderId string `json:"render_id"` //渲染id
|
||||
|
||||
Reference in New Issue
Block a user