fix
wangpengfei
2023-08-18 bea01821a1319563a7cbab68c74ae23e452f1351
fix
4个文件已修改
29 ■■■■■ 已修改文件
docs/docs.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/contract.go 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go
@@ -11353,6 +11353,9 @@
                "contact_id": {
                    "type": "integer"
                },
                "contact_information": {
                    "$ref": "#/definitions/model.ContactInformation"
                },
                "contact_information_id": {
                    "type": "integer"
                },
docs/swagger.json
@@ -11341,6 +11341,9 @@
                "contact_id": {
                    "type": "integer"
                },
                "contact_information": {
                    "$ref": "#/definitions/model.ContactInformation"
                },
                "contact_information_id": {
                    "type": "integer"
                },
docs/swagger.yaml
@@ -833,6 +833,8 @@
        $ref: '#/definitions/model.Contact'
      contact_id:
        type: integer
      contact_information:
        $ref: '#/definitions/model.ContactInformation'
      contact_information_id:
        type: integer
      content:
model/contract.go
@@ -7,16 +7,17 @@
type (
    Contract struct {
        Id          int       `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
        ClientId    int       `json:"clientId" gorm:"column:client_id;type:int;comment:客户id"`
        Client      Client    `json:"client" gorm:"foreignKey:ClientId"`
        MemberId    int       `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
        Member      User      `json:"member" gorm:"foreignKey:MemberId"`
        Number      string    `json:"number" gorm:"column:number;type:varchar(255);comment:合同编号"`
        QuotationId int       `json:"quotationId" gorm:"column:quotation_id;type:int;comment:报价单id"`
        Quotation   Quotation `json:"quotation" gorm:"foreignKey:QuotationId;references:Id"`
        StatusId    int       `json:"statusId" gorm:"column:status_id;type:int;comment:合同状态"`
        File        string    `json:"file" gorm:"column:file;type:varchar(255);comment:合同文件"`
        Id          int         `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
        ClientId    int         `json:"clientId" gorm:"column:client_id;type:int;comment:客户id"`
        Client      Client      `json:"client" gorm:"foreignKey:ClientId"`
        MemberId    int         `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
        Member      User        `json:"member" gorm:"foreignKey:MemberId"`
        Number      string      `json:"number" gorm:"column:number;type:varchar(255);comment:合同编号"`
        QuotationId int         `json:"quotationId" gorm:"column:quotation_id;type:int;comment:报价单id"`
        Quotation   Quotation   `json:"quotation" gorm:"foreignKey:QuotationId;references:Id"`
        StatusId    int         `json:"statusId" gorm:"column:status_id;type:int;comment:合同状态"`
        File        string      `json:"file" gorm:"column:file;type:varchar(255);comment:合同文件"`
        CreatedAt   *CustomTime `json:"created_at" gorm:"column:created_at;type:datetime;comment:创建时间"`
        gormModel
    }