Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-operation-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-operation-api
Commits
48b7e7d0
Commit
48b7e7d0
authored
Jul 06, 2023
by
黄智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户详情调整
parent
b08e5d7c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
src/bean/vo/response/system_organization.go
src/bean/vo/response/system_organization.go
+1
-0
src/router/system_access_rule.go
src/router/system_access_rule.go
+2
-2
src/service/system_user.go
src/service/system_user.go
+1
-0
No files found.
src/bean/vo/response/system_organization.go
View file @
48b7e7d0
...
...
@@ -41,6 +41,7 @@ type OrgUserDetail struct {
Phone
string
`json:"phone" xorm:"phone"`
// 联系人电话
SystemAccount
string
`json:"system_account" xorm:"system_account"`
// 系统账号
SystemRole
[]
string
`json:"system_role" xorm:"-"`
// 系统角色id
SystemRoleName
[]
string
`json:"system_role_name" xorm:"-"`
// 系统角色名称
Organization
string
`json:"organization" xorm:"organization"`
// 所属组织
OrganizationId
string
`json:"organization_id"`
// 所属组织
CreatedBy
int
`json:"created_by"`
// 创建者
...
...
src/router/system_access_rule.go
View file @
48b7e7d0
src/service/system_user.go
View file @
48b7e7d0
...
...
@@ -59,6 +59,7 @@ func (o *User) OrgUserDetail(id int) (interface{}, error) {
}
for
_
,
v
:=
range
systemUserRoles
{
result
.
SystemRole
=
append
(
result
.
SystemRole
,
v
.
RoleId
)
result
.
SystemRoleName
=
append
(
result
.
SystemRoleName
,
v
.
RoleName
)
}
return
result
,
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