save all the course json date to database

This commit is contained in:
lostecho
2024-05-26 19:35:57 +08:00
parent 6e4c28fb76
commit b7d1f71575
6 changed files with 175 additions and 6 deletions

View File

@@ -1,4 +1,10 @@
class Attachment:
id: None
course_id: None
name: ""
content: ""
url: ""
def __init__(self, attachment_id, course_id, name, content, url):
self.id = attachment_id
self.course_id = course_id