package com.fdkankan.ucenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fdkankan.ucenter.entity.AppSecret;
import com.fdkankan.ucenter.mapper.IAppSecretMapper;
import com.fdkankan.ucenter.service.IAppSecretService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2025-07-08
 */
@Service
public class AppSecretServiceImpl extends ServiceImpl<IAppSecretMapper, AppSecret> implements IAppSecretService {

    @Override
    public AppSecret getByAppId(String appId) {
        LambdaQueryWrapper<AppSecret> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(AppSecret::getAppId,appId);
        return this.getOne(wrapper);
    }
}
