diff --git a/go_fabric/api/v1/poem.go b/go_fabric/api/v1/poem.go index e0022ac..e0fa367 100644 --- a/go_fabric/api/v1/poem.go +++ b/go_fabric/api/v1/poem.go @@ -11,7 +11,7 @@ import ( func PoemGet(c *gin.Context) { var PoemGet service.PoemService if err := c.ShouldBind(&PoemGet); err == nil { - res := PoemGet.GetPoems(c.Request.Context()) + res := PoemGet.GetPoems(c.Request.Context(), c.Param("Id")) c.JSON(http.StatusOK, res) } else { c.JSON(http.StatusBadRequest, ErrorResponse(err)) //400参数错误 diff --git a/go_fabric/service/poem.go b/go_fabric/service/poem.go index b671bb6..454dacf 100644 --- a/go_fabric/service/poem.go +++ b/go_fabric/service/poem.go @@ -17,3 +17,7 @@ type ValidEmailService struct { func (service *PoemService) GetPoems(ctx context.Context, aId string) serializer.Response { } + +//统计诗人-朝代 + +//统计诗句类型