-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwithdrawal.go
37 lines (28 loc) · 942 Bytes
/
withdrawal.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"
)
// WithdrawalController implements the withdrawal resource.
type WithdrawalController struct {
*goa.Controller
}
// NewWithdrawalController creates a withdrawal controller.
func NewWithdrawalController(service *goa.Service) *WithdrawalController {
return &WithdrawalController{Controller: service.NewController("WithdrawalController")}
}
// Create runs the create action.
func (c *WithdrawalController) Create(ctx *app.CreateWithdrawalContext) error {
// WithdrawalController_Create: start_implement
// Put your logic here
// WithdrawalController_Create: end_implement
return nil
}
// Show runs the show action.
func (c *WithdrawalController) Show(ctx *app.ShowWithdrawalContext) error {
// WithdrawalController_Show: start_implement
// Put your logic here
// WithdrawalController_Show: end_implement
res := &app.Withdrawal{}
return ctx.OK(res)
}