Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
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
chenweijian
hilo-user
Commits
8e972860
Commit
8e972860
authored
Jul 11, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派对申请
parent
f9845e27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
invite_apply.go
domain/model/invite_m/invite_apply.go
+3
-2
party_invite.go
route/invite_r/party_invite.go
+1
-1
No files found.
domain/model/invite_m/invite_apply.go
View file @
8e972860
...
...
@@ -33,8 +33,9 @@ func CreateInviteApply(model *domain.Model, userId, newUserId, subUserId uint64,
return
nil
}
func
GetApplyList
(
model
*
domain
.
Model
,
userIds
[]
uint64
,
pageIndex
,
pageSize
,
gType
int
,
beginTime
,
endTime
time
.
Time
)
([]
*
InviteApply
,
int64
,
error
)
{
db
:=
model
.
DB
()
.
Model
(
InviteApply
{})
.
Where
(
"user_id in (?)"
,
userIds
)
.
Where
(
"created_time >= ? and created_time <= ?"
,
beginTime
,
endTime
)
func
GetApplyList
(
model
*
domain
.
Model
,
subUserId
uint64
,
userIds
[]
uint64
,
pageIndex
,
pageSize
,
gType
int
,
beginTime
,
endTime
time
.
Time
)
([]
*
InviteApply
,
int64
,
error
)
{
db
:=
model
.
DB
()
.
Model
(
InviteApply
{})
.
Where
(
"user_id in (?) or sub_user_id = ?"
,
userIds
,
subUserId
)
.
Where
(
"created_time >= ? and created_time <= ?"
,
beginTime
,
endTime
)
switch
gType
{
// 1.已申请2.待审核3.已通过4.已拒绝
case
2
:
db
=
db
.
Where
(
"`status` = ?"
,
0
)
...
...
route/invite_r/party_invite.go
View file @
8e972860
...
...
@@ -186,7 +186,7 @@ func InviteApplyList(c *gin.Context) (*mycontext.MyContext, error) {
return
myCtx
,
nil
}
list
,
total
,
err
:=
invite_m
.
GetApplyList
(
model
,
agentIds
,
param
.
PageIndex
,
param
.
PageSize
,
param
.
Type
,
param
.
BeginTime
,
param
.
EndTime
)
list
,
total
,
err
:=
invite_m
.
GetApplyList
(
model
,
userId
,
agentIds
,
param
.
PageIndex
,
param
.
PageSize
,
param
.
Type
,
param
.
BeginTime
,
param
.
EndTime
)
if
err
!=
nil
{
model
.
Log
.
Errorf
(
"GetApplyList param:%v, err:%v"
,
param
,
err
)
return
myCtx
,
err
...
...
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