This commit is contained in:
cdle
2021-09-16 21:33:22 +08:00
parent df47e94e58
commit 7731289fab
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
package core
var Pushs = map[string]func(int, string){}
func Push(class string, uid int, content string) {
if push, ok := Pushs[class]; ok {
push(uid, content)
}
}