From 61a2228d5601aa88cfc0fd8ee3c94d6db3c1d624 Mon Sep 17 00:00:00 2001 From: bayusamudra5502 <bayusamudra.55.02.com@gmail.com> Date: Sat, 1 Apr 2023 13:14:37 +0700 Subject: [PATCH] fix: add week material --- docs/docs.go | 3 +++ docs/swagger.json | 3 +++ docs/swagger.yaml | 2 ++ model/domain/material/material.go | 1 + 4 files changed, 9 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 2bbdaff..961fac5 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 347524a..cfc7423 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 54712e2..0aff264 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 f3b11b7..fa4d788 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"` } -- GitLab