This commit is contained in:
Daniel 2023-06-13 09:52:41 +08:00
parent 4153d22acb
commit eda8da1bbe
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 67 additions and 3 deletions

View file

@ -47,7 +47,14 @@ func transferBlockRef(c *gin.Context) {
return
}
err := model.TransferBlockRef(fromID, toID)
var refIDs []string
if nil != arg["refIDs"] {
for _, refID := range arg["refIDs"].([]interface{}) {
refIDs = append(refIDs, refID.(string))
}
}
err := model.TransferBlockRef(fromID, toID, refIDs)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()