parent
463d1bf61c
commit
2fb6724844
|
@ -55,8 +55,8 @@ public class UserVideoController {
|
||||||
|
|
||||||
//我的钱包
|
//我的钱包
|
||||||
@GetMapping("/findUserWallet")
|
@GetMapping("/findUserWallet")
|
||||||
public HealthR<List<UserWalletEntity>> findUserWallet(@RequestHeader Integer userId){
|
public HealthR<List<UserWalletEntity>> findUserWallet(){
|
||||||
List<UserWalletEntity> userWallets = userVideoService.findUserWallet(userId);
|
List<UserWalletEntity> userWallets = userVideoService.findUserWallet();
|
||||||
return HealthR.ok(userWallets);
|
return HealthR.ok(userWallets);
|
||||||
}
|
}
|
||||||
//用户消费记录
|
//用户消费记录
|
||||||
|
|
|
@ -24,7 +24,7 @@ public interface UserVideoMapper {
|
||||||
|
|
||||||
void deleteVideoBuy(@Param("videoId") Integer videoId);
|
void deleteVideoBuy(@Param("videoId") Integer videoId);
|
||||||
|
|
||||||
List<UserWalletEntity> findUserWallet(@Param("userId") Integer userId);
|
List<UserWalletEntity> findUserWallet();
|
||||||
|
|
||||||
List<UserConsumptionRecordEntity> findUserConsumptionRecordList();
|
List<UserConsumptionRecordEntity> findUserConsumptionRecordList();
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ public interface UserVideoService {
|
||||||
|
|
||||||
void deleteVideoBuy(Integer videoId);
|
void deleteVideoBuy(Integer videoId);
|
||||||
|
|
||||||
List<UserWalletEntity> findUserWallet(Integer userId);
|
List<UserWalletEntity> findUserWallet();
|
||||||
|
|
||||||
List<UserVideoCollectionVo> findVideoCollectionList(Integer userId);
|
List<UserVideoCollectionVo> findVideoCollectionList(Integer userId);
|
||||||
|
|
||||||
|
|
|
@ -141,8 +141,8 @@ public class UserVideoServiceImpl implements UserVideoService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<UserWalletEntity> findUserWallet(Integer userId) {
|
public List<UserWalletEntity> findUserWallet() {
|
||||||
return userVideoMapper.findUserWallet(userId);
|
return userVideoMapper.findUserWallet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ weight = #{weight}
|
||||||
</select>
|
</select>
|
||||||
<select id="findUserWallet" resultType="doctor.domain.entity.UserWalletEntity">
|
<select id="findUserWallet" resultType="doctor.domain.entity.UserWalletEntity">
|
||||||
select *
|
select *
|
||||||
from user_wallet where user_id=#{userId}
|
from user_wallet
|
||||||
</select>
|
</select>
|
||||||
<select id="findUserConsumptionRecordList" resultType="doctor.domain.entity.UserConsumptionRecordEntity">
|
<select id="findUserConsumptionRecordList" resultType="doctor.domain.entity.UserConsumptionRecordEntity">
|
||||||
select *
|
select *
|
||||||
|
|
Loading…
Reference in New Issue