Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
9901faa4
Commit
9901faa4
authored
Mar 19, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fallback + user/gets
parent
1e6bd0e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
192 additions
and
3 deletions
+192
-3
ContactFeignClientFallBack.java
...soft/common/util/fallback/ContactFeignClientFallBack.java
+187
-0
ContactFeignClient.java
...g/rcisoft/common/util/feignClient/ContactFeignClient.java
+5
-3
No files found.
src/main/java/org/rcisoft/common/util/fallback/ContactFeignClientFallBack.java
0 → 100644
View file @
9901faa4
package
org
.
rcisoft
.
common
.
util
.
fallback
;
import
lombok.extern.slf4j.Slf4j
;
import
org.rcisoft.common.util.feignClient.ContactFeignClient
;
import
org.rcisoft.common.util.feignDto.*
;
import
org.rcisoft.core.result.Ret
;
import
java.util.List
;
@Slf4j
public
class
ContactFeignClientFallBack
implements
ContactFeignClient
{
@Override
public
Ret
<
List
<
GetAllRspDTO
>>
getUsersByUpdateTime
(
String
corpId
,
String
updateTime
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 /api/sm/user/getUsersByUpdateTime 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
UserGetRspDTO
>
accountGetMyInfo
(
String
corpId
,
String
id
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 /user/get 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
MTRoleGroupInfoRspDTO
>>
listRoleGroup
(
String
corpId
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 micro_app/isHaveApps 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
RoleGetListRspDTO
>>
listRole
(
String
name
,
String
corpId
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 micro_app/isHaveApps 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
MTUserInfoRspDTO
>>
userGets
(
MTUserGetsReqDTO
mtUserGetsReqDTO
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 /user/gets 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
MTAccountIdRspDTO
>>
accountGetUserHead
(
MTUserGetsAccountReqDTO
mtUserGetsReqDTO
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 accountGetUserHead 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
GetAllRspDTO
>>
userAll
(
String
corpId
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 userAll 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
MTRoleUserInfoRspDTO
>>
getRoleInfoList
(
String
roleId
,
String
corpId
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 getRoleInfoList 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
RoleInfoRspDTO
>
getRoleById
(
String
id
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 getRoleById 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
MTDeptTreeUserInfoRspDTO
>
getDeptTree
(
Long
corpId
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 getDeptTree 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
DeptGetRspDTO
>
getDeptById
(
String
id
,
Long
corpId
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 getDeptById 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
MTGetUserByDeptIdsRspDTO
>>
userGetUserByDeptIds
(
GetUserByDeptIdReqDTO
getUserByDeptIdReqDTO
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 userGetUserByDeptIds 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
MTDeptSubDeptUserPagelistRspDTO
>
deptSubDeptUserPagelist
(
Long
corpId
,
Long
pid
,
Integer
pageNum
,
Integer
pageSize
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 deptSubDeptUserPagelist 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
MTGetUserRoleRspDTO
>>
userGetUserRole
(
GetUserRoleReqDTO
req
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 userGetUserRole 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
MTUserGetPageListRspDTO
>
userSearchByName
(
Long
corpId
,
String
name
,
Integer
pageNum
,
Integer
pageSize
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 userSearchByName 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
DeptAllUserPageRspDTO
<
UserGetPageListByDeptCascadeRspDTO
>>
allUserListByDept
(
Long
corpId
,
String
deptId
,
Integer
pageNum
,
Integer
pageSize
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 allUserListByDept 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
DeptAllUserPageRspDTO
<
UserGetStudentTrackingRspDTO
>>
allUserListByDeptStuTrack
(
Long
corpId
,
String
deptId
,
Integer
pageNum
,
Integer
pageSize
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 allUserListByDeptStuTrack 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
GetAllRspDTO
>>
getUserByDeptIds
(
GetUserByDeptIdReqDTO
getUserByDeptIdReqDTO
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 getUserByDeptIds 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
DeptGetRspDTO
>
deptGetById
(
Long
corpId
,
String
name
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 deptGetById 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
FindDepartByNameDTO
>>
deptListDeptInfoByName
(
String
corpId
,
String
name
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 deptListDeptInfoByName 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
CorpGetManager
>>
corpGetManager
(
Long
corpId
,
Integer
sysLevel
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 corpGetManager 失败-------------------"
);
return
new
Ret
();
}
@Override
public
Ret
<
List
<
String
>>
getSubUserIdsByDeptIds
(
GetSubUserIdsByDeptIdsReqDTO
getSubUserIdsByDeptIdsReqDTO
,
String
zxClientType
,
Long
zxAccountId
)
{
log
.
error
(
"---------------调接口 micro_app/isHaveApps 失败-------------------"
);
return
new
Ret
();
}
}
src/main/java/org/rcisoft/common/util/feignClient/ContactFeignClient.java
View file @
9901faa4
package
org
.
rcisoft
.
common
.
util
.
feignClient
;
import
org.rcisoft.common.util.fallback.ContactFeignClientFallBack
;
import
org.rcisoft.core.result.Ret
;
import
org.rcisoft.common.util.feignDto.*
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -12,7 +14,7 @@ import java.util.List;
* 通讯录客户端接口
*/
@Service
@FeignClient
(
value
=
"spcl-sm-user"
)
@FeignClient
(
value
=
"spcl-sm-user"
,
fallback
=
ContactFeignClientFallBack
.
class
)
public
interface
ContactFeignClient
{
...
...
@@ -57,7 +59,7 @@ public interface ContactFeignClient {
/**
* 根据用户id获取用户信息(多个)
*/
@RequestMapping
(
value
=
"/
user/gets"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
api/sm/user/gets"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
Ret
<
List
<
MTUserInfoRspDTO
>>
userGets
(
@RequestBody
MTUserGetsReqDTO
mtUserGetsReqDTO
,
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
...
...
@@ -241,7 +243,7 @@ public interface ContactFeignClient {
/**
* 根据部门ids 获取部门及子部门多有人员id(未去重)
*/
@RequestMapping
(
value
=
"/user/get_sub_userIds_by_dept_ids"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
api/sm/
user/get_sub_userIds_by_dept_ids"
,
method
=
RequestMethod
.
POST
)
Ret
<
List
<
String
>>
getSubUserIdsByDeptIds
(
@RequestBody
GetSubUserIdsByDeptIdsReqDTO
getSubUserIdsByDeptIdsReqDTO
,
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
...
...
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