first commit
This commit is contained in:
50
backend/internal/dto/zsp_contract_detail.go
Executable file
50
backend/internal/dto/zsp_contract_detail.go
Executable file
@@ -0,0 +1,50 @@
|
||||
package dto
|
||||
|
||||
// ZSPContractDetailCreateRequest 创建合同详情请求
|
||||
type ZSPContractDetailCreateRequest struct {
|
||||
ContractFileID uint `json:"contract_file_id" binding:"required"`
|
||||
CommodityName string `json:"commodity_name" binding:"required"`
|
||||
CommodityCode string `json:"commodity_code"`
|
||||
TotalQuantity float64 `json:"total_quantity" binding:"required"`
|
||||
Unit string `json:"unit"`
|
||||
UnitPrice float64 `json:"unit_price" binding:"required"`
|
||||
DeliveredQty float64 `json:"delivered_qty"`
|
||||
BillOfLading string `json:"bill_of_lading"`
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
// ZSPContractDetailUpdateRequest 更新合同详情请求
|
||||
type ZSPContractDetailUpdateRequest struct {
|
||||
ID uint `json:"id" binding:"required"`
|
||||
CommodityName string `json:"commodity_name"`
|
||||
CommodityCode string `json:"commodity_code"`
|
||||
TotalQuantity float64 `json:"total_quantity"`
|
||||
Unit string `json:"unit"`
|
||||
UnitPrice float64 `json:"unit_price"`
|
||||
DeliveredQty float64 `json:"delivered_qty"`
|
||||
BillOfLading string `json:"bill_of_lading"`
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
// ZSPContractDetailBatchCreateRequest 批量创建合同详情请求
|
||||
type ZSPContractDetailBatchCreateRequest struct {
|
||||
ContractFileID uint `json:"contract_file_id" binding:"required"`
|
||||
Details []ZSPContractDetailCreateRequest `json:"details" binding:"required"`
|
||||
}
|
||||
|
||||
// ZSPContractDetailResponse 合同详情响应
|
||||
type ZSPContractDetailResponse struct {
|
||||
ID uint `json:"id"`
|
||||
ContractFileID uint `json:"contract_file_id"`
|
||||
CommodityName string `json:"commodity_name"`
|
||||
CommodityCode string `json:"commodity_code"`
|
||||
TotalQuantity float64 `json:"total_quantity"`
|
||||
Unit string `json:"unit"`
|
||||
UnitPrice float64 `json:"unit_price"`
|
||||
DeliveredQty float64 `json:"delivered_qty"`
|
||||
PendingQty float64 `json:"pending_qty"`
|
||||
BillOfLading string `json:"bill_of_lading"`
|
||||
Remark string `json:"remark"`
|
||||
CreateTime string `json:"create_time"`
|
||||
UpdateTime string `json:"update_time"`
|
||||
}
|
||||
Reference in New Issue
Block a user