This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
leo
/
LAPP_GAAS_GFrame_BACKEND
Watch
2
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
添加websocket的功能接口代码
pull/344/head
zhangxin
3 years ago
parent
2c2559e82a
commit
820d629df8
3 changed files
with
30 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
global/global.go
+10
-0
models/base/ws.go
+10
-0
web/controllers/ws/ws.go
+ 10
- 0
global/global.go
View File
@ -0,0 +1,10 @@
/
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
@
Function
Name
:
*
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
-
*
@
Description
:
*
@
Function
Parameters
:
*
@
Return
Value
:
*
@
Author
:
Zhang
Xin
*
@
Date
:
2021
/
3
/
3
11
:
02
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
/
package
global
+ 10
- 0
models/base/ws.go
View File
@ -0,0 +1,10 @@
/
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
@
Function
Name
:
*
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
-
*
@
Description
:
*
@
Function
Parameters
:
*
@
Return
Value
:
*
@
Author
:
Zhang
Xin
*
@
Date
:
2021
/
3
/
3
11
:
02
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
/
package
base
+ 10
- 0
web/controllers/ws/ws.go
View File
@ -0,0 +1,10 @@
/
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
@
Function
Name
:
*
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
-
*
@
Description
:
*
@
Function
Parameters
:
*
@
Return
Value
:
*
@
Author
:
Zhang
Xin
*
@
Date
:
2021
/
3
/
3
11
:
02
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
/
package
ws
Write
Preview
Loading…
Cancel
Save