You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.0 KiB
46 lines
2.0 KiB
9 months ago
|
package router
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
v1 "pure-admin/api/admin"
|
||
|
)
|
||
|
|
||
|
func InitBillRouter(Router *gin.RouterGroup) {
|
||
|
InRouter := Router.Group("bill")
|
||
|
{
|
||
|
InRouter.GET("customer-data", v1.GetUserBillData) // 用户账单数据
|
||
|
InRouter.GET("customer-list", v1.GetUserBillList) // 用户账单列表
|
||
|
InRouter.GET("influence-data", v1.GetInfluenceBillData) // 网红账单数据
|
||
|
InRouter.GET("influence-list", v1.GetInfluenceBillList) // 网红账单列表
|
||
|
InRouter.GET("seller-data", v1.GetSellerBillData) // 商家账单数据
|
||
|
InRouter.GET("seller-list", v1.GetSellerBillList) // 商家账单列表
|
||
|
|
||
|
InRouter.GET("seller-fund-data", v1.GetSellerFundData) // 商家营销账户数据
|
||
|
InRouter.GET("seller-fund-list", v1.GetSellerFundList) // 商家营销账户列表
|
||
|
|
||
|
InRouter.GET("admin-data", v1.GetAdminBillData) // 平台账单数据
|
||
|
InRouter.GET("admin-list", v1.GetAdminBillList) // 平台账单列表
|
||
|
InRouter.GET("admin-fund-data", v1.GetAdminFundData) // 平台奖励账户数据
|
||
|
InRouter.GET("admin-fund-list", v1.GetAdminFundList) // 平台奖励账户列表
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func InitWithdrawalRouter(Router *gin.RouterGroup) {
|
||
|
InRouter := Router.Group("withdrawal")
|
||
|
{
|
||
|
InRouter.GET("influence-data", v1.GetInfluenceWithdrawalData) // 网红提现数据
|
||
|
InRouter.GET("influence-list", v1.GetInfluenceWithdrawalList) // 网红提现列表
|
||
|
InRouter.POST("influence-examine", v1.ExamineInfluenceWithdrawal) // 网红提现审核
|
||
|
|
||
|
InRouter.PUT("status", v1.UpdateWithdrawalStatus) // 手动确认打款状态
|
||
|
InRouter.POST("retry", v1.TransferWithdrawalRetry) // 提现打款重试
|
||
|
|
||
|
InRouter.GET("seller-data", v1.GetSellerWithdrawalData) // 商家提现数据
|
||
|
InRouter.GET("seller-list", v1.GetSellerWithdrawalList) // 商家提现列表
|
||
|
InRouter.POST("seller-examine", v1.ExamineSellerWithdrawal) // 商家提现审核
|
||
|
|
||
|
InRouter.GET("admin-data", v1.GetAdminWithdrawalData) // 平台提现数据
|
||
|
InRouter.GET("admin-list", v1.GetAdminWithdrawalList) // 平台提现列表
|
||
|
}
|
||
|
}
|