user

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectGoods

func CollectGoods(c *gin.Context)

StarGoods 关注商品

func GetOne

func GetOne(c *gin.Context)

GetOne 获取指定用户信息

func GetUserGoodsOne

func GetUserGoodsOne(c *gin.Context)

func List

func List(c *gin.Context)

查看用户自己购买,收藏等商品

func ShareGoods

func ShareGoods(c *gin.Context)

ShareGoods 分享商品

func StarGoods

func StarGoods(c *gin.Context)

StarGoods 关注商品

func Stats

func Stats(c *gin.Context)

我的基本信息

func UncollectGoods

func UncollectGoods(c *gin.Context)

UnstarGoods 取消关注商品

func UnstarGoods

func UnstarGoods(c *gin.Context)

UnstarGoods 取消关注商品

Types

type File

type File struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Key  string `json:"key"`
}

type OutputUserGoods

type OutputUserGoods struct {
	Id          int       `json:"id" form:"id" gorm:"primary_key"` // 主键ID
	CreatedAt   time.Time `json:"createdAt" form:"createdAt" `     // 创建时间
	GoodsId     int       `json:"goodsId" form:"goodsId" `         // 商品ID
	TypeId      int       `json:"typeId" form:"typeId" `           // 类型id
	Name        string    `json:"name" form:"name" `               // 商品名称
	Cover       string    `json:"cover"`
	IsPay       int       `json:"isPay" form:"isPay" `       // 是否购买
	IsStar      int       `json:"isStar" form:"isStar" `     // 是否关注
	IsCreate    int       `json:"isCreate" form:"isCreate" ` // 是否上传
	IsShare     int       `json:"isShare" form:"isShare" `   // 是否分享
	IsPrePay    int       `json:"isPrePay" form:"isPrePay" ` // 是否预购买
	CntView     int       `json:"cntView"`
	Desc        string    `json:"desc"`
	CreatedName string    `json:"createdName"`
	TypeName    string    `json:"typeName"`
}

todo 迁移到model

type ReqList

type ReqList struct {
	Tid    int `form:"tid"`
	TypeId int `form:"typeId"`
	trans.ReqPage
}

Jump to

Keyboard shortcuts

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