6
0

Compare commits

..

No commits in common. "49c41fb60b9f6e552d90a98bdeb876a80f38ea0b" and "45e449df11ad8c0842ec11b247ddadb2991ef9f6" have entirely different histories.

2 changed files with 2 additions and 7 deletions

View File

@ -3,7 +3,6 @@ package stat
import ( import (
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
"time"
) )
const ( const (
@ -54,10 +53,6 @@ func (c *Client) GetAgentList(req *GetAgentListReq) (resp *GetAgentListResp, err
// GetUserRoleRegPage 获取用户角色注册分页列表 // GetUserRoleRegPage 获取用户角色注册分页列表
func (c *Client) GetUserRoleRegPage(req *UserRoleRegReq) (resp *UserRoleRegResp, err error) { func (c *Client) GetUserRoleRegPage(req *UserRoleRegReq) (resp *UserRoleRegResp, err error) {
resp = CreateUserRoleRegPageResp() resp = CreateUserRoleRegPageResp()
// 设置超时时间
req.SetConnectTimeout(10 * time.Second)
// 设置读取超时时间
req.SetReadTimeout(20 * time.Second)
err = c.DoAction(req, resp) err = c.DoAction(req, resp)
if err != nil { if err != nil {
return return

View File

@ -88,8 +88,8 @@ func TestClient_GetUserRoleRegPage(t *testing.T) {
req := CreateUserRoleRegPageReq(UserRoleRegParam{ req := CreateUserRoleRegPageReq(UserRoleRegParam{
Page: 1, Page: 1,
PageSize: 10, PageSize: 10,
RoleId: "", RoleId: "-1",
RoleName: "温文波箐魔灵", RoleName: "",
}) })
resp, err := client.GetUserRoleRegPage(req) resp, err := client.GetUserRoleRegPage(req)