From 3369456ac6de01e8703a9b38537406ec7c550bc5 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 25 八月 2023 11:05:45 +0800
Subject: [PATCH] fix
---
model/business.go | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/model/business.go b/model/business.go
index c26f7ee..2e6b9aa 100644
--- a/model/business.go
+++ b/model/business.go
@@ -1,19 +1,17 @@
package model
-import "time"
-
type (
Business struct {
- Representative string `json:"representative" gorm:"column:representative;type:varchar(255);comment:娉曚汉浠h〃"`
- RegistrationTime *time.Time `json:"registration_time" gorm:"column:registration_time;type:datetime;default:1970-01-01 08:00:00;comment:娉ㄥ唽鏃堕棿"`
- RegisteredCapitalId int `json:"registered_capital_id" gorm:"column:registered_capital_id;type:int(11);comment:娉ㄥ唽璧勯噾"`
+ Representative string `json:"representative" gorm:"column:representative;type:varchar(255);comment:娉曚汉浠h〃"`
+ RegistrationTime *CustomTime `json:"registration_time" gorm:"column:registration_time;type:datetime;default:1970-01-01 08:00:00;comment:娉ㄥ唽鏃堕棿"`
+ RegisteredCapitalId int `json:"registered_capital_id" gorm:"column:registered_capital_id;type:int(11);default:1;comment:娉ㄥ唽璧勯噾"`
RegisteredCapital RegisteredCapital
- IndustryId int `json:"industry_id" gorm:"column:industry_id;type:int(11);comment:鎵�灞炶涓�"`
+ IndustryId int `json:"industry_id" gorm:"column:industry_id;type:int(11);default:1;comment:鎵�灞炶涓�"`
Industry Industry
- EnterpriseNatureId int `json:"enterprise_nature_id" gorm:"column:enterprise_nature_id;type:int(11);comment:浼佷笟鎬ц川"`
+ EnterpriseNatureId int `json:"enterprise_nature_id" gorm:"column:enterprise_nature_id;type:int(11);default:1;comment:浼佷笟鎬ц川"`
EnterpriseNature EnterpriseNature
- EnterpriseScaleId int `json:"enterprise_scale_id" gorm:"column:enterprise_scale_id;type:int(11);comment:浼佷笟瑙勬ā"`
+ EnterpriseScaleId int `json:"enterprise_scale_id" gorm:"column:enterprise_scale_id;type:int(11);default:1;comment:浼佷笟瑙勬ā"`
EnterpriseScale EnterpriseScale
- BusinessScope string `json:"business_scope" gorm:"column:business_scope;type:varchar(255);comment:缁忚惀鑼冨洿"`
+ BusinessScope string `json:"business_scope" gorm:"column:business_scope;type:text;comment:缁忚惀鑼冨洿"`
}
)
--
Gitblit v1.8.0