123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- package request
- const (
- DateDT = iota + 1
- EdbDT
- CustomTextDT
- InsertDataDT
- PopInsertDataDT
- FormulateCalculateDataDT
- InsertEdbCalculateDataDT
- )
- const (
- CustomDateT = iota
- SystemDateT
- EdbDateDT
- )
- const (
- SystemCurrDateT = iota + 1
- SystemCalculateDateT
- SystemFrequencyDateT
- )
- type MixedTableReq struct {
- CellRelation string `description:"单元格关系"`
- Data [][]MixedTableCellDataReq `description:"混合表格单元格参数"`
- }
- 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:"实际值"`
- Extra string `description:"额外参数"`
- }
- type CellRelationConf struct {
- CellRelation
-
-
- RelationDate CellRelation `json:"relation_date"`
- RelationEdb CellRelation `json:"relation_edb"`
- }
- type CellRelation struct {
- Type int `json:"type" description:"数据类型,跟MixedTableCellDataReq的DataType保持一致"`
- Key string `json:"key" description:"单元格的唯一标识"`
- }
- type SystemDateConf struct {
- Source int `description:"类型,1:导入系统日期;2:导入系统日期计算后的日期;3:导入系统日期相关的指定频率"`
- CalculateNum int `description:"计算频度的数量"`
- CalculateFrequency string `description:"计算频度"`
- Frequency string `description:"指定频度"`
- Day string `description:"指定日期"`
- }
- type EdbDateConf struct {
- EdbInfoId int `description:"指标id"`
- }
- type CalculateConf struct {
- EdbInfoId int `description:"指标id"`
- DataTime string `description:"所属日期,这个日期有传递的话,那么就取上下两期+自己的数据;没有传就默认最近5期的数据"`
- Frequency string `description:"需要转换的频度"`
- Formula interface{} `description:"计算公式,默认是string,实际上还需要转成其他样式"`
- Calendar string `description:"公历/农历"`
- MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
- MoveFrequency string `description:"移动频度"`
- Source int `description:"1:累计值转月;2:累计值转季;3:同比值;4:同差值;5:N数值移动平均数计算;6:环比值;7:环差值;8:升频;9:降频;10:时间移位;11:超季节性;12:年化;13:累计值;14:累计值年初至今;15:指数修匀;16:日均值"`
- }
- type BaseCalculateConf struct {
- Formula string `description:"计算公式,默认是string,实际上还需要转成其他样式"`
- RelationEdbInfoList []RelationCell `description:"关联单元格(计算公式中关联的单元格,用于计算的时候去匹配)"`
- }
- type RelationCell struct {
- Tag string `description:"指标标签"`
- Row string `description:"第几行"`
- Key string `json:"key" description:"单元格的唯一标识"`
- }
|