upload

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadUserImage added in v1.1.0

func UploadUserImage(ctx *gin.Context, db *gorm.DB, purpose string)

UploadUserImage UploadUserImage

Types

type FileInfo

type FileInfo struct {
	FileID uint `json:"file_id,omitempty"`
	// Uin 用户ID
	Uin uint `json:"uin,omitempty"`
	// URL 文件访问地址
	URL string `json:"url,omitempty"`
	// Filename 原始文件名
	Filename string `json:"filename,omitempty"`
}

FileInfo file info

type UploadImageResponse

type UploadImageResponse struct {
	apiobj.BaseResponse

	Response FileInfo
}

Jump to

Keyboard shortcuts

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