vo

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartAddReq

type CartAddReq struct {
	UserID   int `validate:"required"` //用户id
	GoodsID  int `validate:"required"` //商品id
	GoodsNum int `validate:"required"` //商品数
}

CartAddReq .

type CartItemRes

type CartItemRes struct {
	TotalPrice int //总价
	Items      []struct {
		ID         int    //购物车项ID
		GoodsID    int    //商品id
		GoodsName  string //商品名称
		GoodsNum   int    //商品数量
		TotalPrice int    //商品价格
	}
}

CartItemRes .

type CartShopReq

type CartShopReq struct {
	UserID int `validate:"required"` //用户id
}

CartShopReq .

type ChangePasswordReq

type ChangePasswordReq struct {
	ID          int
	NewPassword string `validate:"required"`
	OldPassword string `validate:"required"`
}

ChangePasswordReq .

type DeliveryReq

type DeliveryReq struct {
	OrderNo        string `validate:"required"` //订单id
	TrackingNumber string `validate:"required"` //快递号
	AdminID        int    `validate:"required"` //管理员id
}

DeliveryReq .

type GoodsAddReq

type GoodsAddReq struct {
	Name  string `validate:"required"`
	Price int    `validate:"min=10,max=100000"` //最小价格10,最大价格100000
}

GoodsAddReq .

type GoodsItemRes

type GoodsItemRes struct {
	ID    int    //商品id
	Name  string //商品名称
	Price int    //商品价格
	Stock int    //商品库存
	Tag   string //商品tag
}

GoodsItemRes .

type GoodsShopReq

type GoodsShopReq struct {
	UserID int `validate:"required"` //用户id
	ID     int `validate:"required"` //商品id
	Num    int `validate:"required"` //商品数量
}

GoodsShopReq .

type GoodsTagReq

type GoodsTagReq struct {
	ID  int    `validate:"required"`
	Tag string `validate:"oneof=HOT NEW NONE"` //要设置的标签必须是 热门,新品,默认
}

GoodsTagReq .

type OrderItemRes

type OrderItemRes struct {
	OrderNo    string
	TotalPrice int
	Status     string
	GoodsItems []struct {
		GoodsID   int    // 商品id
		Num       int    // 数量
		GoodsName string // 商品名称
	}
}

OrderItemRes .

type OrderPayMsg

type OrderPayMsg struct {
	OrderNo    string
	TotalPrice int
}

OrderPayMsg .

type OrderPayReq

type OrderPayReq struct {
	UserID  int    `validate:"required"` //用户id
	OrderNo string `validate:"required"` //订单id
}

OrderPayReq .

type RegisterUserReq

type RegisterUserReq struct {
	Name     string `validate:"required"` //用户名称
	Password string `validate:"required"` //用户密码
}

RegisterUserReq .

type UserInfoRes

type UserInfoRes struct {
	ID    int    //用户id
	Name  string //用户名
	Money int    //用户金钱
}

UserInfoRes .

Jump to

Keyboard shortcuts

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