|
@@ -16,11 +16,11 @@ import (
|
|
|
//弘则手工数据
|
|
|
|
|
|
type ManualEdbdata struct {
|
|
|
- TradeCode string `gorm:"column:TRADE_CODE;primaryKey" description:"指标编码"`
|
|
|
+ TradeCode string `gorm:"column:TRADE_CODE;autoIncrement:false;primaryKey" description:"指标编码"`
|
|
|
//TradeCode string `orm:"column(TRADE_CODE);pk" description:"指标编码"`
|
|
|
- Dt string `orm:"column(DT)" description:"日期"`
|
|
|
- Close string `orm:"column(CLOSE)" description:"值"`
|
|
|
- ModifyTime time.Time `orm:"column(modify_time)" description:"修改时间"`
|
|
|
+ Dt string `gorm:"column:DT" description:"日期"`
|
|
|
+ Close string `orm:"column:CLOSE" description:"值"`
|
|
|
+ ModifyTime time.Time `orm:"column:modify_time" description:"修改时间"`
|
|
|
}
|
|
|
|
|
|
// AfterFind 在该模型上设置钩子函数,把日期转成正确的string,所以查询函数只能用Find函数,First或者Scan是不会触发该函数的来获取数据
|