Help us shape the future of Go! Take the 2026 Go Developer Survey

request

package
v0.32.33 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, c *app.RequestContext)

Create 创建投递链接 POST /api/v1/user/requests [POST]

func Delete

func Delete(ctx context.Context, c *app.RequestContext)

Delete 撤销投递链接 DELETE /api/v1/user/requests/:token [DELETE]

func GuestUpload

func GuestUpload(ctx context.Context, c *app.RequestContext)

GuestUpload 访客投递(公开;multipart files[])。 重管道(解析/配额/存储/传输日志/失败清理)留在 customHandler——契约在此, 实现桥接,避免跨包搬运包内私有上传助手。 POST /api/v1/request/:token/upload [POST]

func ListMine

func ListMine(ctx context.Context, c *app.RequestContext)

ListMine 我的投递链接列表 GET /api/v1/user/requests [GET]

func PublicGet

func PublicGet(ctx context.Context, c *app.RequestContext)

PublicGet 访客取链接信息(公开) GET /request/:token [GET]

func SetRequestService

func SetRequestService(s *requestApp.Service)

SetRequestService 注入寄件码服务(bootstrap 调用)

Types

This section is empty.

Jump to

Keyboard shortcuts

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