update website link and add todo
This commit is contained in:
@@ -2,6 +2,8 @@ package public
|
||||
|
||||
import "github.com/XingfenD/rainyun_api_go_sdk/constant"
|
||||
|
||||
// https://api.rainyun.com/#/paths/app_config/get
|
||||
|
||||
type GetAppConfigResponse struct {
|
||||
Code int `json:"code"`
|
||||
Data []AppConfigItem `json:"data"`
|
||||
|
||||
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/XingfenD/rainyun_api_go_sdk/constant"
|
||||
)
|
||||
|
||||
// https://api.rainyun.com/#/paths/news/get
|
||||
|
||||
type GetNewsResponse struct {
|
||||
Code int `json:"code"`
|
||||
Data []RainyunNewsItem `json:"data"`
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
package public
|
||||
|
||||
import "github.com/XingfenD/rainyun_api_go_sdk/constant"
|
||||
import (
|
||||
"github.com/XingfenD/rainyun_api_go_sdk/apis/common"
|
||||
"github.com/XingfenD/rainyun_api_go_sdk/constant"
|
||||
)
|
||||
|
||||
// https://api.rainyun.com/#/paths/status/get
|
||||
|
||||
type GetStatusRequest struct {
|
||||
Options common.StandQueryParameters `json:"options"`
|
||||
}
|
||||
|
||||
type GetStatusResponse struct {
|
||||
Code int `json:"code"`
|
||||
@@ -25,6 +34,7 @@ type NodeStatusRecordItem struct {
|
||||
Data string `json:"Data"`
|
||||
}
|
||||
|
||||
// TODO
|
||||
func (s *PublicService) GetStatus() (*GetStatusResponse, error) {
|
||||
path := "/status"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user