23 lines
329 B
Go
23 lines
329 B
Go
|
package mkt
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestSubjectList(t *testing.T) {
|
||
|
client, err := NewClient()
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
req := CreateSubjectListRequest(0)
|
||
|
req.Port = "9090"
|
||
|
list, err := client.SubjectList(req)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
fmt.Println(list.Status, list.Code, list.Msg, list.Data)
|
||
|
}
|