20 lines
709 B
Go
20 lines
709 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"kra/internal/server/handler"
|
|
)
|
|
|
|
func RegisterBusiness(private *gin.RouterGroup, h *handler.Business) {
|
|
private.GET("/sw/business/bindPlatform", h.BindingList)
|
|
private.GET("/sw/business/:userId/bindPlatform", h.UserBindings)
|
|
private.POST("/sw/business/bindPlatform", h.BindPlatform)
|
|
private.DELETE("/sw/business/bindPlatform", h.UnbindPlatform)
|
|
private.GET("/sw/business/list", h.AccountList)
|
|
private.GET("/sw/business/:userId", h.Account)
|
|
private.POST("/sw/business", h.CreateAccount)
|
|
private.PUT("/sw/business", h.UpdateAccount)
|
|
private.GET("/sw/user/preference", h.UserPreference)
|
|
private.PUT("/sw/user/preference", h.UpdateUserPreference)
|
|
}
|