This commit is contained in:
Liang Ding 2023-03-03 10:26:02 +08:00
parent efa308d945
commit 9c1d6a1a70
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
12 changed files with 63 additions and 67 deletions

View file

@ -16,20 +16,14 @@
package av
type Cell interface {
// Value 返回单元格的值。
Value() string
type Cell struct {
Value string
}
type CellBlock struct {
ID string `json:"id"`
*Cell
}
func NewCellBlock(blockID string) *CellBlock {
return &CellBlock{ID: blockID}
}
func (c *CellBlock) Value() string {
return c.ID
return &CellBlock{&Cell{Value: blockID}}
}