package com.kym.service.miniapp.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.kym.entity.miniapp.Account;
import com.kym.mapper.miniapp.AccountMapper;
import com.kym.service.miniapp.AccountService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户账户表 服务实现类
 * </p>
 *
 * @author skyline
 * @since 2023-08-07
 */
@Service
@DS("db-miniapp")
public class AccountServiceImpl extends MPJBaseServiceImpl<AccountMapper, Account> implements AccountService {

    @Override
    public Account getAccountByUserId(Long userId) {
        return lambdaQuery().eq(Account::getUserId, userId).one();
    }


}
