2024-09-12 14:27:03 +08:00
|
|
|
package game
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetGameOsInfo(t *testing.T) {
|
|
|
|
client, err := NewClient()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
req := CreateGetGameOsInfoReq()
|
|
|
|
|
|
|
|
resp, err := client.GetGameOsInfo(req)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Println(resp.Code, resp.Msg, resp.Data.OsList, resp.Data.OsRelList2)
|
|
|
|
}
|
2025-04-27 10:59:33 +08:00
|
|
|
|
|
|
|
func TestGetGameInfo(t *testing.T) {
|
|
|
|
client, err := NewClient()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(8362, 1))
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
|
|
|
}
|
2025-04-27 17:43:54 +08:00
|
|
|
|
|
|
|
func TestChannelInfo(t *testing.T) {
|
|
|
|
client, err := NewClient()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
req := CreateChannelInfoReq()
|
|
|
|
req.ChannelKey = "GRSDK"
|
|
|
|
resp, err := client.GetChannelInfo(req)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
fmt.Println(resp)
|
|
|
|
}
|