切换导航条
此项目
正在载入...
登录
allied-creation
/
allied-creation-gateway
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
yangfu
3 years ago
提交
73421ce2b6693a24d9cb3571a4cb7421aa5f5499
1 个父辈
4885f7da
列表权限修改
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
pkg/application/web/roles/dto/dto.go
pkg/application/web/roles/service/roles.go
pkg/application/web/users/dto/dto.go
pkg/application/web/users/service/users.go
pkg/application/web/roles/dto/dto.go
查看文件 @
73421ce
...
...
@@ -9,7 +9,7 @@ type RoleItem struct {
OrgName
string
`json:"orgName"`
RoleType
int
`json:"roleType"`
Ext
Ext
`json:"ext"`
AuthFlag
int
`json:"authFlag"`
// 1:可操作(编辑,修改等)
AuthFlag
bool
`json:"authFlag"`
// 1:可操作(编辑,修改等)
}
type
Ext
struct
{
...
...
pkg/application/web/roles/service/roles.go
查看文件 @
73421ce
...
...
@@ -109,7 +109,7 @@ func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) (
Ext
:
v
.
Ext
,
}
if
int64
(
v
.
OrgID
)
==
roleListQuery
.
Operator
.
OrgId
{
item
.
AuthFlag
=
1
item
.
AuthFlag
=
true
}
result
=
append
(
result
,
item
)
}
...
...
pkg/application/web/users/dto/dto.go
查看文件 @
73421ce
...
...
@@ -9,7 +9,7 @@ type CompanyUserItem struct {
UserId
string
`json:"userId"`
UserName
string
`json:"userName"`
UserType
int
`json:"userType"`
AuthFlag
int
`json:"authFlag"`
// 1:可操作(编辑,修改等)
AuthFlag
bool
`json:"authFlag"`
// 1:可操作(编辑,修改等)
}
//CompanyUserInfo 用户数据详情
...
...
@@ -85,5 +85,5 @@ type CooperationUserItem struct {
UserName
string
`json:"userName"`
OrgName
string
`json:"orgName"`
OrgId
string
`json:"orgId"`
AuthFlag
int
`json:"authFlag"`
// 1:可操作(编辑,修改等)
AuthFlag
bool
`json:"authFlag"`
// 1:可操作(编辑,修改等)
}
...
...
pkg/application/web/users/service/users.go
查看文件 @
73421ce
...
...
@@ -211,7 +211,7 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co
UserType
:
v
.
UserType
,
}
if
v
.
Org
.
OrgId
==
int
(
companyUserListQuery
.
Operator
.
OrgId
)
{
item
.
AuthFlag
=
1
item
.
AuthFlag
=
true
}
listData
=
append
(
listData
,
item
)
}
...
...
@@ -402,7 +402,7 @@ func (usersService *UsersService) CooperationUserList(cooperationUserListQuery *
OrgId
:
strconv
.
Itoa
(
v
.
Org
.
OrgId
),
}
if
v
.
Org
.
OrgId
==
int
(
cooperationUserListQuery
.
Operator
.
OrgId
)
{
item
.
AuthFlag
=
1
item
.
AuthFlag
=
true
}
if
!
v
.
CooperationInfo
.
CooperationDeadline
.
IsZero
()
&&
v
.
CooperationInfo
.
CooperationDeadline
.
After
(
time
.
Unix
(
1136044800
,
0
))
{
item
.
CooperationDeadline
=
v
.
CooperationInfo
.
CooperationDeadline
.
Format
(
"2006-01-02"
)
...
...
请
注册
或
登录
后发表评论