重构
This commit is contained in:
32
toolbox/models/data_model.py
Normal file
32
toolbox/models/data_model.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright (c) 2025 Jeffrey Hsu - JITToolBox
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class ClassInfo:
|
||||
full_name = ""
|
||||
|
||||
class_name: str
|
||||
class_number: int
|
||||
|
||||
|
||||
@dataclass
|
||||
class CourseInfo:
|
||||
course_name: str
|
||||
# 任课教师
|
||||
course_teacher_name: str
|
||||
# 课程负责人
|
||||
course_master_name: str
|
||||
Reference in New Issue
Block a user