files

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client Files API客户端 (独立文件服务)

func NewClient

func NewClient(baseURL string) *Client

NewClient 创建Files API客户端

func (*Client) UploadForPlugin

func (c *Client) UploadForPlugin(ctx context.Context, filename string, fileData []byte, mimetype string, req *PluginUploadRequest) (*models.FileUpload, error)

UploadForPlugin 为插件上传文件

type PluginUploadRequest

type PluginUploadRequest struct {
	TenantID  string
	UserID    string
	Timestamp string
	Nonce     string
	Sign      string
}

PluginUploadRequest 插件文件上传请求参数

Jump to

Keyboard shortcuts

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