移除MakeRpcMsg方法的泛型参数
This commit is contained in:
parent
a0d20b2d90
commit
e233d149dd
@ -20,7 +20,7 @@ func MakeMsgEx(serviceName string, connId uint32, userId int64, msgId int32, msg
|
|||||||
return MakeMsg(serviceName, connId, userId, msgId, data)
|
return MakeMsg(serviceName, connId, userId, msgId, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeRpcMsg[T any](rpcMsgId string, userId int64, msg *T) *InternalMsg {
|
func MakeRpcMsg(rpcMsgId string, userId int64, msg any) *InternalMsg {
|
||||||
data, _ := json.Marshal(msg)
|
data, _ := json.Marshal(msg)
|
||||||
return &InternalMsg{
|
return &InternalMsg{
|
||||||
ServiceName: "",
|
ServiceName: "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user