Add GetUserPayments() API.

This commit is contained in:
Yang Luo
2022-03-13 11:51:33 +08:00
parent 4d035bf66d
commit 32af4a766e
5 changed files with 45 additions and 9 deletions

View File

@ -159,6 +159,7 @@ func initAPI() {
beego.Router("/api/buy-product", &controllers.ApiController{}, "POST:BuyProduct")
beego.Router("/api/get-payments", &controllers.ApiController{}, "GET:GetPayments")
beego.Router("/api/get-user-payments", &controllers.ApiController{}, "GET:GetUserPayments")
beego.Router("/api/get-payment", &controllers.ApiController{}, "GET:GetPayment")
beego.Router("/api/update-payment", &controllers.ApiController{}, "POST:UpdatePayment")
beego.Router("/api/add-payment", &controllers.ApiController{}, "POST:AddPayment")