edb_source.go 1.3 KB

12345678910111213141516171819
  1. package edb_source
  2. type EdbSource struct {
  3. EdbSourceId int `gorm:"column:edb_source_id;primary_key;AUTO_INCREMENT;NOT NULL;comment:'指标来源ID'"`
  4. SourceName string `gorm:"column:source_name;default:;NOT NULL;comment:'指标来源名称'"`
  5. TbName string `gorm:"column:table_name;default:;NOT NULL;comment:'数据表名'"`
  6. EdbAddMethod string `gorm:"column:edb_add_method;default:;NOT NULL;comment:'指标新增接口'"`
  7. EdbRefreshMethod string `gorm:"column:edb_refresh_method;default:;NOT NULL;comment:'指标刷新接口'"`
  8. IsBase uint8 `gorm:"column:is_base;default:0;NOT NULL;comment:'是否为基础指标:2-否;1-是'"`
  9. FromBridge int8 `gorm:"column:from_bridge;default:0;NOT NULL;comment:'是否来源于桥接服务:0-否;1-是'"`
  10. BridgeFlag string `gorm:"column:bridge_flag;default:;NOT NULL;comment:'桥接服务对象标识'"`
  11. SourceExtend string `gorm:"column:source_extend;default:;NOT NULL;comment:'扩展字段做查询用, 如嘉悦的wind对应wind、wind_stop'"`
  12. EdbCodeRequired int8 `gorm:"column:edb_code_required;default:0;NOT NULL;comment:'指标编码是否必填: 0-否; 1-是'"`
  13. IndexTableName string `gorm:"column:index_table_name;default:;NOT NULL;comment:'源指标表名'"`
  14. }
  15. func (e *EdbSource) TableName() string {
  16. return "edb_source"
  17. }