/*
 * Author: wangjian
 * 生成Service
 */
package com.tofly.third.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tofly.third.entity.ApiUser;
import com.tofly.third.mapper.ApiUserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * ${comments}
 *
 * @author tofly code generator
 * @date Wed Dec 03 00:00:00 CST 2025
 */
@Slf4j
@Service
public class ApiUserService extends ServiceImpl<ApiUserMapper, ApiUser> {

    public  ApiUser isValidateLogin(String userName,String userPass){
      ApiUser apiUser=this.lambdaQuery().eq(ApiUser::getAppid,userName).and(p->p.eq(ApiUser::getAppsecret,userPass)).eq(ApiUser::getIsenable,"1").one();
      return  apiUser;
    }

}
