mirrored_repositories/a-cool-app/frontend/codind/lib/utils
/*
 * @Descripttion: 
 * @version: 
 * @Author: xiaoshuyui
 * @email: guchengxi1994@qq.com
 * @Date: 2022-05-09 21:13:57
 * @LastEditors: xiaoshuyui
 * @LastEditTime: 2022-05-11 21:33:29
 */
import 'package:codind/entity/entity.dart';
import 'package:codind/entity/knowledge_entity.dart';
import 'package:codind/utils/_abs_sqlite_utils.dart';

class SqliteUtils extends AbstractSqliteUtils {
  @override
  Future<void> addNewKnowledge(KnowledgeEntity w) async {}

  @override
  Future<WorkWorkWork> getWorkDays() async {
    WorkWorkWork work =
        WorkWorkWork(all: 11, delayed: 5, done: 5, underGoing: 1);
    return work;
  }

  @override
  Future<List<KnowledgeEntity>> queryAllKnowledge() async {
    return [];
  }

  @override
  Future<void> initFileBase() async {}

  @override
  Future<void> initKnowledgeBase() async {}

  @override
  Future<void> initTodoBase() async {}

  @override
  Future<void> initFriendsBase() async {}

  @override
  Future<Friend?> getFriend() async {
    return Friend(
        userEmail: "test@xiaoshuyui.org.cn",
        userName: "测试用户",
        password: "123456");
  }

  @override
  Future<void> insertFriend(Friend f) async {}

  @override
  Future<List<Friend>?> getAllFriends() async {
    return null;
  }

  @override
  Future<void> setUserName(String s) async {}

  @override
  Future<void> insertAnEvent(EventEntity e) async {}

  @override
  Future<List<EventEntity>> getAllEvents() async {
    return [];
  }

  @override
  Future<void> setEventStatus(int eventId, int statusId) async {}

  @override
  Future<void> addMdFile(FileLoggedToDbEntity entity) async {}

  @override
  Future<List<FileLoggedToDbEntity>> getAllMdFiles() async {
    return [];
  }

  @override
  Future<int> getKnowledgeCount() async {
    return 0;
  }

  @override
  Future<int> getMarkdownCount() async {
    return 0;
  }

  @override
  Future<int> getFriendsCount() async {
    return 0;
  }
}
