-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathadminuser.go
48 lines (40 loc) · 1.17 KB
/
adminuser.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
43
44
45
46
47
48
package main
import (
"github.com/goadesign/goa"
"github.com/gopheracademy/congo/app"
)
// AdminuserController implements the adminuser resource.
type AdminuserController struct {
*goa.Controller
}
// NewAdminuserController creates a adminuser controller.
func NewAdminuserController(service *goa.Service) *AdminuserController {
return &AdminuserController{Controller: service.NewController("AdminuserController")}
}
// Create runs the create action.
func (c *AdminuserController) Create(ctx *app.CreateAdminuserContext) error {
// TBD: implement
return nil
}
// Delete runs the delete action.
func (c *AdminuserController) Delete(ctx *app.DeleteAdminuserContext) error {
// TBD: implement
return nil
}
// List runs the list action.
func (c *AdminuserController) List(ctx *app.ListAdminuserContext) error {
// TBD: implement
res := app.UserCollection{}
return ctx.OK(res)
}
// Show runs the show action.
func (c *AdminuserController) Show(ctx *app.ShowAdminuserContext) error {
// TBD: implement
res := &app.User{}
return ctx.OK(res)
}
// Update runs the update action.
func (c *AdminuserController) Update(ctx *app.UpdateAdminuserContext) error {
// TBD: implement
return nil
}