package
Version:
v1.7.15
Opens a new window with list of versions in this module.
Published: Aug 16, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CartAddReq struct {
UserId int `validate:"required"`
GoodsId int `validate:"required"`
GoodsNum int `validate:"required"`
}
type CartItemRes struct {
TotalPrice int
Items []struct {
Id int
GoodsId int
GoodsName string
GoodsNum int
TotalPrice int
}
}
type CartShopReq struct {
UserId int `validate:"required"`
}
type ChangePasswordReq struct {
Id int
NewPassword string `validate:"required"`
OldPassword string `validate:"required"`
}
type DeliveryReq struct {
OrderNo string `validate:"required"`
TrackingNumber string `validate:"required"`
AdminId int `validate:"required"`
}
type GoodsAddReq struct {
Name string `validate:"required"`
Price int `validate:"min=10,max=100000"`
}
type GoodsShopReq struct {
UserId int `validate:"required"`
Id int `validate:"required"`
Num int `validate:"required"`
}
type GoodsTagReq struct {
Id int `validate:"required"`
Tag string `validate:"oneof=HOT NEW NONE"`
}
type OrderPayMsg struct {
OrderNo string
TotalPrice int
}
type OrderPayReq struct {
UserId int `validate:"required"`
OrderNo string `validate:"required"`
}
type RegisterUserReq struct {
Name string `validate:"required"`
Password string `validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.