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
cdb3f28d
Commit
cdb3f28d
authored
Mar 22, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入家族审核
parent
c2492d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
group_power_apply.go
domain/model/groupPower_m/group_power_apply.go
+8
-0
group_power.go
route/group_power_r/group_power.go
+6
-0
No files found.
domain/model/groupPower_m/group_power_apply.go
View file @
cdb3f28d
...
...
@@ -80,3 +80,11 @@ func OptGroupPowerApplyList(model *domain.Model, familyId uint64, pageSize, page
nextIdx
,
hasNext
:=
common
.
PageNext
(
count
,
pageIndex
,
pageSize
)
return
rows
,
nextIdx
,
hasNext
,
nil
}
func
DelGroupPowerApplyJoinNoDeal
(
model
*
domain
.
Model
,
userId
uint64
)
error
{
err
:=
model
.
Db
.
Exec
(
"delete from group_power_apply_join where user_id=? and is_accept = 0"
,
userId
)
.
Error
if
err
!=
nil
{
return
myerr
.
WrapErr
(
err
)
}
return
nil
}
route/group_power_r/group_power.go
View file @
cdb3f28d
...
...
@@ -1095,6 +1095,12 @@ func GroupPowerApplyPass(c *gin.Context) (*mycontext.MyContext, error) {
if
err
!=
nil
{
return
err
}
// 删除他在其他家族未处理的申请
err
=
groupPower_m
.
DelGroupPowerApplyJoinNoDeal
(
model
,
userId
)
if
err
!=
nil
{
return
err
}
return
nil
})
if
err
!=
nil
{
...
...
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