1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- package request
- // 单元格的数据类型
- const (
- DateDT = iota + 1 //日期
- EdbDT // 指标类型
- CustomTextDT // 自定义文本
- InsertDataDT // 插值
- PopInsertDataDT // 弹框插值
- )
- // 单元格的日期类型类型
- const (
- CustomDateT = iota //手动输入日期
- SystemDateT // 系统日期
- EdbDateDT // 导入指标日期(指标库的最新日期)
- )
- // 单元格的日期类型类型
- const (
- SystemCurrDateT = iota + 1 //系统当前日期
- SystemCalculateDateT // 系统日期计算后的日期
- SystemFrequencyDateT // 导入系统日期相关的指定频率(所在周/旬/月/季/半年/年的最后/最早一天)
- )
- // MixedTableReq 混合表格保存请求参数
- type MixedTableReq struct {
- CellRelation string `description:"单元格关系"`
- Data [][]MixedTableCellDataReq `description:"混合表格单元格参数"`
- }
- // MixedTableCellDataReq 混合表格单元格参数
- type MixedTableCellDataReq struct {
- Uid string `description:"单元格唯一标识"`
- DataType int `description:"数据类型,1:日期,2:指标,3:自定义文本,4:插值"`
- DataTime string `description:"所属日期"`
- DataTimeType int `description:"日期类型:0:手动输入日期;1:导入系统日期;;3:导入指标日期(指标库的最新日期);"`
- EdbInfoId int `description:"指标id"`
- ShowValue string `description:"展示值"`
- Value string `description:"实际值"`
- }
- // CellRelationConf
- // @Description: 单元格的关系配置结构体
- type CellRelationConf struct {
- CellRelation
- //Type int `json:"type" description:"数据类型,跟MixedTableCellDataReq的DataType保持一致"`
- //Key string `json:"key" description:"单元格的唯一标识"`
- RelationDate CellRelation `json:"relation_date"`
- RelationEdb CellRelation `json:"relation_edb"`
- }
- // CellRelation
- // @Description: 单元格的关系结构体
- type CellRelation struct {
- Type int `json:"type" description:"数据类型,跟MixedTableCellDataReq的DataType保持一致"`
- Key string `json:"key" description:"单元格的唯一标识"`
- }
- // SystemDateConf
- // @Description: 系统导入日期配置
- type SystemDateConf struct {
- Source int `description:"类型,1:导入系统日期;2:导入系统日期计算后的日期;3:导入系统日期相关的指定频率"`
- CalculateNum int `description:"计算频度的数量"`
- CalculateFrequency string `description:"计算频度"`
- Frequency string `description:"指定频度"`
- Day string `description:"指定日期"`
- }
- // EdbDateConf
- // @Description: 导入指标日期配置
- type EdbDateConf struct {
- EdbInfoId int `description:"指标id"`
- }
|