credit_account_router.go 937 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/controllers"
)

func init() {
	web.Router("/credit-accounts/", &controllers.CreditAccountController{}, "Post:CreateCreditAccount")
	web.Router("/credit-accounts/:creditAccountId", &controllers.CreditAccountController{}, "Put:UpdateCreditAccount")
	web.Router("/credit-accounts/:creditAccountId", &controllers.CreditAccountController{}, "Get:GetCreditAccount")
	web.Router("/credit-accounts/:creditAccountId", &controllers.CreditAccountController{}, "Delete:RemoveCreditAccount")
	web.Router("/credit-accounts/search", &controllers.CreditAccountController{}, "Post:SearchCreditAccount")
	web.Router("/credit-accounts/pay", &controllers.CreditAccountController{}, "Post:PayCreditAccount")
	web.Router("/credit-accounts/", &controllers.CreditAccountController{}, "Get:ListCreditAccount")
}