wangpengfei
2023-08-11 378353b4c37e52da3c99f10ff3a1c9078a71b3bd
temp
2个文件已修改
7 ■■■■ 已修改文件
model/quotation.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/request/quotation.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/quotation.go
@@ -16,12 +16,13 @@
        ValidityDate      time.Time  `json:"validity_date" gorm:"column:validity_date;type:datetime;comment:有效期"`
        ContactId         int        `json:"contact_id" gorm:"column:contact_id;type:int;comment:联系人id"`
        MemberId          int        `json:"member_id" gorm:"column:member_id;type:int;comment:负责人id"`
        SaleChanceId      int        `json:"sale_chance_id" gorm:"column:sale_chance_id;type:int;comment:商机id"`
        SaleChanceId      int        `json:"sale_chance_id" gorm:"column:sale_chance_id;type:int;comment:销售机会id"`
        Conditions        string     `json:"conditions" gorm:"column:conditions;type:text;comment:报价条件"`
        File              string     `json:"file" gorm:"column:file;type:varchar(255);comment:附件"`
        Client            Client     `json:"client" gorm:"foreignKey:ClientId"`
        Contact           Contact    `json:"contact" gorm:"foreignKey:ContactId"`
        SaleChance        SaleChance `json:"sale_chance" gorm:"foreignKey:SaleChanceId"`
        Products          []Product  `json:"products" gorm:"many2many:quotation_product"`
        gorm.Model        `json:"-"`
    }
@@ -34,7 +35,6 @@
        OrderBy  string
        PageNum  int
        PageSize int
    }
)
model/request/quotation.go
@@ -1,5 +1,7 @@
package request
import "aps_crm/model"
type AddQuotation struct {
    Quotation
}
@@ -14,6 +16,7 @@
    SaleChanceId      int    `json:"sale_chance_id"`
    Conditions        string `json:"conditions"`
    File              string `json:"file"`
    Products          []*model.Product `json:"products"`
}
type UpdateQuotation struct {