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

share_anonymous

package
v0.14.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

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

Download . @router /anonymous/download/:code [GET]

func GenerateCode

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

GenerateCode 上传文件时生成 6 位取件码(端到端:建 file_codes + 取件码映射)。 @router /anonymous/generate [POST]

func Retrieve

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

Retrieve 按取件码取件(校验密码 + 扣减次数,DB 为准)。 @router /anonymous/retrieve [POST]

func SearchByCode

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

SearchByCode 按码查询分享信息(不下载、不扣次数)。 @router /anonymous/search/:code [GET]

func SetService

func SetService(rdb *redis.Client)

SetService 注入 service

Types

This section is empty.

Jump to

Keyboard shortcuts

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