diff --git a/docs/docs.go b/docs/docs.go index 2bbdaff8e1a5b157ee32e364f8fc3b8f0cdd7ecf..961fac528f7560436e7cf0112657c8df95706087 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1069,6 +1069,9 @@ const docTemplate = `{ }, "name": { "type": "string" + }, + "week": { + "type": "integer" } } }, diff --git a/docs/swagger.json b/docs/swagger.json index 347524a7ed0d12d203491c11bb782fd25477e17f..cfc7423fdd6b0882b7e89bfb2141d7f4d17df14c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1061,6 +1061,9 @@ }, "name": { "type": "string" + }, + "week": { + "type": "integer" } } }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 54712e298fb607ef19d713de3f948d5e9ce255de..0aff2644f2d1384f23ca5f4fb16e0ce4f1d02efe 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -152,6 +152,8 @@ definitions: type: string name: type: string + week: + type: integer type: object material.MaterialType: enum: diff --git a/model/domain/material/material.go b/model/domain/material/material.go index f3b11b7f8820cd71ecf03415eb9339b9a739d2fb..fa4d788dc7dad157bdc6e9c310c824722dad0bc4 100644 --- a/model/domain/material/material.go +++ b/model/domain/material/material.go @@ -9,6 +9,7 @@ type Material struct { CourseId string `json:"course_id"` CreatorEmail string `json:"creator_email"` Name string `json:"name"` + Week int `json:"week"` Contents []Content `json:"contents"` }