mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 API getTag add an optional parameter ignoreMaxListHint https://github.com/siyuan-note/siyuan/issues/16000
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
53f0467f73
commit
9f3cd7ca95
7 changed files with 31 additions and 8 deletions
|
|
@ -163,6 +163,16 @@ func PushMsg(msg string, timeout int) (msgId string) {
|
|||
return
|
||||
}
|
||||
|
||||
func PushMsgWithApp(app, msg string, timeout int) (msgId string) {
|
||||
msgId = gulu.Rand.String(7)
|
||||
if "" == app {
|
||||
BroadcastByType("main", "msg", 0, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout})
|
||||
return
|
||||
}
|
||||
BroadcastByTypeAndApp("main", app, "msg", 0, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout})
|
||||
return
|
||||
}
|
||||
|
||||
func PushErrMsg(msg string, timeout int) (msgId string) {
|
||||
msgId = gulu.Rand.String(7)
|
||||
BroadcastByType("main", "msg", -1, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue