|
|
@@ -27,23 +27,23 @@ var SecondCount int = 0
|
|
|
|
|
|
// SpotPriceOrder 定价明细
|
|
|
type SpotPriceOrder struct {
|
|
|
- Price float64 `json:"price" binding:"required"` // 价格
|
|
|
- Qty float64 `json:"qty" binding:"required"` // 数量
|
|
|
- Amount float64 `json:"amount" binding:"required"` // 金额
|
|
|
- DeliveryStartDate time.Time `json:"deliverystartdate" binding:"required"` // 交收开始日期
|
|
|
- DeliveryEndDate time.Time `json:"deliveryendtdate" binding:"required"` // 交收结束日期
|
|
|
+ Price float64 `json:"price" binding:"required"` // 价格
|
|
|
+ Qty float64 `json:"qty" binding:"required"` // 数量
|
|
|
+ Amount float64 `json:"amount" binding:"required"` // 金额
|
|
|
+ DeliveryStartDate time.Time `json:"deliverystartdate"` // 交收开始日期
|
|
|
+ DeliveryEndDate time.Time `json:"deliveryendtdate"` // 交收结束日期
|
|
|
}
|
|
|
|
|
|
// SpotPointOrder 点价明细
|
|
|
type SpotPointOrder struct {
|
|
|
- GoodsID int32 `json:"goodsid" binding:"required"` // 商品ID
|
|
|
- GoodsName string `json:"goodsname"` // 商品名称
|
|
|
- Qty float64 `json:"qty" binding:"required"` // 数量
|
|
|
- Basic float64 `json:"basic" binding:"required"` // 基差
|
|
|
- StartDate time.Time `json:"startdate" binding:"required"` // 点价开始日期
|
|
|
- EndDate time.Time `json:"enddate" binding:"required"` // 点价结束日期
|
|
|
- DeliveryStartDate time.Time `json:"deliverystartdate" binding:"required"` // 交收开始日期
|
|
|
- DeliveryEndDate time.Time `json:"deliveryendtdate" binding:"required"` // 交收结束日期
|
|
|
+ GoodsID int32 `json:"goodsid" binding:"required"` // 商品ID
|
|
|
+ GoodsName string `json:"goodsname"` // 商品名称
|
|
|
+ Qty float64 `json:"qty" binding:"required"` // 数量
|
|
|
+ Basic float64 `json:"basic" binding:"required"` // 基差
|
|
|
+ StartDate time.Time `json:"startdate"` // 点价开始日期
|
|
|
+ EndDate time.Time `json:"enddate"` // 点价结束日期
|
|
|
+ DeliveryStartDate time.Time `json:"deliverystartdate"` // 交收开始日期
|
|
|
+ DeliveryEndDate time.Time `json:"deliveryendtdate"` // 交收结束日期
|
|
|
}
|
|
|
|
|
|
// SoptContractDetail 合同明细信息
|
|
|
@@ -93,8 +93,8 @@ type AddSpotContractApplyReq struct {
|
|
|
AccountID int64 `json:"accountid" binding:"required"` // 资金账户ID
|
|
|
CustomerUserID int32 `json:"customeruserid" binding:"required"` // 客户ID
|
|
|
CustomerAccountID int64 `json:"customeraccountid" binding:"required"` // 客户资金账户ID
|
|
|
- SignDate time.Time `json:"signdate" binding:"required"` // 签订日期
|
|
|
- LastDate time.Time `json:"lastdate" binding:"required"` // 交货时间
|
|
|
+ SignDate string `json:"signdate" binding:"required"` // 签订日期
|
|
|
+ LastDate string `json:"lastdate" binding:"required"` // 交货时间
|
|
|
ContractAttachment string `json:"contractattachment"` // 合同附件
|
|
|
OriMarginPayer int32 `json:"orimarginpayer" binding:"required"` // 初始保证金支付方 -1:买方 2:卖方
|
|
|
OriMargin float64 `json:"orimargin" binding:"required"` // 初始保证金
|