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