From bea01821a1319563a7cbab68c74ae23e452f1351 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 18 八月 2023 21:43:42 +0800
Subject: [PATCH] fix
---
model/contract.go | 21 +++++++++++----------
docs/swagger.yaml | 2 ++
docs/docs.go | 3 +++
docs/swagger.json | 3 +++
4 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index f65be80..0c73b72 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -11353,6 +11353,9 @@
"contact_id": {
"type": "integer"
},
+ "contact_information": {
+ "$ref": "#/definitions/model.ContactInformation"
+ },
"contact_information_id": {
"type": "integer"
},
diff --git a/docs/swagger.json b/docs/swagger.json
index bb2f481..ae994b5 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -11341,6 +11341,9 @@
"contact_id": {
"type": "integer"
},
+ "contact_information": {
+ "$ref": "#/definitions/model.ContactInformation"
+ },
"contact_information_id": {
"type": "integer"
},
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 2f23a4c..e5014be 100644
--- a/docs/swagger.yaml
+++ b/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:
diff --git a/model/contract.go b/model/contract.go
index dbf992c..4c75e20 100644
--- a/model/contract.go
+++ b/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:璐熻矗浜篿d"`
- 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:鎶ヤ环鍗昳d"`
- 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:璐熻矗浜篿d"`
+ 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:鎶ヤ环鍗昳d"`
+ 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
}
--
Gitblit v1.8.0