-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.go
27 lines (21 loc) · 628 Bytes
/
user.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
package main
import (
"github.com/goadesign/goa"
"github.com/gomatic/opinionated/app"
)
// UserController implements the user resource.
type UserController struct {
*goa.Controller
}
// NewUserController creates a user controller.
func NewUserController(service *goa.Service) *UserController {
return &UserController{Controller: service.NewController("UserController")}
}
// Login runs the login action.
func (c *UserController) Login(ctx *app.LoginUserContext) error {
// UserController_Login: start_implement
// Put your logic here
// UserController_Login: end_implement
res := &app.JSON{}
return ctx.OK(res)
}