float64全部改float32
This commit is contained in:
@@ -74,8 +74,8 @@ type MovePigsIntoPenRequest struct {
|
||||
type SellPigsRequest struct {
|
||||
PenID uint `json:"pen_id" validate:"required"` // 猪栏ID
|
||||
Quantity int `json:"quantity" validate:"required,min=1"` // 卖出猪只数量
|
||||
UnitPrice float64 `json:"unit_price" validate:"required,min=0"` // 单价
|
||||
TotalPrice float64 `json:"total_price" validate:"required,min=0"` // 总价
|
||||
UnitPrice float32 `json:"unit_price" validate:"required,min=0"` // 单价
|
||||
TotalPrice float32 `json:"total_price" validate:"required,min=0"` // 总价
|
||||
TraderName string `json:"trader_name" validate:"required"` // 交易方名称
|
||||
TradeDate time.Time `json:"trade_date" validate:"required"` // 交易日期
|
||||
Remarks string `json:"remarks"` // 备注
|
||||
@@ -85,8 +85,8 @@ type SellPigsRequest struct {
|
||||
type BuyPigsRequest struct {
|
||||
PenID uint `json:"pen_id" validate:"required"` // 猪栏ID
|
||||
Quantity int `json:"quantity" validate:"required,min=1"` // 买入猪只数量
|
||||
UnitPrice float64 `json:"unit_price" validate:"required,min=0"` // 单价
|
||||
TotalPrice float64 `json:"total_price" validate:"required,min=0"` // 总价
|
||||
UnitPrice float32 `json:"unit_price" validate:"required,min=0"` // 单价
|
||||
TotalPrice float32 `json:"total_price" validate:"required,min=0"` // 总价
|
||||
TraderName string `json:"trader_name" validate:"required"` // 交易方名称
|
||||
TradeDate time.Time `json:"trade_date" validate:"required"` // 交易日期
|
||||
Remarks string `json:"remarks"` // 备注
|
||||
|
||||
Reference in New Issue
Block a user