Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
b8d9f1a4
Commit
b8d9f1a4
authored
Mar 10, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test handelr
parent
164bff40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
inner.go
route/group_power_r/inner.go
+21
-0
router.go
route/router.go
+1
-0
No files found.
route/group_power_r/inner.go
View file @
b8d9f1a4
...
...
@@ -4,10 +4,14 @@ import (
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/mycontext"
"git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/sdk/emas"
"github.com/gin-gonic/gin"
"hilo-group/_const/enum/groupPower_e"
"hilo-group/_const/enum/msg_e"
"hilo-group/cv/group_power_cv"
"hilo-group/domain/model/groupPower_m"
"hilo-group/domain/model/msg_m"
"hilo-group/domain/model/user_m"
"hilo-group/resp"
)
...
...
@@ -67,3 +71,20 @@ func MGetGroupPowers(c *gin.Context) (*mycontext.MyContext, error) {
resp
.
ResponseOk
(
c
,
response
)
return
myCtx
,
nil
}
func
Test
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
var
model
=
domain
.
CreateModelNil
()
if
err
:=
msg_m
.
NewUserRecord
(
model
,
4522
,
msg_e
.
GroupPowerUserLeave
,
"frozen"
,
4522
,
""
,
""
,
""
,
""
,
""
)
.
Persistent
();
err
!=
nil
{
return
nil
,
err
}
mgrUser
,
_
:=
user_m
.
GetUser
(
model
,
4522
)
err
:=
msg_m
.
SendEmasMsgAssistant
(
model
,
mgrUser
.
ExternalId
,
mgrUser
.
DeviceType
)
if
err
!=
nil
{
return
nil
,
err
}
err
=
emas
.
SendIosMsgAll
(
"全部消息测试"
)
if
err
!=
nil
{
return
nil
,
err
}
return
nil
,
nil
}
route/router.go
View file @
b8d9f1a4
...
...
@@ -136,6 +136,7 @@ func InitRouter() *gin.Engine {
{
innerGroupPower
.
GET
(
"/infos"
,
wrapper
(
group_power_r
.
MGetGroupPowers
))
}
r
.
GET
(
"/test"
,
wrapper
(
group_power_r
.
Test
))
return
r
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment