im

package
v0.0.0-...-8412fec Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheSmToken = "sm-token"

	SmGetApiTokenUrl = "https://sm.ms/api/v2/token" // 获取sm.ms token
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SmApiHandler

type SmApiHandler struct{}

func (*SmApiHandler) GetApiToken

func (sm *SmApiHandler) GetApiToken(c *gin.Context)

GetApiToken 获取sm.ms token https://doc.sm.ms/#api-Image-Upload User - Get API-Token

type TokenResponseData

type TokenResponseData struct {
	Data struct {
		Token string `json:"token"`
	} `json:"data"`
	Success   bool   `json:"success"`
	Code      string `json:"code"`
	Message   string `json:"message"`
	RequestId string `json:"request_id"`
}

Jump to

Keyboard shortcuts

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