package main import "time" type IAOF_FORTUNE_INFO struct { ID string `gorm:"column:id;primaryKey"` Rank int `gorm:"column:rank"` CompanyName string `gorm:"column:company_name"` CompanyEn string `gorm:"column:company_en"` Country string `gorm:"column:country"` StandardChineseName string `gorm:"column:standard_chinese_name"` StandardEnglishName string `gorm:"column:standard_english_name"` AbbreviationChinese string `gorm:"column:abbreviation_chinese"` AbbreviationEnglish string `gorm:"column:abbreviation_english"` EntryTime time.Time `gorm:"column:entry_time"` UpdateTime time.Time `gorm:"column:update_time"` IsValid string `gorm:"column:is_valid"` Year string `gorm:"column:year"` } //TableName 设置表名 func (IAOF_FORTUNE_INFO) TableName() string { return "IAOF_FORTUNE_INFO" } type IAOF_INVEST_RELATION struct { ID uint `gorm:"column:ID;primaryKey;autoIncrement"` CompanyName string `gorm:"column:COMPANY_NAME"` CompanyArea string `gorm:"column:COMPANY_AREA"` CompanyFortune string `gorm:"column:COMPANY_FORTUNE"` CompanyEnglishFortune string `gorm:"column:COMPANY_ENGLISH_FORTUNE"` CompanyFortuneCountry string `gorm:"column:COMPANY_FORTUNE_COUNTRY"` CompanyTypeOld string `gorm:"column:COMPANY_TYPE_OLD"` CompanyType string `gorm:"column:COMPANY_TYPE"` InvestmentLevel int `gorm:"column:INVESTMENT_LEVEL"` EntryTime time.Time `gorm:"column:ENTRY_TIME"` UpdateTime time.Time `gorm:"column:UPDATE_TIME"` IsValid string `gorm:"column:IS_VALID"` CreditNo string `gorm:"column:CREDIT_NO"` CompanyCode string `gorm:"column:COMPANY_CODE"` CompanyStatus string `gorm:"column:COMPANY_STATUS"` CompanyInfoID string `gorm:"column:COMPANY_INFO_ID"` EstablishDate time.Time `gorm:"column:ESTABLISH_DATE"` Capital int `gorm:"column:CAPITAL"` IndustryName string `gorm:"column:INDUSTRY_NAME"` DivisionCode string `gorm:"column:DIVISION_CODE"` } //TableName 设置表名 func (IAOF_INVEST_RELATION) TableName() string { return "IAOF_INVEST_RELATION" }