From fe460485972623f9ffcd4d29cb956bfddf9c97e3 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期二, 09 九月 2025 11:28:35 +0800 Subject: [PATCH] 代码补交 --- DolphinEnglishLearnStudent/Models/CommonModel.swift | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DolphinEnglishLearnStudent/Models/CommonModel.swift b/DolphinEnglishLearnStudent/Models/CommonModel.swift index d2d2a0c..8f612b6 100644 --- a/DolphinEnglishLearnStudent/Models/CommonModel.swift +++ b/DolphinEnglishLearnStudent/Models/CommonModel.swift @@ -390,8 +390,12 @@ var week: Int = 0 } -struct StudyScheduleModel:HandyJSON,Hashable{ - init() {} +class StudyScheduleModel:HandyJSON,Hashable{ + static func == (lhs: StudyScheduleModel, rhs: StudyScheduleModel) -> Bool { + return lhs.id == rhs.id + } + + required init() {} var answer: Int = 0 var day: Int = 0 -- Gitblit v1.7.1