🎨 Update av

This commit is contained in:
Daniel 2023-06-10 17:07:50 +08:00
parent 639f083d9a
commit 42f9c6e657
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 22 additions and 15 deletions

View file

@ -17,14 +17,21 @@
package av
type Cell struct {
ID string `json:"id"`
Value *CellValue `json:"value"`
RenderValue interface{} `json:"renderValue"`
Color string `json:"color"`
BgColor string `json:"bgColor"`
ID string `json:"id"`
Value *CellValue `json:"value"`
Color string `json:"color"`
BgColor string `json:"bgColor"`
}
type CellValue struct {
Type ColumnType `json:"type"`
Value interface{} `json:"value"`
Type ColumnType `json:"type"`
Data interface{} `json:"data"`
}
func (v *CellValue) String() string {
switch v.Type {
case ColumnTypeText:
return v.Data.(string)
}
return v.Data.(string)
}