This commit is contained in:
Liang Ding 2023-03-02 18:17:06 +08:00
parent 68ad43b819
commit 9cede8f1a4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -213,6 +213,10 @@ func performTx(tx *Transaction) (ret *TxErr) {
ret = tx.doUnfoldHeading(op)
case "setAttrs":
ret = tx.setAttrs(op)
case "insertAttrViewBlock":
ret = tx.insertAttrViewBlock(op)
case "removeAttrViewBlock":
ret = tx.removeAttrViewBlock(op)
}
if nil != ret {
@ -232,6 +236,14 @@ func performTx(tx *Transaction) (ret *TxErr) {
return
}
func (tx *Transaction) insertAttrViewBlock(operation *Operation) (ret *TxErr) {
return
}
func (tx *Transaction) removeAttrViewBlock(operation *Operation) (ret *TxErr) {
return
}
func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {
var err error
id := operation.ID
@ -1021,6 +1033,7 @@ type Operation struct {
ParentID string `json:"parentID"`
PreviousID string `json:"previousID"`
NextID string `json:"nextID"`
SrcIDs []string `json:"srcIDs"` // 用于将块拖拽到属性视图中
RetData interface{} `json:"retData"`
discard bool // 用于标识是否在事务合并中丢弃