package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Mar 29, 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 ChangePasswordReq struct {
Id int
NewPassword string `validate:"required"`
OldPassword string `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 RegisterUserReq struct {
Name string `validate:"required"`
Password string `validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.