admincom

package
v0.0.0-...-e6e6a7d Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(c *gin.Context)

获取或更新文档内容.

func Create

func Create(c *gin.Context)

func List

func List(c *gin.Context)

func OffSale

func OffSale(c *gin.Context)

func OnSale

func OnSale(c *gin.Context)

func One

func One(c *gin.Context)

func Remove

func Remove(c *gin.Context)

func Update

func Update(c *gin.Context)

Types

type ReqCreateOrUpdate

type ReqCreateOrUpdate struct {
	Id         int            `json:"id"`
	Title      string         `json:"title"`
	SubTitle   string         `json:"subTitle"`
	Gallery    []string       `json:"gallery"`
	SaleTime   string         `json:"saleTime"`
	Cids       []string       `json:"cids"`
	SkuList    []mysql.ComSku `json:"skuList"`
	FreightFee float64        `json:"freightFee"` // 运费
	FreightId  int            `json:"freightId"`  // 运费模板id
}

type ReqList

type ReqList struct {
	Name    string `form:"name"`
	Author  string `form:"author"`
	Address string `form:"address"`
	trans.ReqPage
}

type ReqOnSale

type ReqOnSale struct {
	Ids []int `json:"ids"`
}

type ReqRemove

type ReqRemove struct {
	Id int `json:"id"`
}

type ReqUpdate

type ReqUpdate struct {
	Id       int      `json:"id"`
	Cid      int      `json:"cid"`
	Title    string   `json:"title"`
	SubTitle string   `json:"subTitle"`
	Gallery  []string `json:"gallery"`
	SaleTime string   `json:"saleTime"`
}

Jump to

Keyboard shortcuts

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