forked from gopheracademy/congo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
review.go
42 lines (34 loc) · 1 KB
/
review.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
import (
"github.com/gopheracademy/congo/app"
"github.com/raphael/goa"
)
// ReviewController implements the review resource.
type ReviewController struct {
goa.Controller
}
// NewReviewController creates a review controller.
func NewReviewController(service goa.Service) app.ReviewController {
return &ReviewController{Controller: service.NewController("ReviewController")}
}
// Create runs the create action.
func (c *ReviewController) Create(ctx *app.CreateReviewContext) error {
return nil
}
// Delete runs the delete action.
func (c *ReviewController) Delete(ctx *app.DeleteReviewContext) error {
return nil
}
// List runs the list action.
func (c *ReviewController) List(ctx *app.ListReviewContext) error {
return nil
}
// Show runs the show action.
func (c *ReviewController) Show(ctx *app.ShowReviewContext) error {
res := &app.Review{}
return ctx.OK(res, "default")
}
// Update runs the update action.
func (c *ReviewController) Update(ctx *app.UpdateReviewContext) error {
return nil
}