adminaddwupin

package
v0.0.0-...-64e5d5b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeFileTooBig        data.CodeType = -3
	CodeNotImage          data.CodeType = -4
	CodeWipinNotFound     data.CodeType = -5
	CodeBadName           data.CodeType = -6
	CodeRealPrice         data.CodeType = -7
	CodeBadShopInfo       data.CodeType = -8
	CodeWupinPicNotUpload data.CodeType = -9
	CodeClassNotFound     data.CodeType = -10
)
View Source
const Size2MB = 2 * 1024 * 1024
View Source
const Size3MB = 3 * 1024 * 1024

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

Types

type Query

type Query struct {
	Name      string                  `json:"name"`
	ClassID   uint                    `json:"classId"`
	Tag       string                  `json:"tag"`
	HotPrice  modeltype.PriceNullJson `json:"hotPrice"`
	RealPrice modeltype.Price         `json:"realPrice"`
	Info      string                  `json:"info"`
	Ren       string                  `json:"ren"`
	Phone     string                  `json:"phone"`
	Email     string                  `json:"email"`
	Wechat    string                  `json:"wechat"`
	Location  string                  `json:"location"`
	Pic       string                  `json:"pic"`
	Hot       bool                    `json:"hot"`
	Down      bool                    `json:"down"`
	File      *multipart.FileHeader   `form:"file"`
}

Jump to

Keyboard shortcuts

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