-
Notifications
You must be signed in to change notification settings - Fork 2
/
deposit.go
37 lines (28 loc) · 888 Bytes
/
deposit.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
package main
import (
"ChamaconektVisa/app"
"github.com/goadesign/goa"
)
// DepositController implements the deposit resource.
type DepositController struct {
*goa.Controller
}
// NewDepositController creates a deposit controller.
func NewDepositController(service *goa.Service) *DepositController {
return &DepositController{Controller: service.NewController("DepositController")}
}
// Create runs the create action.
func (c *DepositController) Create(ctx *app.CreateDepositContext) error {
// DepositController_Create: start_implement
// Put your logic here
// DepositController_Create: end_implement
return nil
}
// Show runs the show action.
func (c *DepositController) Show(ctx *app.ShowDepositContext) error {
// DepositController_Show: start_implement
// Put your logic here
// DepositController_Show: end_implement
res := &app.Deposit{}
return ctx.OK(res)
}