liujiandao
2023-10-24 d8c708a30d938ceb87348257add9dc10926044df
model/request/invoice.go
@@ -6,6 +6,7 @@
)
type AddInvoice struct {
   Number           string                     `json:"number" gorm:"column:number;type:varchar(255);comment:发票编号"` //发票编号
   ClientId         int                        `gorm:"client_id" json:"clientId"`                  // 客户id
   InvoiceTypeId    int                        `gorm:"invoice_type_id" json:"invoiceTypeId"`       // 发票类型id
   PrincipalId      int                        `gorm:"principal_id" json:"principalId"`            // 销售负责人id
@@ -19,10 +20,12 @@
   CourierNumber    string                     `gorm:"courier_number" json:"courierNumber"`        // 物流单号
   CourierCompanyId int                        `gorm:"courier_company_id" json:"courierCompanyId"` // 物流公司
   Products         []model.Product            `json:"products"`                                   //发票对应产品,从相应源单里获取
   CodeStandID      string                     `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"`
}
type UpdateInvoice struct {
   Id               int             `json:"id" binding:"required"`
   Number           string          `json:"number" gorm:"column:number;type:varchar(255);comment:发票编号"` //发票编号
   ClientId         int             `gorm:"client_id" json:"clientId"`                  // 客户id
   InvoiceTypeId    int             `gorm:"invoice_type_id" json:"invoiceTypeId"`       // 发票类型id
   PrincipalId      int             `gorm:"principal_id" json:"principalId"`            // 销售负责人id
@@ -36,6 +39,7 @@
   CourierNumber    string          `gorm:"courier_number" json:"courierNumber"`        // 物流单号
   CourierCompanyId int             `gorm:"courier_company_id" json:"courierCompanyId"` // 物流公司
   Products         []model.Product `json:"products"`                                   //发票对应产品,从相应源单里获取
   CodeStandID      string          `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"`
}
type GetInvoiceList struct {