Initial commit
This commit is contained in:
14
internal/api/payment/interface.go
Normal file
14
internal/api/payment/interface.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package payment
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
// PaymentHandler defines the interface for payment operations
|
||||
type PaymentHandler interface {
|
||||
CreatePayment(c *gin.Context)
|
||||
}
|
||||
|
||||
// CreatePaymentRequest defines the payload for creating a payment
|
||||
type CreatePaymentRequest struct {
|
||||
PlanID string `json:"plan_id" binding:"required"`
|
||||
Amount float64 `json:"amount" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user