Commit 45ff7424 authored by shajiaiming's avatar shajiaiming

fix

parent 057331e0
File deleted
This diff is collapsed.
......@@ -3,11 +3,11 @@ package routers
import (
"github.com/gin-gonic/gin"
"bwallet/middleware/auth"
"bwallet/pkg/upload"
"bwallet/routers/api"
"bwallet/routers/api/v1"
"bwallet/middleware/auth"
"net/http"
"bwallet/pkg/upload"
)
func InitRouter() *gin.Engine {
......@@ -29,13 +29,13 @@ func InitRouter() *gin.Engine {
{
//api.POST("/upload",v1.Upload)
//api.GET("/coins", v1.GetCoins)
//api.POST("/coin", v1.AddCoin)
//api.GET("/coin/:id", v1.GetCoin)
//api.PUT("/coin", v1.EditCoin)
//api.DELETE("/coin/:id", v1.DeleteCoin)
//api.GET("/primary-chains", v1.GetPrimaryChains)
//api.GET("/types", v1.GetTypes)
api.GET("/coins", v1.GetCoins)
api.POST("/coin", v1.AddCoin)
api.GET("/coin/:id", v1.GetCoin)
api.PUT("/coin", v1.EditCoin)
api.DELETE("/coin/:id", v1.DeleteCoin)
api.GET("/primary-chains", v1.GetPrimaryChains)
api.GET("/types", v1.GetTypes)
//api.GET("/get-platform", v1.GetCoinsPlatform)
api.GET("/wallets", v1.GetWallets)
......
......@@ -4,9 +4,9 @@ type Chain struct {
Platform string `json:"platform" validate:"required"`
Address string `json:"address" validate:"required"`
PrivateKey string `json:"private_key" validate:"required"`
Execer string `json:"execer" validate:"required"`
Token string `json:"token" validate:"required"`
Fee float32 `json:"fee" validate:"required"`
Execer string `json:"execer" validate:"required"`
Token string `json:"token" validate:"required"`
Fee float32 `json:"fee" validate:"required"`
BrowerUrl string `json:"brower_url" validate:"required,url"`
}
......
This diff is collapsed.
......@@ -9,6 +9,6 @@ type RecommendCoin struct {
}
type EditRecommendCoin struct {
Id int `json:"id" validate:"required"`
Sort int `json:"sort" validate:"required"`
Id int `json:"id" validate:"required"`
Sort int `json:"sort" validate:"required"`
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment