-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpayment.go
More file actions
37 lines (28 loc) · 888 Bytes
/
payment.go
File metadata and controls
37 lines (28 loc) · 888 Bytes
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"
)
// PaymentController implements the payment resource.
type PaymentController struct {
*goa.Controller
}
// NewPaymentController creates a payment controller.
func NewPaymentController(service *goa.Service) *PaymentController {
return &PaymentController{Controller: service.NewController("PaymentController")}
}
// Create runs the create action.
func (c *PaymentController) Create(ctx *app.CreatePaymentContext) error {
// PaymentController_Create: start_implement
// Put your logic here
// PaymentController_Create: end_implement
return nil
}
// Show runs the show action.
func (c *PaymentController) Show(ctx *app.ShowPaymentContext) error {
// PaymentController_Show: start_implement
// Put your logic here
// PaymentController_Show: end_implement
res := &app.Payment{}
return ctx.OK(res)
}