切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郑周
2 years ago
提交
a5f1f535a5f51d01120b33539219ae00c789c8ac
1 个父辈
7fbc817c
1. 修复 权限管理人员 分页BUG
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
3 行增加
和
6 行删除
pkg/application/role/command/role_user_query.go
pkg/application/role/role_user_service.go
pkg/application/role/command/role_user_query.go
查看文件 @
a5f1f53
...
...
@@ -6,8 +6,8 @@ import "github.com/beego/beego/v2/core/validation"
type
UserRoleQueryCommand
struct
{
CompanyId
int64
`cname:"公司ID" json:"companyId"`
RoleId
int64
`cname:"角色ID" json:"roleId,string" valid:"Required"`
PageNumber
int64
`cname:"分页页码" json:"pageNumber"`
PageSize
int64
`cname:"分页数量" json:"pageSize"`
PageNumber
int
`cname:"分页页码" json:"pageNumber"`
PageSize
int
`cname:"分页数量" json:"pageSize"`
}
func
(
in
*
UserRoleQueryCommand
)
Valid
(
validation
*
validation
.
Validation
)
{
...
...
pkg/application/role/role_user_service.go
查看文件 @
a5f1f53
...
...
@@ -104,10 +104,7 @@ func (rs *RoleUserService) ListRole(in *command.UserRoleQueryCommand) (interface
}()
ruRepository
:=
factory
.
CreateRoleUserRepository
(
map
[
string
]
interface
{}{
"transactionContext"
:
transactionContext
})
in
.
PageNumber
=
1
in
.
PageSize
=
9999999
tempList
,
err
:=
ruRepository
.
FindAllContainUser
(
1
,
10
,
in
.
CompanyId
,
in
.
RoleId
)
tempList
,
err
:=
ruRepository
.
FindAllContainUser
(
in
.
PageNumber
,
in
.
PageSize
,
in
.
CompanyId
,
in
.
RoleId
)
if
err
!=
nil
{
return
nil
,
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
err
.
Error
())
}
...
...
请
注册
或
登录
后发表评论