新增将账号导入到adspower的方法
This commit is contained in:
16
router/ads.go
Normal file
16
router/ads.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"go-account-register/api"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type AdsPower struct{}
|
||||
|
||||
var apiAdspower api.AdsPower
|
||||
|
||||
func (a *AdsPower) AdsPowerRouterInit(app *gin.Engine) {
|
||||
adsPower := app.Group("/adspower")
|
||||
adsPower.POST("/import_account", apiAdspower.ImportAccount)
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
var task Task
|
||||
var twitter Twitter
|
||||
var adsPower AdsPower
|
||||
|
||||
type Router struct {
|
||||
}
|
||||
@@ -13,4 +14,5 @@ type Router struct {
|
||||
func Init(app *gin.Engine) {
|
||||
task.TaskRouterInit(app)
|
||||
twitter.TwitterRouterInit(app)
|
||||
adsPower.AdsPowerRouterInit(app)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user