Merge branch 'develop/lgj/order'
This commit is contained in:
commit
49c41fb60b
@ -3,6 +3,7 @@ package stat
|
||||
import (
|
||||
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
|
||||
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -53,6 +54,10 @@ func (c *Client) GetAgentList(req *GetAgentListReq) (resp *GetAgentListResp, err
|
||||
// GetUserRoleRegPage 获取用户角色注册分页列表
|
||||
func (c *Client) GetUserRoleRegPage(req *UserRoleRegReq) (resp *UserRoleRegResp, err error) {
|
||||
resp = CreateUserRoleRegPageResp()
|
||||
// 设置超时时间
|
||||
req.SetConnectTimeout(10 * time.Second)
|
||||
// 设置读取超时时间
|
||||
req.SetReadTimeout(20 * time.Second)
|
||||
err = c.DoAction(req, resp)
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -88,8 +88,8 @@ func TestClient_GetUserRoleRegPage(t *testing.T) {
|
||||
req := CreateUserRoleRegPageReq(UserRoleRegParam{
|
||||
Page: 1,
|
||||
PageSize: 10,
|
||||
RoleId: "-1",
|
||||
RoleName: "",
|
||||
RoleId: "",
|
||||
RoleName: "温文波箐魔灵",
|
||||
})
|
||||
|
||||
resp, err := client.GetUserRoleRegPage(req)
|
||||
|
Loading…
Reference in New Issue
Block a user