合并代码
This commit is contained in:
parent
5d7f617c4d
commit
9711496a8b
@ -1,6 +1,8 @@
|
|||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fonchain-fiee/pkg/middleware"
|
||||||
|
"fonchain-fiee/pkg/service"
|
||||||
serviceCast "fonchain-fiee/pkg/service/cast"
|
serviceCast "fonchain-fiee/pkg/service/cast"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
@ -8,7 +10,7 @@ import (
|
|||||||
func MediaRouter(r *gin.RouterGroup) {
|
func MediaRouter(r *gin.RouterGroup) {
|
||||||
//noAuth := r.Group("")
|
//noAuth := r.Group("")
|
||||||
auth := r.Group("")
|
auth := r.Group("")
|
||||||
//auth.Use(middleware.CheckLogin(service.AccountProvider))
|
auth.Use(middleware.CheckWebLogin(service.AccountProvider))
|
||||||
media := auth.Group("media")
|
media := auth.Group("media")
|
||||||
{
|
{
|
||||||
media.POST("update-account", serviceCast.UpdateMediaAccount)
|
media.POST("update-account", serviceCast.UpdateMediaAccount)
|
||||||
|
@ -29,10 +29,6 @@ func init() {
|
|||||||
config.SetConsumerService(AccountProvider)
|
config.SetConsumerService(AccountProvider)
|
||||||
config.SetConsumerService(PaymentProvider)
|
config.SetConsumerService(PaymentProvider)
|
||||||
config.SetConsumerService(AccountFieeProvider)
|
config.SetConsumerService(AccountFieeProvider)
|
||||||
//config.SetConsumerService(BundleProvider)
|
|
||||||
//config.SetConsumerService(OrderProvider)
|
|
||||||
//config.SetConsumerService(AccountProvider)
|
|
||||||
//config.SetConsumerService(PaymentProvider)
|
|
||||||
config.SetConsumerService(CastProvider)
|
config.SetConsumerService(CastProvider)
|
||||||
|
|
||||||
if err := config.Load(); err != nil {
|
if err := config.Load(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user