Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
haoyanbin
nbya
Commits
ce2dca93
Commit
ce2dca93
authored
Jan 29, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
afe61fba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
org_team_user.go
app/operate/apis/org_team_user.go
+9
-0
org_team_user.go
app/operate/service/dto/org_team_user.go
+1
-0
No files found.
app/operate/apis/org_team_user.go
View file @
ce2dca93
...
@@ -20,6 +20,13 @@ type OrgTeamUser struct {
...
@@ -20,6 +20,13 @@ type OrgTeamUser struct {
api
.
Api
api
.
Api
}
}
func
(
e
OrgTeamUser
)
getClubId
(
c
*
gin
.
Context
)
string
{
sOrgTeamUser
:=
service
.
OrgClubUser
{}
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sOrgTeamUser
.
Service
)
_
,
teamId
:=
sOrgTeamUser
.
GetClubId
(
user
.
GetUserId
(
c
))
return
teamId
}
// GetPage <球队>工作人员列表
// GetPage <球队>工作人员列表
// @Summary <球队>工作人员列表
// @Summary <球队>工作人员列表
// @Description <球队>工作人员列表
// @Description <球队>工作人员列表
...
@@ -48,6 +55,8 @@ func (e OrgTeamUser) GetPage(c *gin.Context) {
...
@@ -48,6 +55,8 @@ func (e OrgTeamUser) GetPage(c *gin.Context) {
list
:=
make
([]
dto
.
OrgTeamUserGetPageReply
,
0
)
list
:=
make
([]
dto
.
OrgTeamUserGetPageReply
,
0
)
var
count
int64
var
count
int64
req
.
ClubId
=
e
.
getClubId
(
c
)
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
err
=
s
.
GetPage
(
&
req
,
p
,
&
list
,
&
count
)
if
err
!=
nil
{
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取球队人员账户信息 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取球队人员账户信息 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
...
...
app/operate/service/dto/org_team_user.go
View file @
ce2dca93
...
@@ -8,6 +8,7 @@ import (
...
@@ -8,6 +8,7 @@ import (
type
OrgTeamUserGetPageReq
struct
{
type
OrgTeamUserGetPageReq
struct
{
dto
.
Pagination
`search:"-"`
dto
.
Pagination
`search:"-"`
ClubId
string
`form:"clubId" search:"-"`
//球队名称
TeamName
string
`form:"teamName" search:"type:contains;column:team_name;table:ot" comment:"球队名称"`
//球队名称
TeamName
string
`form:"teamName" search:"type:contains;column:team_name;table:ot" comment:"球队名称"`
//球队名称
Name
string
`form:"name" search:"type:contains;column:name;table:otu" comment:"姓名"`
//姓名
Name
string
`form:"name" search:"type:contains;column:name;table:otu" comment:"姓名"`
//姓名
Status
string
`form:"status" search:"type:exact;column:status;table:su" comment:"状态"`
//状态 1 离职 2 在职
Status
string
`form:"status" search:"type:exact;column:status;table:su" comment:"状态"`
//状态 1 离职 2 在职
...
...
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