Skip to content

Commit

Permalink
删除弃用的接口
Browse files Browse the repository at this point in the history
  • Loading branch information
YANGDASHEN committed Jun 20, 2023
1 parent f8dd262 commit 860650f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ public interface UserFeignClient {
@GetMapping(value = FeignInsideAuthConfig.FEIGN_INSIDE_URL_PREFIX + "/user/getUserByUserIds")
ServerResponseEntity<List<UserApiVO>> getUserByUserIds(@RequestParam("userId") List<Long> userIds);

/**
* 根据用户id获取用户详细信息
* @param userId 用户id
* @return 用户详细信息
*/
@GetMapping(value = FeignInsideAuthConfig.FEIGN_INSIDE_URL_PREFIX + "/user/getUserAndOpenIdsByUserId")
ServerResponseEntity<UserApiVO> getUserAndOpenIdsByUserId(@RequestParam("userId") Long userId);

/**
* 获取用户数据
* @param userId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,4 @@ public ServerResponseEntity<UserApiVO> getUserData(Long userId) {
return ServerResponseEntity.success(user);
}

@Override
public ServerResponseEntity<UserApiVO> getUserAndOpenIdsByUserId(Long userId) {
return ServerResponseEntity.success(userService.getUserAndOpenIdsByUserId(userId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,4 @@ public interface UserMapper {
* @return
*/
List<UserApiVO> getUserByUserIds(@Param("userIds") List<Long> userIds);

/**
* 根据用户id获取用户详细信息
* @param userId 用户id
* @return 用户详细信息
*/
UserApiVO getUserAndOpenIdsByUserId(@Param("userId") Long userId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ public interface UserService {
*/
List<UserApiVO> getUserByUserIds(List<Long> userIds);

/**
* 根据用户id获取用户详细信息
* @param userId 用户id
* @return 用户详细信息
*/
UserApiVO getUserAndOpenIdsByUserId(Long userId);

/**
* 保存用户
* @param param 注册信息
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ public List<UserApiVO> getUserByUserIds(List<Long> userIds) {
return userMapper.getUserByUserIds(userIds);
}

@Override
public UserApiVO getUserAndOpenIdsByUserId(Long userId) {
return userMapper.getUserAndOpenIdsByUserId(userId);
}

@Override
@GlobalTransactional(rollbackFor = Exception.class)
@Transactional(rollbackFor = Exception.class)
Expand Down
7 changes: 0 additions & 7 deletions mall4cloud-user/src/main/resources/mapper/UserMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
select <include refid="Vo_Column_List"/> from user where user_id = #{userId}
</select>

<select id="getUserAndOpenIdsByUserId" resultMap="userAndOpenIdsMap">
select <include refid="Vo_Column_List"/>,ac.biz_user_id as bizUserIdList from user u
left JOIN tz_app_connect ac ON u.user_id = ac.user_id and biz_user_id is not null
WHERE u.user_id = #{userId}
</select>


<insert id="save">
insert into user (`user_id`,`nick_name`,`pic`,`status`)
values (#{user.userId},#{user.nickName},#{user.pic},#{user.status});
Expand Down

0 comments on commit 860650f

Please sign in to comment.