mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
Improve kernel API /api/notebook/* (#9987)
* 🐛 fix some notebook API
* Update notebook.go
This commit is contained in:
parent
adc42291c6
commit
abd79c29a8
2 changed files with 39 additions and 5 deletions
|
|
@ -649,6 +649,15 @@ func (conf *AppConf) Box(boxID string) *Box {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (conf *AppConf) GetBox(boxID string) *Box {
|
||||
for _, box := range conf.GetBoxes() {
|
||||
if box.ID == boxID {
|
||||
return box
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (conf *AppConf) BoxNames(boxIDs []string) (ret map[string]string) {
|
||||
ret = map[string]string{}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue