remote_server

package
v1.2.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ServerHost    = "https://www.go-admin.cn"
	ServerHostApi = "https://www.go-admin.cn/api"
)
View Source
const TokenKey = "GOADMIN_OFFICIAL_SESS"

Variables

This section is empty.

Functions

func GetDownloadURL

func GetDownloadURL(uuid, token string) (string, string, error)

func GetOnline

func GetOnline(reqData GetOnlineReq, token string) ([]byte, error)

Types

type GetDownloadURLRes

type GetDownloadURLRes struct {
	Code int `json:"code"`
	Data struct {
		Url      string `json:"url"`
		ExtraUrl string `json:"extra_url"`
	} `json:"data"`
	Msg string `json:"msg"`
}

type GetOnlineReq

type GetOnlineReq struct {
	Page       string `json:"page"`
	Free       string `json:"free"`
	PageSize   string `json:"page_size"`
	Filter     string `json:"filter"`
	Order      string `json:"order"`
	Lang       string `json:"lang"`
	CategoryId string `json:"category_id"`
	Version    string `json:"version"`
}

func (GetOnlineReq) Format

func (req GetOnlineReq) Format() string

type LoginRes

type LoginRes struct {
	Code int `json:"code"`
	Data struct {
		Token  string `json:"token"`
		Name   string `json:"name"`
		Expire int64  `json:"expire"`
	} `json:"data"`
	Msg string `json:"msg"`
}

func Login

func Login(account, password string) LoginRes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL