update website link and add todo

This commit is contained in:
2026-08-03 12:52:14 +08:00
parent 86fba66370
commit 2605bf350c
4 changed files with 23 additions and 1 deletions
+8
View File
@@ -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
View File
@@ -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"`
+2
View File
@@ -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"`
+11 -1
View File
@@ -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"