This commit is contained in:
2022-03-21 11:16:38 +08:00
commit e89e807c64
1040 changed files with 284164 additions and 0 deletions

22
sdk/Go/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"./PhalApiClient"
"fmt"
"net/url"
)
func main() {
rs, err := PhalApiClient.NewRequest().
WithHost(`http://127.0.0.1/PhalApi/Public/index.php`).
WithService("Default.index").
WithParams(url.Values{}).
Get()
if err != nil {
fmt.Println(err.Error())
} else {
fmt.Println("code------------------------", rs.Code)
fmt.Println("data------------------------", rs.Data)
fmt.Println("msg------------------------", rs.Msg)
}
}