17 lines
409 B
Go
17 lines
409 B
Go
package order
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
type StockRouter struct{}
|
|
|
|
func (r *StockRouter) InitStockRouter(Router *gin.RouterGroup) {
|
|
stockRouter := Router.Group("stock")
|
|
{
|
|
stockRouter.POST("save", stockApi.Save)
|
|
stockRouter.POST("update", stockApi.Update)
|
|
stockRouter.POST("delete", stockApi.Delete)
|
|
stockRouter.GET("detail", stockApi.Detail)
|
|
stockRouter.POST("list", stockApi.List)
|
|
}
|
|
}
|