🎨 Update av

This commit is contained in:
Daniel 2023-06-10 17:20:51 +08:00
parent 42f9c6e657
commit 461a438df0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 13 additions and 25 deletions

View file

@ -17,21 +17,9 @@
package av
type Cell struct {
ID string `json:"id"`
Value *CellValue `json:"value"`
Color string `json:"color"`
BgColor string `json:"bgColor"`
}
type CellValue struct {
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)
ID string `json:"id"`
Value string `json:"value"`
RenderValue interface{} `json:"renderValue"`
Color string `json:"color"`
BgColor string `json:"bgColor"`
}