package com.seer.teach.pay.app.wallet.service.impl;

import com.seer.teach.pay.app.wallet.service.IAppUserCoinAccountService;
import com.seer.teach.pay.entity.PayCoinAccountEntity;
import com.seer.teach.pay.service.IPayCoinAccountService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor
public class AppUserCoinAccountServiceImpl implements IAppUserCoinAccountService {


    private final IPayCoinAccountService userCoinAccountService;

    /**
     * 根据用户ID获取账户账户
     *
     * @param userId 用户ID
     * @return 账户账户实体
     */
    @Override
    public PayCoinAccountEntity getByUserId(Integer userId) {
        return userCoinAccountService.getByUserId(userId);
    }
}