25 lines
890 B
Go
25 lines
890 B
Go
// Package payment contains the payment module contribution to the application
|
|
// catalog.
|
|
package payment
|
|
|
|
import (
|
|
datapayment "kra/internal/data/payment"
|
|
"kra/internal/modules/surface"
|
|
"kra/pkg/module"
|
|
)
|
|
|
|
// Definition declares the payment-owned schema and administration surface.
|
|
func Definition() module.Definition {
|
|
return module.Definition{
|
|
Name: "payment",
|
|
Migrations: datapayment.Migrations(),
|
|
Surface: module.Surface{
|
|
Menus: []module.Menu{
|
|
{Name: "paymentOrders", Path: "paymentOrders", ParentName: "extensions", Component: "view/systemTools/payment/orders.vue", Title: "支付订单", Icon: "wallet", Sort: 6},
|
|
{Name: "paymentConfig", Path: "paymentConfig", ParentName: "extensions", Component: "view/systemTools/payment/config.vue", Title: "支付配置", Icon: "credit-card", Sort: 7},
|
|
},
|
|
APIs: surface.APIsForPrefix("/payment", 10),
|
|
},
|
|
}
|
|
}
|