adminupdatewupin

package
v0.0.0-...-ca656e9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 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
	CodeClassNotFound data.CodeType = -9
)
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 {
	ID        uint                    `json:"id"`
	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