12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- package main
- import "time"
- type GlobalConf struct {
- MongoP MgoConf
- MongoB MgoConf
- Mongo181 MgoConf
- Env EnvConf
- Mysql MysqlConf
- Log Log
- Es EsConf
- }
- type MgoConf struct {
- Host string
- DB string
- Coll string // 查询表
- Username string
- Password string
- Size int
- Direct bool
- }
- type Log struct {
- LogPath string
- MaxSize int
- Compress bool
- MaxAge int
- MaxBackups int
- LogLevel string
- Format string
- }
- type EnvConf struct {
- File string
- Sheet string
- Savecoll string
- BidFields []string
- NjFields []string
- }
- type MysqlConf struct {
- Address string
- Dbname string
- Dbname2 string
- Dbname3 string
- Username string
- Password string
- Table string
- Table2 string
- Table3 string
- Table4 string
- Table5 string
- Table6 string
- Table7 string
- Stime string
- Etime string
- Test bool
- }
- type EsConf struct {
- URL string
- Username string
- Password string
- Index string
- }
- type DwdFnzjFollowRecord struct {
- ID uint64 `gorm:"column:id;primaryKey;autoIncrement;not null;comment:自增主键" json:"id"`
- ProposedID string `gorm:"column:proposed_id;type:varchar(32);not null;comment:拟在建项目ID" json:"proposed_id"`
- InfoID string `gorm:"column:infoid;type:varchar(32);comment:标讯id" json:"infoid"`
- Title string `gorm:"column:title;type:varchar(500);comment:标题" json:"title"`
- FollowNum string `gorm:"column:follow_num;type:varchar(15);comment:跟进数量" json:"follow_num"`
- ProjectStageCode string `gorm:"column:project_stage_code;type:varchar(100);comment:进展阶段" json:"project_stage_code"`
- JYBXHref string `gorm:"column:jybxhref;type:varchar(500);comment:剑鱼标讯链接" json:"jybxhref"`
- ProjectScale string `gorm:"column:project_scale;type:text;comment:建设规模及建设内容" json:"project_scale"`
- PublishTime *time.Time `gorm:"column:publishtime;type:datetime;comment:跟进时间(发布时间)" json:"publishtime"`
- CreateTime time.Time `gorm:"column:createtime;type:datetime;not null;comment:创建时间" json:"createtime"`
- }
- // TableName sets the insert table name for this struct type
- func (DwdFnzjFollowRecord) TableName() string {
- return "dwd_f_nzj_follw_record"
- }
|