package com.ai.da.service;

import com.ai.da.mapper.primary.entity.AccountLoginLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 服务类
 *
 * @author easy-generator
 * @since 2022-08-11
 */
public interface AccountLoginLogService extends IService<AccountLoginLog> {

    /**
     * 保存日志
     *
     * @param ip
     * @param accountId
     * @return
     */
    Boolean saveLoginLog(String ip, Long accountId);

    /**
     * 根据账户查询
     *
     * @param AccountId
     * @return
     */
    List<AccountLoginLog> getByUserId(Long AccountId);

}
